This repository was archived by the owner on Aug 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 13
13
nox -f noxfile.py -s unit
14
14
Lint :
15
15
docker :
16
- - image : circleci/python:3.6.4
16
+ - image : circleci/python:3.7.1
17
17
18
18
steps :
19
19
- checkout
23
23
sudo pip install nox
24
24
nox -f noxfile.py -s lint
25
25
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
+
26
40
workflows :
27
41
version : 2
28
42
test :
29
43
jobs :
30
44
- Unit Test
31
45
- 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+$/
Original file line number Diff line number Diff line change @@ -22,8 +22,6 @@ if [[ -z "$CIRCLE_TAG" ]]; then
22
22
exit 0
23
23
fi
24
24
25
- python3 -m pip install --upgrade twine wheel setuptools
26
-
27
25
# Build the distribution and upload.
28
26
python3 setup.py sdist bdist_wheel
29
27
twine upload dist/* --username $PYPI_USERNAME --password $PYPI_PASSWORD
You can’t perform that action at this time.
0 commit comments