Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Build wheels
uses: pypa/cibuildwheel@v3.3.0
env:
CIBW_SKIP: "cp314t-*"
CIBW_SKIP: "cp38-* cp314t-*"

- uses: actions/upload-artifact@v6
with:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[build-system]
requires = ["setuptools>=64", "wheel", "numpy"]
requires = ["setuptools>=64", "wheel", "numpy>=2.0.0"]
build-backend = "setuptools.build_meta"
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
imageio
numpy
numpy>=2.0.0
11 changes: 6 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ def __str__(self):
'src/cpp/experimental_heuristics.cpp',
],
define_macros=[
('Py_LIMITED_API', '0x03080000'),
('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION'),
('Py_LIMITED_API', '0x03090000'),
('NPY_NO_DEPRECATED_API', 'NPY_2_0_API_VERSION'),
('NPY_TARGET_VERSION', 'NPY_2_0_API_VERSION'),
],
py_limited_api=True,
include_dirs=[
Expand All @@ -42,7 +43,7 @@ def __str__(self):
# Define package metadata
setup(
name='pyastar2d',
version='1.1.0',
version='1.1.1',
author='Hendrik Weideman',
author_email='hjweide@gmail.com',
description='A simple implementation of the A* algorithm for path-finding on a two-dimensional grid.',
Expand All @@ -52,7 +53,7 @@ def __str__(self):
packages=find_packages(where='src', exclude=('tests',)),
package_dir={'': 'src'},
install_requires=install_requires,
python_requires='>=3.8',
python_requires='>=3.9',
ext_modules=[astar_module],
options={'bdist_wheel': {'py_limited_api': 'cp38'}},
options={'bdist_wheel': {'py_limited_api': 'cp39'}},
)
1 change: 0 additions & 1 deletion src/cpp/astar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include <limits>
#include <cmath>
#include <Python.h>
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <numpy/arrayobject.h>
#include <iostream>
#include <experimental_heuristics.h>
Expand Down