Skip to content

Commit

Permalink
Drop Python 3.7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Dec 11, 2023
1 parent 99ae901 commit d284418
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
docs:
runs-on: ubuntu-latest
container:
image: python:3.8
image: python:3.9
steps:

# Check out source
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
python-version: ["3.9", "3.10"]

steps:
- uses: actions/checkout@v2
Expand Down
11 changes: 5 additions & 6 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
sphinx==5.1.0
sphinx==7.2.6
sphinx_rtd_theme
sphinx_math_dollar
sphinx-autoapi==1.8.0
sphinx-autoapi==3.0.0
graphviz
m2r

# Workaround for https://github.com/miyakogi/m2r/issues/66
mistune<2.0.0
m2r2==0.3.3.post2
git+https://github.com/brentyi/sphinxcontrib-programoutput.git
git+https://github.com/brentyi/ansi.git
18 changes: 4 additions & 14 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language: Optional[str] = None
language: Optional[str] = "en"

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down Expand Up @@ -275,17 +275,7 @@ def __init__(self, obj, **kwargs):
bases = obj["bases"]
for i in range(len(bases)):
bases[i] = _apply_name_aliases(bases[i])

args = obj["args"]
if args is not None:
for i in range(len(args)):
assert isinstance(args[i], tuple) and len(args[i]) == 4
args[i] = (
args[i][0],
args[i][1],
_apply_name_aliases(args[i][2]),
args[i][3],
)
obj["full_name"] = _apply_name_aliases(obj["full_name"])
orig_init(self, obj, **kwargs)

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

# -- Enable Markdown -> RST conversion ----------------------------------------

import m2r
import m2r2


def docstring(app, what, name, obj, options, lines):
md = "\n".join(lines)
rst = m2r.convert(md)
rst = m2r2.convert(md)
lines.clear()
lines += rst.splitlines()

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
license="MIT",
packages=find_packages(),
package_data={"jaxlie": ["py.typed"]},
python_requires=">=3.7",
python_requires=">=3.8",
install_requires=[
"jax>=0.3.18", # For jax.Array.
"jax_dataclasses>=1.4.4",
Expand Down

0 comments on commit d284418

Please sign in to comment.