Skip to content

Commit

Permalink
Adds in the necessary files to build in new pip version (#12)
Browse files Browse the repository at this point in the history
# 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.
  • Loading branch information
owencjones authored Feb 10, 2023
1 parent 1366558 commit f28b0d4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Python package

on: [push, pull_request]
on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, '3.10']
python-version: [3.7, 3.8, 3.9, '3.10', '3.11']

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=42"]
build-backend = "setuptools.build_meta"
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
numpy
numpy<=1.23.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
]

if USE_CYTHON:
from Cython.Build import cythonize
from Cython.Build import cythonize # noqa

extensions = cythonize(extensions)

Expand Down

0 comments on commit f28b0d4

Please sign in to comment.