Skip to content

Commit

Permalink
Support 3.13 (#184)
Browse files Browse the repository at this point in the history
* Support 3.13

* Drop 3.7

* Modernize pytest-asyncio

* Bump pytest
  • Loading branch information
Tinche authored Jun 24, 2024
1 parent 501e9bc commit 20e8e8a
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 206 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
python-version:
["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.9"]
["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy-3.9"]

steps:
- uses: "actions/checkout@v3"
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
with:
python-version: "3.x"
python-version: "3.12"

- name: "Install PDM and twine"
run: "python -m pip install pdm twine check-wheel-contents"
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ async def test_stuff():
- Switch to more modern async idioms: Remove types.coroutine and make AiofilesContextManager an awaitable instead a coroutine.
- Add `aiofiles.os.path.abspath` and `aiofiles.os.getcwd`.
[#174](https://github.com/Tinche/aiofiles/issues/181)
- _aiofiles_ is now tested on Python 3.13 too.
[#184](https://github.com/Tinche/aiofiles/pull/184)
- Dropped Python 3.7 support. If you require it, use version 23.2.1.

#### 23.2.1 (2023-08-09)

Expand Down
117 changes: 18 additions & 99 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 18 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ authors = [
{name = "Tin Tvrtkovic", email = "tinchester@gmail.com"},
]
dependencies = []
requires-python = ">=3.7"
requires-python = ">=3.8"
readme = "README.md"
license = {text = "Apache-2.0"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.7",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Framework :: AsyncIO",
Expand All @@ -29,19 +29,6 @@ Changelog = "https://github.com/Tinche/aiofiles#history"
"Bug Tracker" = "https://github.com/Tinche/aiofiles/issues"
repository = "https://github.com/Tinche/aiofiles"

[tool.pdm.dev-dependencies]
test = [
"pytest>=7.2.0",
"pytest-asyncio>=0.19.0",
"coverage>=6.4.4",
"tox>=3.25.1",
]
lint = [
"black>=22.8.0",
"flake8>=5.0.4",
"isort==5.11.5",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
Expand All @@ -63,3 +50,19 @@ skip-magic-trailing-comma = true
[tool.isort]
profile = "black"
known_first_party = ["aiofiles"]

[tool.pdm.dev-dependencies]
test = [
"pytest>=8.2.2",
"pytest-asyncio>=0.23.7",
"coverage>=6.4.4",
"tox>=3.25.1",
]
lint = [
"black>=22.8.0",
"flake8>=5.0.4",
"isort==5.11.5",
]

[tool.pytest.ini_options]
asyncio_mode = "auto"
Loading

0 comments on commit 20e8e8a

Please sign in to comment.