|
|
@@ -19,16 +19,15 @@ stages:
|
|
|
- release
|
|
|
|
|
|
before_script:
|
|
|
- #- apt-get update && apt-get install -y git python3-dev python3-pip
|
|
|
- - python -V
|
|
|
- - echo "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi"
|
|
|
- docker info
|
|
|
- # Because we use a private registry (registry.rys.one), we first need to provide credentials.
|
|
|
- # This gives us access to pull and push to the registry.
|
|
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
|
|
|
|
|
build-upload:
|
|
|
+ image: python:3.11
|
|
|
stage: build
|
|
|
+ before_script:
|
|
|
+ - python -V
|
|
|
+ - echo "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi"
|
|
|
script:
|
|
|
- pip install build twine flit
|
|
|
- FLIT_INDEX_URL=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi flit build
|
|
|
@@ -37,7 +36,11 @@ build-upload:
|
|
|
- tags
|
|
|
|
|
|
.build-upload-pypi:
|
|
|
+ image: python:3.11
|
|
|
stage: build
|
|
|
+ before_script:
|
|
|
+ - python -V
|
|
|
+ - echo "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi"
|
|
|
script:
|
|
|
- pip install build twine flit
|
|
|
- flit build
|