Skip to content

Commit

Permalink
Add Python 3.13, drop Python 3.8, update tool versions (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
wRAR authored Oct 16, 2024
1 parent 52e14be commit 3cbfc9d
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
fail-fast: false
matrix:
include:
- python-version: '3.8'
- python-version: '3.9'
toxenv: min
- python-version: '3.8'
- python-version: '3.9'
- python-version: '3.10'
- python-version: '3.11'
- python-version: '3.12'
- python-version: '3.13'

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ repos:
- id: black
language_version: python3
repo: https://github.com/psf/black
rev: 24.3.0
rev: 24.10.0
- hooks:
- id: isort
language_version: python3
Expand All @@ -18,4 +18,4 @@ repos:
- flake8-debugger
- flake8-string-format
repo: https://github.com/pycqa/flake8
rev: 7.0.0
rev: 7.1.1
9 changes: 1 addition & 8 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = ".rst"
source_suffix = source_suffix = {".rst": "restructuredtext"}

# The master toctree document.
master_doc = "index"
Expand Down Expand Up @@ -83,13 +83,6 @@
#
html_theme = "sphinx_rtd_theme"

# Add any paths that contain custom themes here, relative to this directory.
# Add path to the RTD explicitly to robustify builds (otherwise might
# fail in a clean Debian build env)
import sphinx_rtd_theme # noqa

html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_version():
"tests",
]
),
python_requires=">=3.8",
python_requires=">=3.9",
install_requires=[
"tldextract>=1.2",
],
Expand All @@ -38,10 +38,10 @@ def get_version():
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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",
],
)
13 changes: 7 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = min,py38,py39,py310,py311,py312,mypy,docs
envlist = min,py39,py310,py311,py312,py313,mypy,docs

[testenv]
deps =
Expand All @@ -13,16 +13,17 @@ commands =
{posargs:url_matcher tests}

[testenv:min]
basepython = python3.8
basepython = python3.9
deps =
{[testenv]deps}
tldextract==1.2

[testenv:mypy]
deps =
mypy==1.9.0
mypy==1.12.0
pytest==8.3.3
commands =
mypy --ignore-missing-imports --no-warn-no-return url_matcher tests
mypy url_matcher tests

[docs]
changedir = docs
Expand All @@ -45,8 +46,8 @@ commands =
[testenv:twinecheck]
basepython = python3
deps =
twine==5.0.0
build==1.2.1
twine==5.1.1
build==1.2.2
commands =
python -m build --sdist
twine check dist/*

0 comments on commit 3cbfc9d

Please sign in to comment.