Skip to content

Commit d284418

Browse files
committed
Drop Python 3.7 support
1 parent 99ae901 commit d284418

File tree

6 files changed

+13
-24
lines changed

6 files changed

+13
-24
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.7", "3.8", "3.9"]
14+
python-version: ["3.8", "3.9", "3.10", "3.11"]
1515

1616
steps:
1717
- uses: actions/checkout@v2

.github/workflows/docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
docs:
99
runs-on: ubuntu-latest
1010
container:
11-
image: python:3.8
11+
image: python:3.9
1212
steps:
1313

1414
# Check out source

.github/workflows/mypy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.8"]
14+
python-version: ["3.9", "3.10"]
1515

1616
steps:
1717
- uses: actions/checkout@v2

docs/requirements.txt

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
sphinx==5.1.0
1+
sphinx==7.2.6
22
sphinx_rtd_theme
33
sphinx_math_dollar
4-
sphinx-autoapi==1.8.0
4+
sphinx-autoapi==3.0.0
55
graphviz
6-
m2r
7-
8-
# Workaround for https://github.com/miyakogi/m2r/issues/66
9-
mistune<2.0.0
6+
m2r2==0.3.3.post2
7+
git+https://github.com/brentyi/sphinxcontrib-programoutput.git
8+
git+https://github.com/brentyi/ansi.git

docs/source/conf.py

+4-14
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
#
7373
# This is also used if you do content translation via gettext catalogs.
7474
# Usually you set "language" from the command line for these cases.
75-
language: Optional[str] = None
75+
language: Optional[str] = "en"
7676

7777
# List of patterns, relative to source directory, that match files and
7878
# directories to ignore when looking for source files.
@@ -275,17 +275,7 @@ def __init__(self, obj, **kwargs):
275275
bases = obj["bases"]
276276
for i in range(len(bases)):
277277
bases[i] = _apply_name_aliases(bases[i])
278-
279-
args = obj["args"]
280-
if args is not None:
281-
for i in range(len(args)):
282-
assert isinstance(args[i], tuple) and len(args[i]) == 4
283-
args[i] = (
284-
args[i][0],
285-
args[i][1],
286-
_apply_name_aliases(args[i][2]),
287-
args[i][3],
288-
)
278+
obj["full_name"] = _apply_name_aliases(obj["full_name"])
289279
orig_init(self, obj, **kwargs)
290280

291281
autoapi.mappers.python.PythonClass.__init__ = __init__
@@ -344,12 +334,12 @@ def __init__(self, obj, **kwargs):
344334

345335
# -- Enable Markdown -> RST conversion ----------------------------------------
346336

347-
import m2r
337+
import m2r2
348338

349339

350340
def docstring(app, what, name, obj, options, lines):
351341
md = "\n".join(lines)
352-
rst = m2r.convert(md)
342+
rst = m2r2.convert(md)
353343
lines.clear()
354344
lines += rst.splitlines()
355345

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
license="MIT",
1616
packages=find_packages(),
1717
package_data={"jaxlie": ["py.typed"]},
18-
python_requires=">=3.7",
18+
python_requires=">=3.8",
1919
install_requires=[
2020
"jax>=0.3.18", # For jax.Array.
2121
"jax_dataclasses>=1.4.4",

0 commit comments

Comments
 (0)