Skip to content

Commit f28b0d4

Browse files
authored
Adds in the necessary files to build in new pip version (#12)
# Changelog Adds in the necessary files to build in new pip version Added Python 3.11 to test matrix, to ensure new distribution will work Pin numpy version because 'float' and 'int' no longer exist in their library Changed jobs to run on PR to save action minutes.
1 parent 1366558 commit f28b0d4

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: Python package
22

3-
on: [push, pull_request]
3+
on: [pull_request]
44

55
jobs:
66
build:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: [3.7, 3.8, 3.9, '3.10']
10+
python-version: [3.7, 3.8, 3.9, '3.10', '3.11']
1111

1212
steps:
1313
- uses: actions/checkout@v2

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools>=42"]
3+
build-backend = "setuptools.build_meta"

requirements-test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
numpy
1+
numpy<=1.23.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
]
3232

3333
if USE_CYTHON:
34-
from Cython.Build import cythonize
34+
from Cython.Build import cythonize # noqa
3535

3636
extensions = cythonize(extensions)
3737

0 commit comments

Comments
 (0)