diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 01a7162ee7754d384cab36fbbcfaa73d6e50cb03..592005f57fff77006be73717eb2e2404a444659f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -63,70 +63,14 @@ test_python311: extends: .test image: python:3.11 -.build_python: - only: - - tags - except: - - branches - stage: build - before_script: - - pip install --break-system-packages --upgrade Cython setuptools pip repairwheel doctor-wheel - script: - - python setup.py bdist_wheel - - repairwheel dist/*.whl -o . - - doctor-wheel *.whl - after_script: - - pip install twine - - TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python3 -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi *.whl - - -build_python35: - extends: .build_python - image: python:3.5 - before_script: - - pip install --upgrade Cython setuptools pip repairwheel doctor-wheel - - -build_python36: - extends: .build_python - image: python:3.6 - before_script: - - pip install --upgrade Cython setuptools pip repairwheel doctor-wheel - - pip install -r requirements.txt - -build_python37: - extends: .build_python - image: python:3.7 - - -build_python38: - extends: .build_python - image: python:3.8 - - -build_python39: - extends: .build_python - image: python:3.9 - -build_python310: - extends: .build_python - image: python:3.10 - -build_python311: - extends: .build_python - image: python:3.11 - - -.build_python: +build_python: stage: build before_script: - - pip install --break-system-packages --upgrade Cython setuptools pip repairwheel doctor-wheel + - pip install --break-system-packages --upgrade Cython setuptools pip script: - python setup.py bdist_wheel - mv dist/*.whl . - - repairwheel dist/*.whl -o . - - doctor-wheel *.whl artifacts: paths: - "*.whl" @@ -138,44 +82,3 @@ build_python311: except: - branches - -build_python35: - extends: .build_python - image: python:3.5 - before_script: - - pip install --upgrade Cython setuptools pip repairwheel doctor-wheel - - -build_python36: - extends: .build_python - image: python:3.6 - before_script: - - pip install --upgrade Cython setuptools pip repairwheel doctor-wheel - - -build_python37: - extends: .build_python - image: python:3.7 - before_script: - - pip install --upgrade Cython setuptools pip repairwheel doctor-wheel - - -build_python38: - extends: .build_python - image: python:3.8 - - - -build_python39: - extends: .build_python - image: python:3.9 - - -build_python310: - extends: .build_python - image: python:3.10 - - -build_python311: - extends: .build_python - image: python:3.11 diff --git a/snakehouse/__init__.py b/snakehouse/__init__.py index 33311e775297dc73d04800ba253dbeb300cd4418..383b3245fb0aa0030255e8cc0ed69f506d74c7ae 100644 --- a/snakehouse/__init__.py +++ b/snakehouse/__init__.py @@ -2,3 +2,5 @@ from .build import build from .multibuild import Multibuild, find_all from .faster_builds import monkey_patch_parallel_compilation from .requirements import read_requirements_txt, find_c, find_pyx_and_c, find_pyx + +__version__ = '2.0' \ No newline at end of file