aiohttp
/
setup.cfg
174 строки · 5.8 Кб
1[metadata]
2name = aiohttp
3version = attr: aiohttp.__version__
4url = https://github.com/aio-libs/aiohttp
5project_urls =
6Chat: Matrix = https://matrix.to/#/#aio-libs:matrix.org
7Chat: Matrix Space = https://matrix.to/#/#aio-libs-space:matrix.org
8CI: GitHub Actions = https://github.com/aio-libs/aiohttp/actions?query=workflow%%3ACI
9Coverage: codecov = https://codecov.io/github/aio-libs/aiohttp
10Docs: Changelog = https://docs.aiohttp.org/en/stable/changes.html
11Docs: RTD = https://docs.aiohttp.org
12GitHub: issues = https://github.com/aio-libs/aiohttp/issues
13GitHub: repo = https://github.com/aio-libs/aiohttp
14description = Async http client/server framework (asyncio)
15long_description = file: README.rst
16long_description_content_type = text/x-rst
17maintainer = aiohttp team <team@aiohttp.org>
18maintainer_email = team@aiohttp.org
19license = Apache 2
20license_files = LICENSE.txt
21classifiers =
22Development Status :: 5 - Production/Stable
23
24Framework :: AsyncIO
25
26Intended Audience :: Developers
27
28License :: OSI Approved :: Apache Software License
29
30Operating System :: POSIX
31Operating System :: MacOS :: MacOS X
32Operating System :: Microsoft :: Windows
33
34Programming Language :: Python
35Programming Language :: Python :: 3
36Programming Language :: Python :: 3.9
37Programming Language :: Python :: 3.10
38Programming Language :: Python :: 3.11
39Programming Language :: Python :: 3.12
40
41Topic :: Internet :: WWW/HTTP
42
43[options]
44python_requires = >=3.9
45packages = aiohttp
46# https://setuptools.readthedocs.io/en/latest/setuptools.html#setting-the-zip-safe-flag
47zip_safe = False
48include_package_data = True
49
50install_requires =
51aiohappyeyeballs >= 2.3.0
52aiosignal >= 1.1.2
53async-timeout >= 4.0, < 5.0 ; python_version < "3.11"
54frozenlist >= 1.1.1
55multidict >=4.5, < 7.0
56yarl >= 1.6, < 2.0
57
58[options.exclude_package_data]
59* =
60*.c
61*.h
62
63[options.extras_require]
64speedups =
65# required c-ares (aiodns' backend) will not build on windows
66aiodns >= 3.2.0; sys_platform=="linux" or sys_platform=="darwin"
67Brotli; platform_python_implementation == 'CPython'
68brotlicffi; platform_python_implementation != 'CPython'
69
70[options.packages.find]
71exclude =
72examples
73
74[options.package_data]
75# Ref:
76# https://setuptools.readthedocs.io/en/latest/setuptools.html#options
77# (see notes for the asterisk/`*` meaning)
78* =
79*.so
80
81[pep8]
82max-line-length=79
83
84[easy_install]
85zip_ok = false
86
87[flake8]
88extend-select =
89B950,
90# NIC001 -- "Implicitly concatenated str literals on one line"
91NIC001,
92# NIC101 -- "Implicitly concatenated bytes literals on one line"
93NIC101,
94# TODO: don't disable D*, fix up issues instead
95ignore = N801,N802,N803,NIC002,NIC102,E203,E226,E305,W504,E252,E301,E302,E501,E704,W503,W504,D1,D4
96max-line-length = 88
97per-file-ignores =
98# I900: Shouldn't appear in requirements for examples.
99examples/*:I900
100
101# flake8-requirements
102known-modules = proxy.py:[proxy]
103requirements-file = requirements/test.in
104requirements-max-depth = 4
105
106[isort]
107line_length=88
108include_trailing_comma=True
109multi_line_output=3
110force_grid_wrap=0
111combine_as_imports=True
112
113known_third_party=jinja2,pytest,multidict,yarl,gunicorn,freezegun
114known_first_party=aiohttp,aiohttp_jinja2,aiopg
115
116[report]
117exclude_lines =
118@abc.abstractmethod
119@abstractmethod
120
121[tool:pytest]
122addopts =
123# show 10 slowest invocations:
124--durations=10
125
126# a bit of verbosity doesn't hurt:
127-v
128
129# report all the things == -rxXs:
130-ra
131
132# show values of the local vars in errors:
133--showlocals
134
135# `pytest-cov`:
136--cov=aiohttp
137--cov=tests/
138
139# run tests that are not marked with dev_mode
140-m "not dev_mode"
141filterwarnings =
142error
143ignore:module 'ssl' has no attribute 'OP_NO_COMPRESSION'. The Python interpreter is compiled against OpenSSL < 1.0.0. Ref. https.//docs.python.org/3/library/ssl.html#ssl.OP_NO_COMPRESSION:UserWarning
144ignore:Unclosed client session <aiohttp.client.ClientSession object at 0x:ResourceWarning
145ignore:The loop argument is deprecated:DeprecationWarning:asyncio
146ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning::
147# The following deprecation warning is triggered by importing
148# `gunicorn.util`. Hopefully, it'll get fixed in the future. See
149# https://github.com/benoitc/gunicorn/issues/2840 for detail.
150ignore:module 'sre_constants' is deprecated:DeprecationWarning:pkg_resources._vendor.pyparsing
151# Deprecation warning emitted by setuptools v67.5.0+ triggered by importing
152# `gunicorn.util`.
153ignore:pkg_resources is deprecated as an API:DeprecationWarning
154# The deprecation warning below is happening under Python 3.11 and
155# is fixed by https://github.com/certifi/python-certifi/pull/199. It
156# can be dropped with the next release of `certify`, specifically
157# `certify > 2022.06.15`.
158ignore:path is deprecated. Use files.. instead. Refer to https.//importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.:DeprecationWarning:certifi.core
159# Dateutil deprecation warning already fixed upstream.
160# Can be dropped with the next release, `dateutil > 2.8.2`
161# https://github.com/dateutil/dateutil/pull/1285
162ignore:datetime.*utcfromtimestamp\(\) is deprecated and scheduled for removal:DeprecationWarning:dateutil.tz.tz
163# Tracked upstream and waiting for PR review
164# https://github.com/spulec/freezegun/issues/508
165# https://github.com/spulec/freezegun/pull/511
166ignore:datetime.*utcnow\(\) is deprecated and scheduled for removal:DeprecationWarning:freezegun.api
167junit_suite_name = aiohttp_test_suite
168norecursedirs = dist docs build .tox .eggs
169minversion = 3.8.2
170testpaths = tests/
171xfail_strict = true
172markers =
173dev_mode: mark test to run in dev mode.
174internal: tests which may cause issues for packagers, but should be run in aiohttp's CI.
175