From 8b46af9ed051bf9ff061e0ce289201437bc1ab7a Mon Sep 17 00:00:00 2001 From: KipCrossing Date: Fri, 20 Mar 2020 19:56:44 +1100 Subject: [PATCH] For CD --- .circleci/config.yml | 22 ++++++++++++++++++++++ requirements.txt | 1 + 2 files changed, 23 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 765aaab..9feac06 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,3 +9,25 @@ jobs: command: | pip install -r requirements.txt python3 ausbills/test.py + - run: + name: verify git tag vs. version + command: | + python3 -m venv venv + . venv/bin/activate + python setup.py verify + - run: + name: init .pypirc + command: | + echo -e "[pypi]" >> ~/.pypirc + echo -e "username = Kipling" >> ~/.pypirc + echo -e "password = $PYPI_PASSWORD" >> ~/.pypirc + - run: + name: create packages + command: | + python setup.py sdist + python setup.py bdist_wheel + - run: + name: upload to pypi + command: | + . venv/bin/activate + twine upload dist/* diff --git a/requirements.txt b/requirements.txt index 1970077..881e235 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ beautifulsoup4 lxml requests datetime +twine