Skip to content
This repository was archived by the owner on Jun 28, 2023. It is now read-only.

Commit b7a9605

Browse files
committed
Add auto deploy to PyPI with Travis CI
1 parent c60d2cb commit b7a9605

File tree

1 file changed

+24
-14
lines changed

1 file changed

+24
-14
lines changed

.travis.yml

+24-14
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,36 @@ after_success:
3030
- coveralls
3131

3232
deploy:
33-
provider: releases
34-
# TODO Regenerate this api_key for your project, this one won't work for you. Here's how:
35-
# - Go to 'https://github.com/settings/tokens/new' and generate a Token with only the
36-
# `public_repo` scope enabled
37-
# - Call `travis encrypt $github_token` where $github_token is the token you got in the previous
38-
# step and `travis` is the official Travis CI gem (see https://rubygems.org/gems/travis/)
39-
# - Enter the "encrypted value" below
40-
api_key:
33+
- provider: releases
34+
# TODO Regenerate this api_key for your project, this one won't work for you. Here's how:
35+
# - Go to 'https://github.com/settings/tokens/new' and generate a Token with only the
36+
# `public_repo` scope enabled
37+
# - Call `travis encrypt $github_token` where $github_token is the token you got in the previous
38+
# step and `travis` is the official Travis CI gem (see https://rubygems.org/gems/travis/)
39+
# - Enter the "encrypted value" below
40+
api_key:
4141
secure: 28IOmyNkPlSxBN+jBkpWGlrAbB0/2xKkI0RV8K8zwJ2DGyLGYYucpc37Xvu1OFYdfK2yv5PZ1uUuiqXXHHh4/2c8KTA6DPj8WlTTrxWD7CVN42BLUjATqs89vPQJwZPmbEzRykAPReneBvVuXsQonyFY/KToK5CsQKUnr/lp1i1y3rtmAMc3kDG7U+qf1GYu8pNReVmgaTtGJYzQdg9ZLAu0K8UJ9RLrFvlzMKNgVHh1bHugIamnMjR6q0jjJ2uBYmLbK2nu1jMdLOyFb1u4oPRmu4Wv212lxOSIomlKXqL3FJABKJ9E5L4lbh9IVh3TjlR46i3GRKvcmrnsJ8sv9OFYe0YotCnFu47GGrRTQFite7JRVSWt7Xb8Lk1I9i8NIdbYwwU6GXDw5O9qTQlwX0wZCtgj+A/ag6bxNFedKU3e4dgAJ2JiiSN2EzNhOulp8TsTc6pwK/1bS/B2CZ8u0raFdy7LOoBxDPDbzhZn8QptL18TzlU3y/BnPQkjmOKBYwT8ZNAKFcV5lGKx+bod07gkKzLmYWzfETdjq44hE/kKNarL0uS8Cx3WUE4zavNrFGIWxTZOdLDX7IhQFi8LG38np3DbpWWi9jS7F+P/pn9bZErCbO8LDXM42VB15Tx+P0cHTMVyTbZfzNfkOZNWizkJ8Aeq1VCgXP7OEAla/so=
42-
file_glob: true
43-
file: ${PROJECT_NAME}-${TRAVIS_TAG}-${TARGET}.*
44-
# don't delete the artifacts from previous phases
45-
skip_cleanup: true
46-
# deploy when a new tag is pushed
47-
on:
42+
file_glob: true
43+
file: ${PROJECT_NAME}-${TRAVIS_TAG}-${TARGET}.*
44+
# don't delete the artifacts from previous phases
45+
skip_cleanup: true
46+
# deploy when a new tag is pushed
47+
on:
4848
# channel to use to produce the release artifacts
4949
# NOTE make sure you only release *once* per target
5050
# TODO you may want to pick a different channel
5151
condition: $TRAVIS_PYTHON_VERSION = 3.5
5252
tags: true
5353

54+
- provider: pypi
55+
user: python-everywhere
56+
password:
57+
secure: kVpchIjPrt+p32Xo0KeBnEb3TaK5ni2ImUUBOjpy34smxM0Wc887+CyCmnOHTd6a1iB3DqM2nbXJZ1pkfEiqfUX6mznvRMa6wENXO5zaspIUjYuhe23woAKls3Np1L+VK0+O7Fe1i8GYk0FM4T3Hh/txaWGSw7CNveLB2eNsOdeD8Dfd0R0+L2sapx9W6/5gN+2RRqePLL8a1bvPuvTA0YQvQ3SYJsAzblQa1bDeSyt+ZokAd2vfQPqpQnorolK2Q4141PV7mfkrGLlm1+eQD873R5FsYGFElWCrBHITX2G6/T0j6y/XcQUIWXDq5avzyyJ2Sb1O/0rmPoGVgCT8VMoKxQkj/NGrdDsgh1V0KMJEfetLYrVLzPksIuetbCDirv8whoQ3hkQwTwNlc3Dd7ZzBCYUEOlye6k3nimy8wJTXE1xkTXc7dxbe79IcpDD5j1PU11OqFHD9v5ixnPSuzloU3VfmtVn1FZSmChCM24yIiEdbw8BYKd18EPqpPLkUVQLtt/LOSKYu04Y9KqO7fjf6t9Uyep62ehrNOESMBjuA8jyLdrgY5vlbevx/HuYJYEAkRaCxrj9A7rkVWqJB5nphNcBFeGVEXcBW43DSi8/wqIm/BGUhxM4pX2JQ/USQwGIPaJML5qQTld74SEz9D8o0B9o+Vwic9QLlg3hJFcY=
58+
distributions: "sdist bdist_wheel" # Your distributions here
59+
on:
60+
branch: master
61+
condition: $TRAVIS_PYTHON_VERSION = 3.5
62+
tags: true
63+
5464
notifications:
5565
email: false

0 commit comments

Comments
 (0)