forked from agronholm/anyio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
1,697 additions
and
1,919 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,64 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools >= 42", | ||
"wheel >= 0.29.0", | ||
"setuptools_scm[toml] >= 3.4" | ||
"setuptools >= 61", | ||
"setuptools_scm >= 6.4" | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "anyio" | ||
description = "High level compatibility layer for multiple asynchronous event loop implementations" | ||
readme = "README.rst" | ||
authors = [{name = "Alex Grönholm", email = "[email protected]"}] | ||
license = {text = "MIT"} | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Framework :: AnyIO", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"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", | ||
] | ||
requires-python = ">= 3.7" | ||
dependencies = [ | ||
"exceptiongroup; python_version < '3.11'", | ||
"idna >= 2.8", | ||
"sniffio >= 1.1", | ||
"typing_extensions; python_version < '3.8'", | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.urls] | ||
Documentation = "https://anyio.readthedocs.io/en/latest/" | ||
"Source code" = "https://github.com/agronholm/anyio" | ||
"Issue tracker" = "https://github.com/agronholm/anyio/issues" | ||
|
||
[project.optional-dependencies] | ||
trio = ["trio >= 0.22"] | ||
test = [ | ||
"trio >= 0.22", | ||
"mock >= 4; python_version < '3.8'", | ||
"coverage[toml] >= 4.5", | ||
"hypothesis >= 4.0", | ||
"pytest >= 7.0", | ||
"pytest-mock >= 3.6.1", | ||
"trustme", | ||
"uvloop >= 0.15; platform_python_implementation == 'CPython' and platform_system != 'Windows' and python_version < '3.11'", | ||
] | ||
doc = [ | ||
"packaging", | ||
"sphinx_rtd_theme", | ||
"sphinx-autodoc-typehints >= 1.2.0", | ||
] | ||
|
||
[project.entry-points] | ||
pytest11 = {anyio = "anyio.pytest_plugin"} | ||
|
||
[tool.setuptools_scm] | ||
version_scheme = "post-release" | ||
local_scheme = "dirty-tag" | ||
|
@@ -19,7 +72,7 @@ max-line-length = 99 | |
ignore = ["E203", "W503"] | ||
|
||
[tool.mypy] | ||
python_version = "3.9" | ||
python_version = "3.10" | ||
strict = true | ||
ignore_missing_imports = true | ||
disallow_any_generics = false | ||
|
@@ -29,7 +82,7 @@ disallow_subclassing_any = false | |
show_error_codes = true | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "-rsx --tb=short --strict-config --strict-markers -p anyio -p no:asyncio" | ||
addopts = "-rsx --tb=short --strict-config --strict-markers -p anyio -p no:asyncio -p no:trio" | ||
testpaths = ["tests"] | ||
# Ignore resource warnings due to a CPython/Windows bug (https://bugs.python.org/issue44428) | ||
filterwarnings = [ | ||
|
@@ -50,3 +103,37 @@ relative_files = true | |
|
||
[tool.coverage.report] | ||
show_missing = true | ||
|
||
[tool.tox] | ||
legacy_tox_ini = """ | ||
[tox] | ||
minversion = 3.7.0 | ||
envlist = pre-commit, py37, py38, py39, py310, py311, pypy3 | ||
skip_missing_interpreters = true | ||
isolated_build = true | ||
[testenv] | ||
depends = pre-commit | ||
commands = coverage run -m pytest {posargs} | ||
extras = test | ||
[testenv:py311] | ||
commands = pytest {posargs} | ||
[testenv:pre-commit] | ||
depends = | ||
basepython = python3 | ||
deps = pre-commit | ||
commands = pre-commit run --all-files --show-diff-on-failure | ||
skip_install = true | ||
[testenv:pyright] | ||
deps = pyright | ||
commands = pyright --verifytypes anyio | ||
usedevelop = true | ||
[testenv:docs] | ||
depends = | ||
extras = doc | ||
commands = sphinx-build docs build/sphinx | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1 @@ | ||
[metadata] | ||
name = anyio | ||
description = High level compatibility layer for multiple asynchronous event loop implementations | ||
long_description = file: README.rst | ||
author = Alex Grönholm | ||
author_email = [email protected] | ||
project_urls = | ||
Documentation = https://anyio.readthedocs.io/en/latest/ | ||
Source code = https://github.com/agronholm/anyio | ||
Issue tracker = https://github.com/agronholm/anyio/issues | ||
license = MIT | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: MIT License | ||
Framework :: AnyIO | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
|
||
[options] | ||
package_dir= | ||
= src | ||
packages = find: | ||
python_requires = >= 3.6.2 | ||
zip_safe = False | ||
install_requires = | ||
contextvars; python_version < '3.7' | ||
dataclasses; python_version < '3.7' | ||
idna >= 2.8 | ||
sniffio >= 1.1 | ||
typing_extensions; python_version < '3.8' | ||
|
||
[options.packages.find] | ||
where = src | ||
|
||
[options.package_data] | ||
anyio = py.typed | ||
|
||
[options.extras_require] | ||
test = | ||
mock >= 4; python_version < '3.8' | ||
contextlib2; python_version < '3.7' | ||
coverage[toml] >= 4.5 | ||
hypothesis >= 4.0 | ||
pytest >= 7.0 | ||
pytest-mock >= 3.6.1 | ||
trustme | ||
uvloop < 0.15; python_version < '3.7' and (platform_python_implementation == 'CPython' and platform_system != 'Windows') | ||
uvloop >= 0.15; python_version >= '3.7' and (platform_python_implementation == 'CPython' and platform_system != 'Windows') | ||
trio = trio >= 0.16 | ||
doc = | ||
packaging | ||
sphinx_rtd_theme | ||
sphinx-autodoc-typehints >= 1.2.0 | ||
|
||
[options.entry_points] | ||
pytest11 = | ||
anyio = anyio.pytest_plugin | ||
# Should be deleted when setuptools gets PEP 660 support |
Oops, something went wrong.