Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Publish package changes ( v.* tags ) (#70)
Browse files Browse the repository at this point in the history
* [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-<<parameters.python_version>> 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
  • Loading branch information
filipecosta90 authored Oct 1, 2020
1 parent 9f7d803 commit 9aae81a
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 >>/*



Expand All @@ -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:
Expand Down

0 comments on commit 9aae81a

Please sign in to comment.