Skip to content
This repository was archived by the owner on Aug 11, 2025. It is now read-only.

Commit 37eac2d

Browse files
committed
Configure automatic release with CircleCI
1 parent 9483722 commit 37eac2d

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

.circleci/config.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
nox -f noxfile.py -s unit
1414
Lint:
1515
docker:
16-
- image: circleci/python:3.6.4
16+
- image: circleci/python:3.7.1
1717

1818
steps:
1919
- checkout
@@ -23,9 +23,33 @@ jobs:
2323
sudo pip install nox
2424
nox -f noxfile.py -s lint
2525
26+
Release:
27+
docker:
28+
- image: circleci/python:3.7.1
29+
30+
steps:
31+
- checkout
32+
- run:
33+
command: |
34+
sudo pip install --upgrade twine
35+
sudo pip install --upgrade wheel
36+
sudo pip install --upgrade setuptools
37+
source scripts/twine_upload.sh
38+
39+
2640
workflows:
2741
version: 2
2842
test:
2943
jobs:
3044
- Unit Test
3145
- Lint
46+
release:
47+
jobs:
48+
- Release:
49+
filters:
50+
# Runs for no branches and only for tags like "1.2.3"
51+
branches:
52+
ignore: /.*/
53+
tags:
54+
only:
55+
- /^\d+\.\d+\.\d+$/

twine_upload.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ if [[ -z "$CIRCLE_TAG" ]]; then
2222
exit 0
2323
fi
2424

25-
python3 -m pip install --upgrade twine wheel setuptools
26-
2725
# Build the distribution and upload.
2826
python3 setup.py sdist bdist_wheel
2927
twine upload dist/* --username $PYPI_USERNAME --password $PYPI_PASSWORD

0 commit comments

Comments
 (0)