Skip to content

Commit 8404af3

Browse files
committed
Update port version.
1 parent e857ef0 commit 8404af3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/ports/py_port/upload.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
set -exuo pipefail
2323

2424
PYPI_VERSION=$(curl -s https://pypi.org/rss/project/metacall/releases.xml | sed -n 's/\s*<title>\([0-9.]*\).*/\1/p' | sed -n '2 p')
25-
PORT_VERSION=$(python3 setup.py --version)
25+
PORT_VERSION=$(grep -Po '(?<=^version = ")[^"]*' pyproject.toml)
2626

2727
if [[ "$PYPI_VERSION" == "$PORT_VERSION" ]]; then
2828
echo "Current package version is the same as PyPI version, skipping upload."

0 commit comments

Comments
 (0)