Skip to content

Commit 592e63a

Browse files
authored
Merge pull request #129 from mattip/fix-wheel-version
fix pyproject.toml version and add a check
2 parents 020da30 + 855803b commit 592e63a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ 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/scipy-openblas*.pc | sed -e "s/version=//")
28+
if [[ -z "$pkg_version" ]]; then
29+
echo Could not read version from pkgconfig file
30+
exit 1
31+
fi
32+
if [[ $py_version != $pkg_version* ]]; then
33+
echo Version from pyproject.toml "$py_version" does not match version from build "pkg_version"
34+
exit 1
35+
fi
2536
# Do not package the pkgconfig stuff, use the wheel functionality instead
2637
rm -rf local/scipy_openblas64/lib/pkgconfig
2738

0 commit comments

Comments
 (0)