-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
106 lines (92 loc) · 2.1 KB
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[metadata]
name = celox
version = attr: celox.__version__
author = 418Coffee
author_email = [email protected]
description = Fast, minimalistic HTTP client using trio.
long_description = file: README.md
long_description_content_type = text/markdown
license = MIT
url = https://github.com/418Coffee/celox
project_urls =
Bug Tracker = https://github.com/418Coffee/celox/issues
classifiers =
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Framework :: Trio
License :: OSI Approved :: MIT License
Operating System :: OS Independent
[options]
packages = find:
install_requires =
trio>=0.20.0
attrs>=21.4.0
multidict>=4.7.6
yarl>=1.6.3
typing_extensions>=4.1.1
python_requires = >=3.8
# github actions
[gh-actions]
python =
3.8: py38, flake8, mypy
3.9: py39
# pytest, flake8, mpyp and tox, testenv
[options.package_data]
celox = py.typed
[tool:pytest]
trio_mode = true
addopts =
--cov=celox
#--cov-report=html
testpaths =
tests
# log_cli = true
# We don't need to test cookiejar.py it's from aiohttp.
[coverage:run]
omit = celox/cookiejar.py
[flake8]
ignore = E203 # https://github.com/PyCQA/pycodestyle/issues/373
per-file-ignores =
cookiejar.py: W503
max-line-length = 160
exclude =
.git,
__pycache__,
dist,
tests,
.tox
[mypy]
mypy_path = "."
check_untyped_defs = true
disallow_any_generics = true
ignore_missing_imports = true
no_implicit_optional = true
show_error_codes = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
no_implicit_reexport = true
[tox:tox]
minversion = 3.24.5
envlist = py38, py39, flake8, mypy
isolated_build = true
passenv = GITHUB_ACTIONS
[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
-r {toxinidir}/requirements_dev.txt
commands =
pytest --basetemp={envtmpdir}
[testenv:flake8]
basepython = python3.8
deps = flake8
commands = flake8
[testenv:mypy]
basepython = python3.8
deps =
-r {toxinidir}/requirements_dev.txt
commands = mypy celox