Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declare support for Python 3.13 #218

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## CHANGELOG

### 6.0.0

* Declare support for Python 3.13

### 5.0.0

* Dropped support Python 3.8
Expand Down
132 changes: 70 additions & 62 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,157 +1,165 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --extra=dev --output-file=dev-requirements.txt pyproject.toml
#
attrs==22.1.0
# via pytest
autopep8==2.0.0
autopep8==2.3.1
# via pip-licenses (pyproject.toml)
black==24.3.0
backports-tarfile==1.2.0
# via jaraco-context
black==24.10.0
# via pip-licenses (pyproject.toml)
bleach==5.0.1
# via readme-renderer
build==0.9.0
build==1.2.2.post1
# via pip-tools
certifi==2024.7.4
certifi==2024.8.30
# via requests
cffi==1.15.1
cffi==1.17.1
# via cryptography
charset-normalizer==2.1.1
charset-normalizer==3.4.0
# via requests
click==8.1.3
click==8.1.7
# via
# black
# pip-tools
commonmark==0.9.1
# via rich
coverage[toml]==6.5.0
coverage[toml]==7.6.2
# via pytest-cov
cryptography==42.0.4
cryptography==43.0.1
# via secretstorage
docutils==0.19
docutils==0.21.2
# via
# pip-licenses (pyproject.toml)
# readme-renderer
exceptiongroup==1.2.0
exceptiongroup==1.2.2
# via pytest
idna==3.7
idna==3.10
# via requests
importlib-metadata==5.1.0
importlib-metadata==8.5.0
# via
# build
# keyring
# twine
iniconfig==1.1.1
iniconfig==2.0.0
# via pytest
isort==5.10.1
isort==5.13.2
# via pip-licenses (pyproject.toml)
jaraco-classes==3.2.3
jaraco-classes==3.4.0
# via keyring
jaraco-context==6.0.1
# via keyring
jaraco-functools==4.1.0
# via keyring
jeepney==0.8.0
# via
# keyring
# secretstorage
keyring==23.11.0
keyring==25.4.1
# via twine
more-itertools==9.0.0
# via jaraco-classes
mypy==0.991
markdown-it-py==3.0.0
# via rich
mdurl==0.1.2
# via markdown-it-py
more-itertools==10.5.0
# via
# jaraco-classes
# jaraco-functools
mypy==1.11.2
# via pip-licenses (pyproject.toml)
mypy-extensions==0.4.3
mypy-extensions==1.0.0
# via
# black
# mypy
packaging==22.0
nh3==0.2.18
# via readme-renderer
packaging==24.1
# via
# black
# build
# pytest
pathspec==0.10.2
pathspec==0.12.1
# via black
pep517==0.13.0
# via build
pip-tools==6.11.0
pip-tools==7.4.1
# via pip-licenses (pyproject.toml)
pkginfo==1.9.2
pkginfo==1.10.0
# via twine
platformdirs==2.6.0
platformdirs==4.3.6
# via black
pluggy==1.0.0
pluggy==1.5.0
# via pytest
prettytable==3.9.0
# via -r requirements.in
prettytable==3.11.0
# via pip-licenses (pyproject.toml)
py==1.11.0
# via pytest-pycodestyle
pycodestyle==2.10.0
pycodestyle==2.12.1
# via
# autopep8
# pytest-pycodestyle
pycparser==2.21
pycparser==2.22
# via cffi
pygments==2.15.0
pygments==2.18.0
# via
# readme-renderer
# rich
pypandoc==1.10
pypandoc==1.14
# via pip-licenses (pyproject.toml)
pytest==7.2.0
pyproject-hooks==1.2.0
# via
# build
# pip-tools
pytest==8.3.3
# via
# pytest-cov
# pytest-pycodestyle
pytest-cov==4.0.0
pytest-cov==5.0.0
# via pip-licenses (pyproject.toml)
pytest-pycodestyle==2.3.1
pytest-pycodestyle==2.4.1
# via pip-licenses (pyproject.toml)
pytest-runner==6.0.0
pytest-runner==6.0.1
# via pip-licenses (pyproject.toml)
readme-renderer==37.3
readme-renderer==44.0
# via twine
requests==2.32.0
requests==2.32.3
# via
# requests-toolbelt
# twine
requests-toolbelt==0.10.1
requests-toolbelt==1.0.0
# via twine
rfc3986==2.0.0
# via twine
rich==12.6.0
rich==13.9.2
# via twine
secretstorage==3.3.3
# via keyring
six==1.16.0
# via bleach
tomli==2.0.1
tomli==2.0.2
# via
# autopep8
# black
# build
# coverage
# mypy
# pep517
# pip-licenses (pyproject.toml)
# pip-tools
# pytest
tomli-w==1.0.0
tomli-w==1.1.0
# via pip-licenses (pyproject.toml)
twine==4.0.2
twine==5.1.1
# via pip-licenses (pyproject.toml)
typing-extensions==4.10.0
typing-extensions==4.12.2
# via
# black
# mypy
# rich
urllib3==1.26.19
urllib3==2.2.3
# via
# requests
# twine
wcwidth==0.2.13
# via prettytable
webencodings==0.5.1
# via bleach
wheel==0.38.4
wheel==0.44.0
# via
# pip-licenses (pyproject.toml)
# pip-tools
zipp==3.19.1
zipp==3.20.2
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
Expand Down
4 changes: 3 additions & 1 deletion piplicenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ def get_pkg_included_file(
lambda file: pattern.match(file.name), pkg_files
)
for rel_path in matched_rel_paths:
abs_path = Path(pkg.locate_file(rel_path))
abs_path = Path(
pkg.locate_file(rel_path) # type: ignore[arg-type]
)
if not abs_path.is_file():
continue
included_file = str(abs_path)
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: System :: Systems Administration",
"Topic :: System :: System Shells",
"Typing :: Typed"
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --output-file=requirements.txt pyproject.toml
#
prettytable==3.9.0
prettytable==3.11.0
# via pip-licenses (pyproject.toml)
tomli==2.0.1
tomli==2.0.2
# via pip-licenses (pyproject.toml)
wcwidth==0.2.13
# via prettytable