Skip to content

Commit 4f7748a

Browse files
committed
fix pyproject.toml version and add a check
1 parent 020da30 commit 4f7748a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"
88

99
[project]
1010
name = "scipy_openblas64"
11-
version = "0.3.24.95.2"
11+
version = "0.3.26.0.0"
1212
requires-python = ">=3.7"
1313
description = "Provides OpenBLAS for python packaging"
1414
readme = "README.md"

tools/build_wheel.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ tar -C local/scipy_openblas64 --strip-components=2 -xf libs/openblas*.tar.gz
2222
# do not package the static libs and symlinks, only take the shared object
2323
find local/scipy_openblas64/lib -maxdepth 1 -type l -delete
2424
rm local/scipy_openblas64/lib/*.a
25+
# Check that the pyproject.toml and the pkgconfig versions agree
26+
py_version=$(grep "^version" pyproject.toml | sed -e "s/version = \"//")
27+
pkg_version=$(grep "version=" ./local/scipy_openblas64/lib/pkgconfig/openblas64.pc | sed -e "s/version=//")
28+
if [[ $py_version != $pkg_version* ]]; then
29+
echo Version from pyproject.toml "$py_version" does not match version from build "pkg_version"
30+
exit 1
31+
fi
2532
# Do not package the pkgconfig stuff, use the wheel functionality instead
2633
rm -rf local/scipy_openblas64/lib/pkgconfig
2734

0 commit comments

Comments
 (0)