Skip to content

Commit a55c9ff

Browse files
committed
Add a CI stage deploying tagged commits to PyPI using twine
1 parent f4fa74d commit a55c9ff

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.travis.yml

+17-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ python:
99
- "3.6"
1010
- "3.7"
1111
- "3.8"
12-
- "3.9-dev"
12+
- "3.9"
1313
- "pypy"
1414
- "pypy3.5-7.0" # Need 7.0+ due to a bug in earlier versions that broke our tests.
1515

@@ -36,8 +36,22 @@ before_install:
3636
install:
3737
- pip install -e .
3838

39+
# command to run tests
40+
script: tox
41+
3942
after_success:
4043
- coveralls
4144

42-
# command to run tests
43-
script: tox
45+
before_deploy:
46+
- pip install -U twine wheel
47+
- python setup.py sdist bdist_wheel
48+
49+
deploy:
50+
provider: script
51+
script: twine upload dist/*
52+
skip_cleanup: true
53+
on:
54+
python: 3.9
55+
tags: true
56+
repo: PyFilesystem/pyfilesystem2
57+

0 commit comments

Comments
 (0)