Skip to content

Commit

Permalink
Add PyPI upload jobs to Circle CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
leviable committed Jan 20, 2019
1 parent 99544b0 commit cdf6439
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,26 @@ jobs:
- run-tox:
tox-env: "py37"

push-package:
docker:
- image: circleci/python:3
steps:
- checkout
- run:
name: Install Dependencies
command: |
sudo pip install --upgrade pip setuptools
sudo pip install --upgrade wheel twine
- run:
name: Write version file
command: echo -n $(git describe --tags --exact-match) > traw/VERSION
- run:
name: Create Package
command: python setup.py sdist bdist_wheel
- run:
name: Upload Package
command: twine upload dist/*

# ####################
#
# CircleCI Workflow
Expand Down Expand Up @@ -129,3 +149,7 @@ workflows:
- py36
- py37
filters: *build-filters
- push-package:
requires:
- tests-passed
filters: *tag-filters

0 comments on commit cdf6439

Please sign in to comment.