Skip to content

Commit

Permalink
Merge pull request #257 from fplll/python-3.12-ci
Browse files Browse the repository at this point in the history
Python 3.12
  • Loading branch information
malb committed Oct 16, 2023
2 parents 8305e20 + e95aeb6 commit d1e8999
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sdist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]
have_qd: [yes, no]
have_numpy: [yes, no]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]
have_qd: [yes, no]
have_ld: [yes, no]
have_numpy: [yes, no]
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ from the top-level directory which runs all tests in ``tests/test_*.py``. We run

$ (fpylll) flake8 --max-line-length=120 --max-complexity=16 --ignore=E22,E241 src

Note that **fpylll** supports Python 3. In particular, tests are run using Python 3.8, 3.9 and 3.10. See `.tests.yml <https://github.com/fplll/fpylll/blob/master/.github/workflows/tests.yml>`_ for details on automated testing.
Note that **fpylll** supports Python 3. In particular, tests are run using Python 3.10, 3.11 and 3.12. See `.tests.yml <https://github.com/fplll/fpylll/blob/master/.github/workflows/tests.yml>`_ for details on automated testing.


Attribution & License
Expand Down
8 changes: 3 additions & 5 deletions docs/example-gauss-circle-problem.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,11 @@ The parameter `nr_solutions` is by default `1.` If we set say, `{\rm{nr\_solutio
>>> from fpylll.fplll.gso import MatGSO
>>> from fpylll.fplll.integer_matrix import IntegerMatrix
>>> from fpylll import Enumeration, EvaluatorStrategy
>>> import numpy as np
>>> from math import pi, ceil, sqrt
>>> def n(radius):
... dim = 2
... pi = np.pi
... nr = np.ceil(pi*radius**2 + 2*np.sqrt(2)*pi*radius)
... B = np.matlib.identity(dim)
... A = npmat2fpmat(B) #define the latttice Z^dim
... nr = ceil(pi*radius**2 + 2*sqrt(2)*pi*radius)
... A = IntegerMatrix.idenity(dim)
... M = MatGSO(A)
... _ = M.update_gso()
... enum = Enumeration(M,nr_solutions = nr)
Expand Down
2 changes: 0 additions & 2 deletions docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,6 @@ To compute the norm of a shortest vector of the lattice generated by the rows of
::

>>> from fpylll import SVP
>>> from numpy import linalg as LA
>>> import numpy as np
>>> SVP.shortest_vector(A)
(2, -2, 7, 4, -1)
>>> print(A[0])
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
setuptools
Cython>=3.0
pytest
cysignals
Expand Down
2 changes: 1 addition & 1 deletion src/fpylll/fplll/bkz_param.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ cdef class Strategy:
>>> from fpylll import load_strategies_json, BKZ
>>> print(load_strategies_json(BKZ.DEFAULT_STRATEGY)[50].dict()) # doctest: +ELLIPSIS
OrderedDict([('block_size', 50), ('preprocessing_block_sizes', (26,)), ('pruning_parameters', ...)])
OrderedDict...
>>> print(load_strategies_json(BKZ.DEFAULT_STRATEGY)[50])
Strategy< 50, (26), 0.52-0.55, {}>
Expand Down

0 comments on commit d1e8999

Please sign in to comment.