File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 44tag=$( basename $GITHUB_REF )
55git checkout tags/$tag
66
7- # Get library name.
8- libname=$( grep ' name\s=' setup.cfg | grep -o ' [^ ]*$' )
9-
10- # Get package version.
11- version=$( grep ' __version__\s=' $libname /version.py | grep -o ' [^ ]*$' )
12-
137# Upgrade pip.
148python -m pip install --quiet --upgrade pip
159
10+ # Upgrade build.
11+ python -m pip install --quiet --upgrade build
12+
1613# Check if release tag matches the package version.
1714pip install --quiet " packaging>=17.0"
1815
16+ # Get package version. Must run after installing build.
17+ version=$( python -c " from pep517.meta import load; metadata = load('.'); print(metadata.version)" )
18+
1919match=$( python -c "
2020from packaging.version import parse
2121
@@ -50,9 +50,6 @@ if isinstance(version, Version):
5050" )
5151
5252build_package () {
53- # Upgrade build.
54- python -m pip install --quiet --upgrade build
55-
5653 # Remove build artifacts.
5754 rm -rf .eggs/ rm -rf dist/ rm -rf build/
5855
You can’t perform that action at this time.
0 commit comments