Skip to content

Commit d67f3c2

Browse files
committed
enabled auto-upload to pypi on release tags (#177)
closes #177
1 parent 575343d commit d67f3c2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ env:
1010
- PIP_CACHE="$HOME/.pip_cache"'
1111
- RUN_SCRIPT="./travis/run_tests.sh"
1212
- POSTGRES_DB=elasticapm_test
13+
- TWINE_USERNAME=piquadrat
1314
matrix:
1415
- WEBFRAMEWORK=django-master
1516
- WEBFRAMEWORK=flask-master
@@ -38,7 +39,13 @@ matrix:
3839
sudo: required
3940
services:
4041
- docker
41-
script: pip install cibuildwheel==0.6.0 && mkdir -p wheelhouse/${TRAVIS_TAG} && cibuildwheel --output-dir wheelhouse/
42+
script:
43+
- pip install cibuildwheel==0.6.0
44+
- cibuildwheel --output-dir wheelhouse/
45+
- python -m pip install twine
46+
- python setup.py sdist
47+
- python -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*.tar.gz
48+
- python -m twine upload --repository-url https://upload.pypi.org/legacy/ wheelhouse/*.whl
4249
env:
4350
- CIBW_ENVIRONMENT="PIP_CACHE=/host/.pip"
4451
- CIBW_BEFORE_BUILD="rm -rf build elastic_apm.egg-info tests"

0 commit comments

Comments
 (0)