Skip to content

Commit 6e3585b

Browse files
Merge pull request #202 from oscarbenjamin/pr_update_doc_urls
Update doc URLs to point to readthedocs
2 parents 0fa5e3a + b3cc783 commit 6e3585b

File tree

5 files changed

+26
-27
lines changed

5 files changed

+26
-27
lines changed

.github/workflows/buildwheel.yml

+16-22
Original file line numberDiff line numberDiff line change
@@ -80,28 +80,6 @@ jobs:
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'

README.md

+2-2
Original file line numberDiff line numberDiff 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

1414
Repository: https://github.com/flintlib/python-flint/
1515

@@ -67,7 +67,7 @@ as follows:
6767
See the documentation for further notes on building and installing
6868
python-flint:
6969

70-
* https://fredrikj.net/python-flint/setup.html
70+
* https://python-flint.readthedocs.io/en/latest/setup.html
7171

7272
Examples
7373
-------------------------------------

pyproject.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description = "Bindings for FLINT"
44
version = "0.7.0a4"
55
# This needs to be in sync with README, cibuildwheel and CI config.
66
requires-python = ">= 3.10"
7-
urls = {Homepage = "https://github.com/flintlib/python-flint"}
87
authors = [
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]
1722
file = "README.md"
1823
content-type = "text/markdown"

src/flint/types/fmpz_mod_poly.pyx

+1-1
Original file line numberDiff line numberDiff 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()

src/flint/types/fq_default_poly.pyx

+1-1
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)