Skip to content

Commit 5dc49b2

Browse files
author
Hugo Osvaldo Barrera
committed
Deploy to PyPI using twine
Deploying via Travis' built-in method (using the `pypi` provider) wasn't doing anything (nor reporting any errors). Deploying using the `script` provider simply failed with no output (though that *is* experimental), so use `after_success` instead.
1 parent 6768d90 commit 5dc49b2

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.travis.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,12 @@ script:
5757
after_script:
5858
- codecov
5959

60-
before_deploy:
61-
- pip install wheel
60+
after_success:
61+
- pip install wheel twine
6262
- python setup.py sdist bdist_wheel
63+
- test -n $TRAVIS_TAG && twine upload -u $PYPI_USERNAME -p $PYPI_PASSWORD dist/*
6364

6465
deploy:
65-
- provider: pypi
66-
user: hobarrera
67-
password:
68-
secure: LXSgJZMZICS0Xv5qyR/IRgki1Wy23lurmdepsOsjzBM2fv7rgKPlU/MASVCUCmLi9vYYqZu+7ViHeT6uhJXLdwE0NisVYqTg6L4aD1kqDmbjkWFhLKA7DAz1QTAYxrk6TQYmDb+ZbNFZlF21g29nqvqtLwdC4dFnDjXGnupCoeU=
69-
on:
70-
tags: true
71-
distributions: "sdist bdist_wheel"
72-
server: https://upload.pypi.org/legacy/
7366
- provider: releases
7467
api_key:
7568
secure: g60yeYa+BX7XCe7L4mpV5NiaCPkuJzxk+PP3rL/durPF/CudWW2xUuTCLf30WwfrYBg3bJCQKNnzOpL8+d4Maly3UqquDFjK58Z/JBFw6erzg/RAxAnfJzFbWy2mgqKTpBHaDdRnhVtqp23Ov1I/+Jb51DIhij6ILNgGxW1OP8Y=

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ Changelog
44
This file contains a brief summary of new features and dependency changes or
55
releases, in reverse chronological order.
66

7+
v3.2.4
8+
------
9+
10+
* Deploy new versions to PyPI using ``twine``. Travis doesn't seem to be
11+
working.
12+
713
v3.2.3
814
------
915

0 commit comments

Comments
 (0)