We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e857ef0 commit 8404af3Copy full SHA for 8404af3
source/ports/py_port/upload.sh
@@ -22,7 +22,7 @@
22
set -exuo pipefail
23
24
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)
+PORT_VERSION=$(grep -Po '(?<=^version = ")[^"]*' pyproject.toml)
26
27
if [[ "$PYPI_VERSION" == "$PORT_VERSION" ]]; then
28
echo "Current package version is the same as PyPI version, skipping upload."
0 commit comments