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

Add support of Python 3.12 #27

Merged
merged 4 commits into from
Oct 5, 2024
Merged
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.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v2
Expand Down
15 changes: 8 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ data_file = .tox/.coverage

[testenv:mypy]
deps =
mypy==1.4.*
types-requests==2.28.*
mypy~=1.4
types-requests~=2.28
-r{toxinidir}/tests/requirements.txt
commands = mypy ujenkins tests
cache_dir = .tox/.mypy_cache
Expand All @@ -27,13 +27,13 @@ ignore_missing_imports = true
[testenv:ruff]
skip_install = true
deps =
ruff==0.0.289
ruff~=0.6
commands =
ruff check .

[testenv:flake8]
deps =
flake8==4.*
flake8~=7.1
-r{toxinidir}/requirements.txt
-r{toxinidir}/tests/requirements.txt
commands = flake8 ujenkins tests
Expand All @@ -44,17 +44,18 @@ max-line-length = 99
[testenv:pylint]
skip_install = true
deps =
pylint==2.16
pylint~=3.3; python_version >= '3.9'
pylint>=2.16,<3.3; python_version < '3.9'
-r{toxinidir}/requirements.txt
-r{toxinidir}/tests/requirements.txt
commands =
pylint \
--disable=E0611,R0801,W0212,W0511,C0103,C0114,C0115,C0116,C0209,R0902,R0903,R0911,R1713 \
--disable=E0611,R0801,W0212,W0511,C0103,C0114,C0115,C0116,C0209,R0902,R0903,R0911,R0913,R1713 \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://pylint.readthedocs.io/en/latest/user_guide/messages/refactor/too-many-arguments.html

pylint: commands[0]> pylint --disable=E0611,R0801,W0212,W0511,C0103,C0114,C0115,C0116,C0209,R0902,R0903,R0911,R1713 --good-names=e,i,k,v ujenkins tests
************* Module ujenkins.adapters.sync
ujenkins/adapters/sync.py:15:4: R0913: Too many arguments (7/5) (too-many-arguments)
************* Module ujenkins.adapters.aio
ujenkins/adapters/aio.py:58:4: R0913: Too many arguments (7/5) (too-many-arguments)

--good-names=e,i,k,v \
ujenkins tests

[testenv:isort]
deps = isort==5.*
deps = isort~=5.13
commands = isort ujenkins tests

[isort]
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
license='MIT',
packages=find_packages(),
Expand All @@ -41,8 +42,8 @@
)

install_requires = [
'aiohttp>3.6.2,<3.9.0',
'requests>=2.24.0,<3.0.0',
'aiohttp~=3.6',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is recommended to upgrade to at least version 3.10.5 or higher to ensure compatibility with Python 3.12

'requests~=2.24',
'urllib3>=1.26,<3',
]

Expand Down
Loading