-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PyPI deployment configuration to Travis-CI
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,16 @@ before_deploy: | |
- python setup.py sdist bdist_wheel | ||
- twine check dist/* | ||
|
||
deploy: | ||
provider: script | ||
script: ci/travis/deploy.sh | ||
skip_cleanup: true | ||
on: | ||
python: 3.8 | ||
tags: true | ||
branch: master | ||
repo: althonos/pyrodigal | ||
|
||
notifications: | ||
email: | ||
- [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
|
||
log() { | ||
tput bold | ||
tput setaf 2 | ||
printf "%12s " $1 | ||
tput sgr0 | ||
shift 1 | ||
echo $@ | ||
} | ||
|
||
error() { | ||
tput bold | ||
tput setaf 1 | ||
printf "%12s " $1 | ||
tput sgr0 | ||
shift 1 | ||
echo $@ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
|
||
. $(dirname $0)/functions.sh | ||
|
||
# --- Update GitHub release notes -------------------------------------------- | ||
|
||
export GEM_PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')" | ||
export PATH="${GEM_PATH}/bin:$PATH" | ||
|
||
log Installing chandler gem | ||
gem install --user-install chandler | ||
|
||
log Updating GitHub release notes | ||
chandler push --github="$TRAVIS_REPO_SLUG" --changelog="CHANGELOG.md" | ||
|
||
# --- Deploy to PyPI --------------------------------------------------------- | ||
|
||
log Deploying to PyPI | ||
python3 -m twine upload --skip-existing dist/*.whl dist/*.tar.gz |