File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1414 - name : setup
1515 run : pip install wheel
1616 - name : build
17- run : python setup.py ${GITHUB_REF#refs/tags/v} sdist bdist_wheel
17+ run : python setup.py --release-version ${GITHUB_REF#refs/tags/v} sdist bdist_wheel
1818 - name : release
1919 uses : pypa/gh-action-pypi-publish@master
2020 with :
Original file line number Diff line number Diff line change 66with open ("README.md" , "r" ) as fh :
77 long_description = fh .read ()
88
9- VERSION = sys .argv .pop (1 )
10- assert re .match (r"[0-9]+\.[0-9]+\.[0-9]+" , VERSION ), "Version definition required as first arg"
9+ VERSION = "devel"
10+ if sys .argv [1 ] == "--release-version" :
11+ sys .argv .pop (1 )
12+ VERSION = sys .argv .pop (1 )
13+ assert re .match (r"[0-9]+\.[0-9]+\.[0-9]+" , VERSION ), "Version definition required as first arg"
1114
1215requirements = ['requests' ]
1316
You can’t perform that action at this time.
0 commit comments