From e46a982cc25d2ba7d66f47d99b1302dcbdef33ad Mon Sep 17 00:00:00 2001 From: Mike Shoup Date: Wed, 2 Jan 2019 14:28:41 -0700 Subject: [PATCH] Add automated pypi upload --- .circleci/config.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 70be827..cf0b6aa 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -74,6 +74,26 @@ jobs: pip install flake8 flake8-docstrings flake8 + pypi: + docker: + - image: python:3 + steps: + - checkout + + - run: + name: Install twine + command: | + pip install twine + + - run: + name: Build package + command: | + python setup.py sdist bdist_wheel + + - run: + name: Upload to PyPi + command: | + twine upload dist/* workflows: version: 2 @@ -86,3 +106,14 @@ workflows: requires: - test-py37 - style + - pypi: + requires: + - test-py35 + - test-py36 + - test-py37 + - style + filters: + tags: + only: /v.*/ + branches: + ignore: /.*/