diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 35aca3e..820c29d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8f0e198..f7ec775 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1728dce..363fa91 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -18,4 +18,4 @@ repos: - flake8-debugger - flake8-string-format repo: https://github.com/pycqa/flake8 - rev: 7.0.0 + rev: 7.1.1 diff --git a/docs/conf.py b/docs/conf.py index e92b14a..55a2f19 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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" @@ -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. diff --git a/setup.py b/setup.py index c02c404..409964c 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ def get_version(): "tests", ] ), - python_requires=">=3.8", + python_requires=">=3.9", install_requires=[ "tldextract>=1.2", ], @@ -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", ], ) diff --git a/tox.ini b/tox.ini index 731c9ea..eec2403 100644 --- a/tox.ini +++ b/tox.ini @@ -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 = @@ -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 @@ -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/*