Skip to content

Commit

Permalink
Drop support for 3.8 (which is EOL), add it for 3.13.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Oct 28, 2024
1 parent 289dd5d commit c4b4660
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
python-version: |
3.9
3.10
3.11
3.12
3.13
pypy3.10
allow-prereleases: true

- name: Set up uv
uses: hynek/setup-cached-uv@v2
Expand Down
9 changes: 6 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,23 @@
TESTS = ROOT / "test_github_reserved_names.py"


SUPPORTED = ["3.9", "3.10", "pypy3.10", "3.11", "3.12", "3.13"]
LATEST = SUPPORTED[-1]

nox.options.default_venv_backend = "uv|virtualenv"
nox.options.sessions = []


def session(default=True, **kwargs): # noqa: D103
def session(default=True, python=LATEST, **kwargs): # noqa: D103
def _session(fn):
if default:
nox.options.sessions.append(kwargs.get("name", fn.__name__))
return nox.session(**kwargs)(fn)
return nox.session(python=python, **kwargs)(fn)

return _session


@session(python=["3.8", "3.9", "3.10", "3.11", "pypy3"])
@session(python=SUPPORTED)
def tests(session):
"""
Run the test suite with a corresponding Python version.
Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,23 @@ source = "vcs"
[project]
name = "github_reserved_names"
description = "A list of paths that GitHub uses which aren't real users"
requires-python = ">=3.9"
readme = "README.rst"
keywords = ["github api", "github"]
authors = [
{ name = "Julian Berman", email = "[email protected]" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
Expand Down

0 comments on commit c4b4660

Please sign in to comment.