Skip to content
Snippets Groups Projects

Migrate to pyproject

Merged Manon Blanco requested to merge pyproject-migration into master
All threads resolved!
1 file
+ 7
10
Compare changes
  • Side-by-side
  • Inline
+ 8
11
@@ -5,6 +5,7 @@ stages:
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache/pip
@@ -54,24 +55,20 @@ tests:
release-pypi:
stage: release
image: python:3
only:
- tags
environment:
name: pypi
url: https://pypi.org/project/teklia-toolbox
before_script:
- pip install twine setuptools wheel
- echo "[distutils]" > ~/.pypirc
- echo "index-servers =" >> ~/.pypirc
- echo " pypi" >> ~/.pypirc
- echo "[pypi]" >> ~/.pypirc
- echo "repository=https://upload.pypi.org/legacy/" >> ~/.pypirc
- echo "username=$PYPI_RELEASE_USERNAME" >> ~/.pypirc
- echo "password=$PYPI_RELEASE_PASSWORD" >> ~/.pypirc
- pip install twine build
script:
- python setup.py sdist bdist_wheel
- twine upload dist/* -r pypi
- python -m build
- twine upload dist/*
release-notes:
stage: release
@@ -91,4 +88,4 @@ bump-python-deps:
- schedules
script:
- devops python-deps requirements.txt
- devops python-deps pyproject.toml
Loading