Skip to content

Commit 3fe5f62

Browse files
authored
Merge pull request #29 from sagemath/py312
Add compatibility with Python 3.12
2 parents b782faa + 46fa129 commit 3fe5f62

File tree

6 files changed

+27
-9
lines changed

6 files changed

+27
-9
lines changed

.github/workflows/doc.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ jobs:
3939
sleep 1
4040
# We ignore _modules since sphinx puts all modules in the module
4141
# overview but does not generate pages for .pyx modules.
42-
linkchecker --check-extern --ignore-url=_modules/ http://localhost:8880
42+
# We also ignore a url that is generated by sphinx itself (version 7.2.6).
43+
linkchecker --check-extern --ignore-url='_modules/|https://www.sphinx-doc.org/' http://localhost:8880
4344
- uses: JamesIves/github-pages-deploy-action@3.7.1
4445
with:
4546
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: ["3.8", "3.9", "3.10", "3.11"]
15+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1616
cython: ["cython", "cython<3.0.0"]
17+
exclude:
18+
- python-version: 3.12
19+
cython: cython<3.0.0
1720
steps:
1821
- uses: actions/checkout@v2
1922
with: { submodules: recursive }
@@ -22,8 +25,19 @@ jobs:
2225
- name: Install pplpy dependencies
2326
shell: bash -l {0}
2427
run: |
25-
mamba install --quiet setuptools gmpy2 cysignals ppl "${{matrix.cython}}"
26-
conda list
28+
mamba install --quiet setuptools cysignals ppl gmp mpfr mpc "${{matrix.cython}}"
29+
- name: Install gmpy2 via mamba
30+
shell: bash -l {0}
31+
if: ${{ matrix.python-version != '3.12' }}
32+
run: |
33+
mamba install --quiet gmpy2
34+
python -c 'import gmpy2; print(gmpy2.version())'
35+
- name: Install gmpy2 via pip
36+
shell: bash -l {0}
37+
if: ${{ matrix.python-version == '3.12' }}
38+
run: |
39+
pip install --pre gmpy2==2.2.0a1
40+
python -c 'import gmpy2; print(gmpy2.version())'
2741
- name: Install pplpy
2842
shell: bash -l {0}
2943
run: |

README.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ The available objects and functions from the `ppl` Python module are:
4444
Installation
4545
------------
4646

47-
The project is available at `Python Package Index <https://pypi.python.org/pypi/pplpy/>`_ and
47+
48+
The project is available at `Python Package Index <https://pypi.org/project/pplpy/>`_ and
4849
can be installed with pip::
4950

5051
$ pip install pplpy
@@ -76,7 +77,7 @@ Documentation
7677

7778
An online version of the documentation is available at https://www.sagemath.org/pplpy/
7879

79-
Compiling the html documentation requires make and `sphinx <http://www.sphinx-doc.org/en/master/>`_.
80+
Compiling the html documentation requires make and `sphinx <https://www.sphinx-doc.org/en/master/>`_.
8081
Before building the documentation, you need to install the pplpy package (sphinx uses Python introspection).
8182
The documentation source code is contained in the repository `docs` where there is a standard
8283
Makefile with a target `html`. Running `make html` in the `docs` repository builds the documentation
@@ -96,9 +97,9 @@ Requirements
9697

9798
- `Cython <http://cython.org>`_ (tested with both 0.29 and 3.0)
9899

99-
- `cysignals <https://pypi.python.org/pypi/cysignals>`_
100+
- `cysignals <https://pypi.org/project/cysignals/>`_
100101

101-
- `gmpy2 <https://pypi.python.org/pypi/gmpy2>`_
102+
- `gmpy2 <https://pypi.org/project/gmpy2/>`_
102103

103104
On Debian/Ubuntu systems the dependencies can be installed with::
104105

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Welcome to pplpy's documentation!
66
Installation
77
------------
88

9-
pplpy is available from the `Python Package Index <https://pypi.python.org/pypi/pplpy/>`_. You can hence install it with::
9+
pplpy is available from the `Python Package Index <https://pypi.org/project/pplpy/>`_. You can hence install it with::
1010

1111
$ pip install pplpy
1212

environment.test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ channels:
44
- defaults
55
dependencies:
66
- sphinx
7+
- pip
78
- pip:
89
- linkchecker
910
- cython-lint

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ classifiers =
2020
Programming Language :: Python :: 3.9
2121
Programming Language :: Python :: 3.10
2222
Programming Language :: Python :: 3.11
23+
Programming Language :: Python :: 3.12
2324
keywords =
2425
polyhedron
2526
polytope

0 commit comments

Comments
 (0)