Skip to content

Commit ac822a4

Browse files
committed
travis: update encrypted PyPI credentials; use twine to upload to PyPI
1 parent ab61e0b commit ac822a4

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

.travis.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
sudo: false
21
language: python
32

3+
env:
4+
global:
5+
- TWINE_USERNAME="anthrotype"
6+
- secure: grrVsFD+NUzbNZEv9HXhFh48VKnOWatSh4HRvO/k+DFn8iQvj1mXYXyNM7STOgX3lAxryJHpfcie1UvlE6JLPGvM8TKuq4lqtWlHCaDiNOIiaEp4EGxxhLkSz/Zf7D6501OP1hs/8kFO46QHJteOS0/SXcnIC0Fvq2hDqMb6GUoYKWGyxKwvSfT4AdVPWHEe/p2PNyWAMmJwnx1AwggnsxzDg6zAANCEAiEk7iU+gpNTgXmp+DWo/Av9hglidRjSdq8Fn0x4L+PxMxshJhIbdOB5cFS/Lq1LLBF8yqceht+hAj/pzQnIqE6ALYtXgHUxp/W0BJdJWX16m7TXm4NPWgmgRrRLR/amD+Mp5l1M9UHgwSOdQBU22CkF/hfor0b6ED4Q+Ap6ayy+g6cOp29okGLCMIjXxJU/9rIFjYQ5TFfmD2RvVhUj44e7azGyHNa9goro78mcM9on7a377guODVivVNANPTqm2ZEvLprWmLcz/dlEHFb4ODLvvh4x9hYLPZBF1A9j+qhAGuAFtmOPsPBAJzaSEDAu3DWtwYeGh1+RqagoNhLovB/qfz4YbFygWTj7oQfvmnE0wkAFGqR5EbgLl6o4FKvXl5ZpDj8q/gZdCjwi4VLSTguk0xlIfObLhKq73issjB3Jaxi4Pnl5KcnnhhgtvY3WGx27jMP2yB0=
7+
48
matrix:
59
include:
610
- python: 2.7
@@ -9,7 +13,6 @@ matrix:
913
# required to run python3.7 on Travis CI
1014
# https://github.com/travis-ci/travis-ci/issues/9815
1115
dist: xenial
12-
sudo: true
1316

1417
install:
1518
- pip install --upgrade pip setuptools wheel
@@ -22,8 +25,15 @@ install:
2225

2326
script: tox
2427

25-
before_deploy:
26-
- python setup.py sdist bdist_wheel
28+
after_success:
29+
# if it's a tagged commit, upload distribution packages to PyPI
30+
- |
31+
if [ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_REPO_SLUG" == "typemytype/booleanOperations" ] && [ "$TRAVIS_PYTHON_VERSION" == "3.6" ]; then
32+
pip install --upgrade twine pip setuptools wheel
33+
python setup.py sdist
34+
pip wheel --no-deps --wheel-dir dist .
35+
twine upload dist/*.whl dist/*.zip
36+
fi
2737
2838
deploy:
2939
# deploy to Github Releases on tags
@@ -38,15 +48,3 @@ deploy:
3848
tags: true
3949
all_branches: true
4050
python: 3.6
41-
# deploy to PyPI on tags
42-
- provider: pypi
43-
server: https://upload.pypi.org/legacy/
44-
on:
45-
repo: typemytype/booleanOperations
46-
tags: true
47-
all_branches: true
48-
python: 3.6
49-
user: anthrotype
50-
password:
51-
secure: B6rFOTA8ol1kt210q7USDVOzLFWUyMIwdZuaUdejYmUb0CXK6W8kKj0H01yBCgjkhtew9YEQSB62jFiGUOJH9L8JjpJO2RG8cHIIblXQfQ5DXogmcEtsAFotQz0o3UO/SYJaMY917XsPCqw3MTgksd2NWwO7H3YCjaWntN4zZxyTWowGr2Vhbj9s8e+MGMtrZ3Is91AcoXNI7HPj2oVhAtPP5GGpceIP7JlOGdHGUFJKuwJLRKVjEURWXN6ZOQNoxuG6KdkpGtJYCFgRCW65e48WpQs8lts/ByyOMyRItPIPI+K/cPOaIvZ7IUhu9SueBgKcW2YVzQrPzD07N5Lhb4LaKhqgMwpy7oWntnpO0/Xes7bonAoDYKPz7O3O3zl57fy1sVhGXZZNoGUfwyFz1PPecONavRpDQYCMEOq8BcENT86mf0xbAvtmTvBgos8NknmZ35ckUkyrye8t058CwW0yhEO2Pr36XPKoEP9EAiq2YRvINPYnI1T3jTPUUwnc3IAv4zQvPUKWqs2/hEVy8FTCz/0hBgDv2cs4pRcofTzfXSczGMfyuNS3i4n3CHc4FEOYP9MuEWGDC7KF4MVNsBWbh5pkISwhIwNbW1UDept2k+Dmb9XrSoCt5aSvEPJVT3YTA4qTGSUQvhzj1SvXi3s2lh+1WbibEJqNfpdobGg=
52-
distributions: sdist bdist_wheel

0 commit comments

Comments
 (0)