File tree Expand file tree Collapse file tree 5 files changed +26
-27
lines changed
Expand file tree Collapse file tree 5 files changed +26
-27
lines changed Original file line number Diff line number Diff line change 8080 name : sdist
8181 path : dist/*.tar.gz
8282
83- test_rst :
84- needs : build_wheels
85- name : Test rst docs
86- runs-on : ubuntu-20.04
87-
88- steps :
89- - uses : actions/checkout@v4
90-
91- - uses : actions/setup-python@v5
92- with :
93- python-version : ' 3.12'
94-
95- - uses : actions/download-artifact@v4
96- with :
97- name : wheels-ubuntu-20.04
98- path : wheelhouse
99-
100- - run : pip install --upgrade pip
101- - run : pip install pytest
102- - run : pip install --no-index --find-links wheelhouse python_flint
103- - run : pytest --doctest-glob='*.rst' doc/source
104-
10583 test_wheels :
10684 needs : build_wheels
10785 name : Test ${{ matrix.python-version }} wheel on ${{ matrix.os }}
@@ -143,6 +121,22 @@ jobs:
143121 - run : pip install .
144122 - run : python -m flint.test --verbose
145123
124+ test_docs :
125+ name : Test docs (build and doctest)
126+ runs-on : ubuntu-24.04
127+ steps :
128+ - uses : actions/checkout@v4
129+ - uses : actions/setup-python@v5
130+ with :
131+ python-version : ' 3.12'
132+ - run : sudo apt-get update
133+ - run : sudo apt-get install libflint-dev
134+
135+ - run : pip install --upgrade pip
136+ - run : pip install -r requirements-dev.txt
137+ - run : spin run -- pytest --doctest-glob='*.rst' doc/source
138+ - run : spin docs
139+
146140 # Test build with minimum Cython and meson-python versions.
147141 test_old_build_requires :
148142 name : ' Test old Cython/meson-python'
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ and Arb (arbitrary-precision ball arithmetic). Features:
99* Polynomials, power series and matrices over all the above types
1010* Lots of mathematical functions
1111
12- Documentation: http ://fredrikj.net/ python-flint/
12+ Documentation: https ://python-flint.readthedocs.io/en/latest /
1313
1414Repository: https://github.com/flintlib/python-flint/
1515
@@ -67,7 +67,7 @@ as follows:
6767See the documentation for further notes on building and installing
6868python-flint:
6969
70- * https://fredrikj.net/ python-flint/setup.html
70+ * https://python-flint.readthedocs.io/en/latest /setup.html
7171
7272Examples
7373-------------------------------------
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ description = "Bindings for FLINT"
44version = " 0.7.0a4"
55# This needs to be in sync with README, cibuildwheel and CI config.
66requires-python = " >= 3.10"
7- urls = {Homepage = " https://github.com/flintlib/python-flint" }
87authors = [
98 {
name =
" Fredrik Johansson" ,
email =
" [email protected] " },
109]
@@ -13,6 +12,12 @@ classifiers = [
1312 " Topic :: Scientific/Engineering :: Mathematics" ,
1413]
1514
15+ [project .urls ]
16+ Homepage = " https://github.com/flintlib/python-flint"
17+ Documentation = " https://python-flint.readthedocs.io/en/latest/"
18+ Repository = " https://github.com/flintlib/python-flint"
19+ Changelog = " https://github.com/flintlib/python-flint/blob/master/README.md#changelog"
20+
1621[project .readme ]
1722file = " README.md"
1823content-type = " text/markdown"
Original file line number Diff line number Diff line change @@ -1660,7 +1660,7 @@ cdef class fmpz_mod_poly(flint_poly):
16601660 :math:`f^e \mod x^n`/
16611661
16621662 Note: For exponents larger that 2^31 (which do not fit inside a ulong) use the
1663- method :method :`~.pow_mod` with the explicit modulus `x^n`.
1663+ method :meth :`~.pow_mod` with the explicit modulus `x^n`.
16641664
16651665 >>> R = fmpz_mod_poly_ctx(163)
16661666 >>> x = R.gen()
Original file line number Diff line number Diff line change @@ -1139,7 +1139,7 @@ cdef class fq_default_poly(flint_poly):
11391139 :math:`f^e \mod x^n`/
11401140
11411141 Note: For exponents larger that 2^31 (which do not fit inside a ulong) use the
1142- method :method :`~.pow_mod` with the explicit modulus `x^n`.
1142+ method :meth :`~.pow_mod` with the explicit modulus `x^n`.
11431143
11441144 >>> R = fq_default_poly_ctx(163)
11451145 >>> x = R.gen()
You can’t perform that action at this time.
0 commit comments