Skip to content

Commit

Permalink
chore: update version number
Browse files Browse the repository at this point in the history
  • Loading branch information
edimetia3d committed Oct 28, 2023
1 parent c3a4233 commit 5659801
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion _build_wheels.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ done
# Bundle external shared libraries into the wheels
for whl in ~/src/wheelhouse/*.whl; do
repair_wheel "$whl"
done
done
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cd $SCRIPT_DIR
PLAT=manylinux_2_28_x86_64
DOCKER_IMAGE="quay.io/pypa/${PLAT}"
docker pull $DOCKER_IMAGE
docker run --rm -i -e PLAT=${PLAT} -v `pwd`:/io $DOCKER_IMAGE /io/_build_wheels.sh
docker run --rm -i -e PLAT=${PLAT} -v `pwd`:/io $DOCKER_IMAGE bash /io/_build_wheels.sh
python3 -m pip install --upgrade build twine
python3 -m build -o ./wheelhouse --sdist
bash ./stubs/build.sh
Expand Down
2 changes: 1 addition & 1 deletion pylibclang/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__CLANG_VERSION__ = "16.0.6"
__VERSION__ = "2" + __CLANG_VERSION__
__VERSION__ = "3" + __CLANG_VERSION__
10 changes: 6 additions & 4 deletions stubs/build.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
#/!/bin/bash
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )";
cd $SCRIPT_DIR
rm -rf *.egg-info
rm -rf dist
rm -rf build
rm -rf dist
rm -rf venv
rm -rf pylibclang-stubs

python3 -m venv venv
source venv/bin/activate
pip install ../ --upgrade
pip install pybind11-stubgen --upgrade
rm -rf pylibclang-stubs/*
pybind11-stubgen pylibclang._C -o $PWD/tmp --ignore-unresolved-names capsule
mv tmp/pylibclang/* pylibclang-stubs/
rm -rf tmp

rm -rf *.egg-info
rm -rf dist
python3 -m pip install --upgrade build twine setuptools wheel
python3 -m build --no-isolation

0 comments on commit 5659801

Please sign in to comment.