Skip to content

Commit

Permalink
Be compatible with python3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Jan 31, 2024
1 parent fb3804e commit c938807
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/pypi_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
fail-fast: False
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]
python-version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11"]
os: [ "ubuntu-latest" , "macos-latest", "macos-10.15"]
exclude:
- python-version: 3.6
Expand All @@ -35,6 +35,8 @@ jobs:
os: "ubuntu-latest"
- python-version: "3.10"
os: "ubuntu-latest"
- python-version: "3.11"
os: "ubuntu-latest"
steps:
# Setup steps
- name: Setup python
Expand All @@ -50,11 +52,11 @@ jobs:
run: pip install wheel twine

# -- Linux --
- name: Build weels (linux) python 3.8, 3.9, 3.10
- name: Build weels (linux) python 3.8, 3.9, 3.10, 3.11
if: matrix.os == 'ubuntu-latest'
uses: RalfG/python-wheels-manylinux-build@v0.4.2-manylinux2014_x86_64
with:
python-versions: 'cp38-cp38 cp39-cp39 cp310-cp310'
python-versions: 'cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311'
build-requirements: 'numpy==1.21.6'
- name: Build legacy weels (linux) python 3.6, 3.7
if: matrix.os == 'ubuntu-latest'
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/test_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,20 @@ jobs:
fail-fast: False
matrix:
os: [ "ubuntu-latest" , "macos-latest" ]
python-version: [ 3.6, 3.7, 3.8, 3.9, "3.10" ]
python-version: [ 3.6, 3.7, 3.8, 3.9, "3.10", "3.11" ]
exclude:
- os: ubuntu-latest
python-version: 3.6
- os: ubuntu-20.04
python-version: 3.7
- os: ubuntu-20.04
python-version: 3.8
- os: ubuntu-20.04
python-version: 3.9
- os: ubuntu-20.04
python-version: "3.10"
- os: ubuntu-20.04
python-version: "3.11"
steps:
- name: Setup python
uses: actions/setup-python@v2.3.1
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def build_extension(self, ext):
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: C++',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: Implementation :: CPython',
Expand Down

0 comments on commit c938807

Please sign in to comment.