* Update .travis.yml

* Update .travis.yml

* Add cibuildwheel jobs

* Point twine to testpypi

* Add test suffix to version

* Try to fix windows builds

* Change version to 3.19.0.a2

* Remove build dependencies from dev requirements

* Add condition to trigger build on tags

* Bump version to 3.19.0a3

* Target sdist job to publish to testpypi

* Upgrade travis config

* Bump version to 3.19.0a4

* Return version

* Update changelog

* Update makefile
This commit is contained in:
Roman Mogylatov 2020-07-01 23:16:38 -04:00 committed by GitHub
parent 75a9f6faf0
commit 4a82aa18c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 70 additions and 19 deletions

View File

@ -1,13 +1,6 @@
os: os: linux
linux dist: xenial
dist: language: python
xenial
language:
python
install:
- pip install tox
script:
- tox
jobs: jobs:
include: include:
- python: 3.6 - python: 3.6
@ -16,28 +9,88 @@ jobs:
- pip install tox - pip install tox
- pip install cython - pip install cython
- make cythonize - make cythonize
script: tox
- python: 3.6 - python: 3.6
env: TOXENV=pylint env: TOXENV=pylint
install: pip install tox
script: tox
- python: 3.6 - python: 3.6
env: TOXENV=flake8 env: TOXENV=flake8
install: pip install tox
script: tox
- python: 3.6 - python: 3.6
env: TOXENV=pydocstyle env: TOXENV=pydocstyle
install: pip install tox
script: tox
- python: 2.7 - python: 2.7
env: TOXENV=py27 env: TOXENV=py27
install: pip install tox
script: tox
- python: 3.4 - python: 3.4
env: TOXENV=py34 env: TOXENV=py34
install: pip install tox
script: tox
- python: 3.5 - python: 3.5
env: TOXENV=py35 env: TOXENV=py35
install: pip install tox
script: tox
- python: 3.6 - python: 3.6
env: TOXENV=py36 env: TOXENV=py36
install: pip install tox
script: tox
- python: 3.7 - python: 3.7
env: TOXENV=py37 env: TOXENV=py37
install: pip install tox
script: tox
- python: 3.8 - python: 3.8
env: TOXENV=py38 env: TOXENV=py38
install: pip install tox
script: tox
- python: pypy - python: pypy
env: TOXENV=pypy env: TOXENV=pypy
install: pip install tox
script: tox
- python: pypy3 - python: pypy3
env: TOXENV=pypy3 env: TOXENV=pypy3
install: pip install tox
script: tox
- python: 3.8
if: tag IS present
env: TWINE_USERNAME=__token__
install: pip install pip --upgrade
script: python setup.py sdist
after_success:
- python3 -m pip install twine
- python3 -m twine upload --repository testpypi dist/*
- services: docker
if: tag IS present
env: TWINE_USERNAME=__token__
install: python3 -m pip install cibuildwheel==1.5.1
script: python3 -m cibuildwheel --output-dir wheelhouse
after_success:
- python3 -m pip install twine
- python3 -m twine upload --repository testpypi wheelhouse/*.whl
- os: osx
if: tag IS present
language: shell
env: TWINE_USERNAME=__token__
install: python3 -m pip install cibuildwheel==1.5.1
script: python3 -m cibuildwheel --output-dir wheelhouse
after_success:
- python3 -m pip install twine
- python3 -m twine upload --repository testpypi wheelhouse/*.whl
- os: windows
if: tag IS present
language: shell
env: TWINE_USERNAME=__token__
before_install:
- choco install python --version 3.8.0
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
install: python -m pip install cibuildwheel==1.5.1
script: python -m cibuildwheel --output-dir wheelhouse
after_success:
- python -m pip install twine
- python -m twine upload --repository testpypi wheelhouse/*.whl
notifications: notifications:
slack: slack:
rooms: rooms:

View File

@ -73,7 +73,7 @@ test-publish: cythonize
# Upload distributions to PyPI # Upload distributions to PyPI
twine upload --repository testpypi dist/dependency-injector-$(VERSION)* twine upload --repository testpypi dist/dependency-injector-$(VERSION)*
publish: cythonize tag:
# Merge release to master branch # Merge release to master branch
git checkout master git checkout master
git merge --no-ff release/$(VERSION) -m "Merge branch 'release/$(VERSION)' into master" git merge --no-ff release/$(VERSION) -m "Merge branch 'release/$(VERSION)' into master"
@ -81,7 +81,3 @@ publish: cythonize
# Create and upload tag # Create and upload tag
git tag -a $(VERSION) -m 'version $(VERSION)' git tag -a $(VERSION) -m 'version $(VERSION)'
git push --tags git push --tags
# Create distributions
python setup.py sdist
# Upload distributions to PyPI
twine upload dist/dependency-injector-$(VERSION)*

View File

@ -9,6 +9,9 @@ follows `Semantic versioning`_
Development version Development version
------------------- -------------------
- Start distributing wheels for Linux, MacOS, and Windows (thanks to
`Travis CI <https://travis-ci.org/>`_ and
`cibuildwheel <https://github.com/joerick/cibuildwheel>`_).
- Start using ``twine`` for publishing package on PyPI. - Start using ``twine`` for publishing package on PyPI.
- Fix Travis CI configuration file warnings. - Fix Travis CI configuration file warnings.

View File

@ -6,4 +6,3 @@ flake8
pydocstyle pydocstyle
sphinx_autobuild sphinx_autobuild
pip pip
twine