Skip to content

Commit f0f4533

Browse files
committed
[circle] Forgot deploy_pypi job
1 parent 229d54f commit f0f4533

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.circleci/config.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,34 @@ jobs:
117117
echo "Uploading to test.pypi.org"
118118
./venv/bin/twine upload --repository-url https://test.pypi.org/legacy/ workspace/dist/*`cat workspace/version.txt`*
119119
120+
deploy_pypi:
121+
# Job to deploy on public PyPI
122+
# Requires dist files under workspace/dist
123+
docker:
124+
- image: circleci/python:3.6
125+
126+
steps:
127+
128+
- attach_workspace:
129+
at: workspace
130+
131+
- run:
132+
name: Create VEnv with tools
133+
command: |
134+
python3 -m venv venv
135+
. venv/bin/activate
136+
pip install -U pip setuptools twine
137+
138+
- run:
139+
name: Upload to PyPI
140+
command: |
141+
. venv/bin/activate
142+
export TWINE_USERNAME="${PYPI_USERNAME}"
143+
export TWINE_PASSWORD="${PYPI_PASSWORD}"
144+
echo "Uploading to pypi.org"
145+
./venv/bin/twine upload workspace/dist/*`cat workspace/version.txt`*
146+
147+
120148
install_from_test_pypi:
121149
# Try to install from test-pypi
122150
docker:

0 commit comments

Comments
 (0)