From 9aae81a66a0c4d15de37705f855fcbb67ffa6ee9 Mon Sep 17 00:00:00 2001 From: filipe oliveira Date: Thu, 1 Oct 2020 22:19:33 +0100 Subject: [PATCH] Publish package changes ( v.* tags ) (#70) * [fix] Provide the proper list of supported python version on setup classifiers. Fixed version number to 1.4.0 * [add] testing create source, wheel and persist to workspace dist/* folder * [fix] fixing persist_to_workspace dir * [fix] testing persist_to_workspace relative path * [fix] storing dist/* artifacts as dist-<> for downstream jobs * [add] testing twine upload testpypi * [add] Added comments explaining pypi and testpypi flows * [add] updated config to check test.pypi.org publish * [fix] fixed unecessary ~/.pypirc remove * [fix] testing with test.pypi.org and solely config.yml * [add] Added the skip existing on test.pipy.org * [fix] fixed identation on circleci yaml --- .circleci/config.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1b84ab7..bdb5cc6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -130,16 +130,20 @@ jobs: - run: name: Create a .pypirc command: | - echo -e "[pypi]\nusername = __token__\npassword = $PYPI_TOKEN\n\n[testpypi]\nusername = __token__\npassword = $TESTPYPI_TOKEN\n" >> .pypirc + echo -e "[pypi]" >> ~/.pypirc + echo -e "username = __token__" >> ~/.pypirc + echo -e "password = $PYPI_TOKEN" >> ~/.pypirc + echo -e "[testpypi]" >> ~/.pypirc + echo -e "username = __token__" >> ~/.pypirc + echo -e "password = $TESTPYPI_TOKEN" >> ~/.pypirc - run: name: Upload with twine to Test PyPI - command: twine upload -r testpypi dist-<< parameters.python_version >>/* + command: twine upload --skip-existing -r testpypi dist-<< parameters.python_version >>/* - # Uncomment me after we've checked that all is working as expected on TestPyPi - # - run: - # name: Upload with twine to PyPI - # command: twine upload -r pypi dist-<< parameters.python_version >>/* + - run: + name: Upload with twine to PyPI + command: twine upload -r pypi dist-<< parameters.python_version >>/* @@ -163,12 +167,11 @@ workflows: requires: - build-2.7 python_version: "2.7" - # Enable the following lines after we've checked that all is working as expected on TestPyPi - # filters: - # branches: - # ignore: /.*/ - # tags: - # only: /^\d+\.\d+\.\d+$/ + filters: + branches: + ignore: /.*/ + tags: + only: /^v\d+\.\d+\.\d+$/ nightly: triggers: