Skip to content

Commit

Permalink
add Python 3.13, drop 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
ixje committed Jan 19, 2024
1 parent 384b245 commit f7f050d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
CIBW_BEFORE_BUILD_LINUX: "python3 -m pip install cmake"
CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_ARCHS_LINUX: "auto aarch64"
CIBW_BUILD: "cp310-macosx_x86_64 cp310-macosx_arm64 cp310-win_amd64 cp310-manylinux_x86_64 cp310-musllinux_x86_64 cp310-manylinux_aarch64 cp310-musllinux_aarch64 cp311-macosx_x86_64 cp311-macosx_arm64 cp311-win_amd64 cp311-manylinux_x86_64 cp311-musllinux_x86_64 cp311-manylinux_aarch64 cp311-musllinux_aarch64"
CIBW_BUILD: "cp311-macosx_x86_64 cp311-macosx_arm64 cp311-win_amd64 cp311-manylinux_x86_64 cp311-musllinux_x86_64 cp311-manylinux_aarch64 cp311-musllinux_aarch64 cp312-macosx_x86_64 cp312-macosx_arm64 cp312-win_amd64 cp312-manylinux_x86_64 cp312-musllinux_x86_64 cp312-manylinux_aarch64 cp312-musllinux_aarch64"
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
- if: matrix.os == 'ubuntu-20.04'
name: Create stubs
run: |
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/python-bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ py::int_ to_py_int(const BigInteger& value, bool is_signed = true, bool is_bigen
return py::reinterpret_steal<py::int_>(obj);
}

static constexpr auto VERSION_BINDINGS = "1.3.2";
static constexpr auto VERSION_BINDINGS = "1.3.3";

PYBIND11_MODULE(pybiginteger, m) {
m.doc() = "A C++ port of the C# BigInteger class";
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from setuptools.command.build_ext import build_ext
from distutils.version import LooseVersion

if sys.version_info < (3, 10):
sys.exit('Python < 3.10 is not supported')
if sys.version_info < (3, 11):
sys.exit('Python < 3.11 is not supported')

with open('bindings/python/python-bindings.cpp','r') as f:
text = f.read()
Expand Down
2 changes: 1 addition & 1 deletion tools/generate-stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

def install_pkg(package_name, wheel_dir, unused):
for file in os.listdir(wheel_dir):
if 'cp310' in file and platform.machine() in file and "manylinux" in file and file.endswith('.whl'):
if 'cp311' in file and platform.machine() in file and "manylinux" in file and file.endswith('.whl'):
# install without dependencies, because it depends on the stub files which we're building here
subprocess.run(['pip', 'install', wheel_dir + '/' + file, '--no-dependencies', '--force-reinstall'])
version = re.search(f"{package_name}-(.+?)-.*", file).group(1)
Expand Down

0 comments on commit f7f050d

Please sign in to comment.