Skip to content

Commit

Permalink
Add support for Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
vdusek committed Oct 17, 2023
1 parent 30f3d82 commit 9a37553
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,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"]
max-parallel: 1 # no concurrency on this level, to not overshoot the test user limits

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint_and_type_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,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:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}

steps:
Expand Down
8 changes: 5 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
Changelog
=========

[1.1.6](../../releases/tag/v1.4.5) - Unreleased
[1.1.6](../../releases/tag/v1.1.6) - Unreleased
-----------------------------------------------

...
### Added

- Added support for Python 3.12

[1.1.5](../../releases/tag/v1.4.5) - 2023-10-03
[1.1.5](../../releases/tag/v1.1.5) - 2023-10-03
-----------------------------------------------

### Added
Expand Down
35 changes: 18 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries",
]

Expand All @@ -31,43 +32,43 @@ dependencies = [
"cryptography >= 39.0.0",
"httpx >= 0.24.1",
"psutil >= 5.9.5",
"pyee >= 9.0.0",
"pyee >= 11.0.1",
"sortedcollections >= 2.0.1",
"typing-extensions >= 4.1.0",
"websockets >= 10.1",
]

[project.optional-dependencies]
dev = [
"autopep8 ~= 2.0.2",
"build ~= 0.10.0",
"filelock ~= 3.12.0",
"flake8 ~= 6.0.0",
"flake8-bugbear ~= 23.5.9",
"flake8-commas ~= 2.1.0",
"flake8-comprehensions ~= 3.12.0",
"autopep8 ~= 2.0.4",
"build ~= 1.0.3",
"filelock ~= 3.12.4",
"flake8 ~= 6.1.0",
"flake8-bugbear ~= 23.9.16",
"flake8-commas ~= 2.1.0; python_version < '3.12'",
"flake8-comprehensions ~= 3.14.0",
"flake8-datetimez ~= 20.10.0",
"flake8-docstrings ~= 1.7.0",
"flake8-encodings ~= 0.5.0",
"flake8-isort ~= 6.0.0",
"flake8-noqa ~= 1.3.1",
"flake8-isort ~= 6.1.0",
"flake8-noqa ~= 1.3.1; python_version < '3.12'",
"flake8-pytest-style ~= 1.7.2",
"flake8-quotes ~= 3.3.2",
"flake8-simplify ~= 0.20.0",
"flake8-quotes ~= 3.3.2; python_version < '3.12'",
"flake8-simplify ~= 0.21.0",
"flake8-unused-arguments ~= 0.0.13",
"isort ~= 5.12.0",
"mypy ~= 1.3.0",
"mypy ~= 1.5.1",
"pep8-naming ~= 0.13.3",
"pre-commit ~= 3.3.2",
"pre-commit ~= 3.4.0",
"pydoc-markdown ~= 4.8.2",
"pytest ~= 7.3.1",
"pytest ~= 7.4.2",
"pytest-asyncio ~= 0.21.0",
"pytest-only ~= 2.0.0",
"pytest-timeout ~= 2.1.0",
"pytest-timeout ~= 2.2.0",
"pytest-xdist ~= 3.3.1",
"respx ~= 0.20.1",
"twine ~= 4.0.2",
"types-aiofiles ~= 23.1.0.3",
"types-aiofiles ~= 23.2.0.0",
"types-colorama ~= 0.4.15.11",
"types-psutil ~= 5.9.5.12",
]
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/actor/test_actor_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ async def test_actor_new_client_config(self, monkeypatch: pytest.MonkeyPatch) ->
await my_actor.init()

client = my_actor.new_client()
assert type(client) == ApifyClientAsync
assert isinstance(client, ApifyClientAsync)
assert client.token == token

passed_token = 'my-passed-token'
client_with_token = my_actor.new_client(token=passed_token)
assert type(client_with_token) == ApifyClientAsync
assert isinstance(client_with_token, ApifyClientAsync)
assert client_with_token.token == passed_token

await my_actor.exit()
Expand Down

0 comments on commit 9a37553

Please sign in to comment.