forked from diefans/buvar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
93 lines (78 loc) · 2.31 KB
/
setup.py
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
import itertools
from setuptools import dist, find_packages, setup
from setuptools.command.install import install
from build import build
class BinaryDistribution(dist.Distribution):
def is_pure(self):
return False
def has_ext_modules(self):
return True
class InstallPlatlib(install):
def finalize_options(self):
install.finalize_options(self)
if self.distribution.has_ext_modules():
self.install_lib = self.install_platlib
with open("README.rst") as f:
description = f.read()
install_requires = [
"attrs",
"cattrs",
"multidict>=4.5,<5.0",
"structlog>=20.1.0",
"toml>=0.10",
"tomlkit>=0.5.3",
"typing_inspect>=0.4.0",
"cached_property",
"uritools",
]
extras_require = {
"tests": [
"pytest>=4.6",
"pytest-cov>=^2.7",
"pytest-asyncio>=0.11.0",
"pytest-benchmark>=3.2.2",
"mock>=3.0",
"pytest-mock>=1.10",
"pytest-watch>=4.2",
"pytest-randomly>=3.1",
"pytest-doctestplus>=0.5",
"pytest-anything",
],
"dev": [
"commitizen",
"pre-commit",
"pdbpp",
"ipython",
],
}
extras_require["all"] = list(itertools.chain(extras_require.values()))
entry_points = {"pytest11": ["buvar = buvar.testing"]}
setup_kwargs = {
"name": "buvar",
"version": "0.43.0",
"description": "Asyncio plugins, components, dependency injection and configs",
"long_description": description,
"long_description_content_type": "text/x-rst",
"author": "Oliver Berger",
"author_email": "[email protected]",
"url": "https://gitlab.com/diefans/buvar",
"package_dir": {"": "src"},
"packages": find_packages("src"),
"include_package_data": True,
# "package_data": {"": ["*"]},
"install_requires": install_requires,
"extras_require": extras_require,
"entry_points": entry_points,
"python_requires": ">=3.7,<4.0",
"classifiers": [
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Framework :: AsyncIO",
"License :: OSI Approved :: Apache Software License",
"License :: OSI Approved :: MIT License",
],
"cmdclass": {"install": InstallPlatlib},
"distclass": BinaryDistribution,
}
build(setup_kwargs)
setup(**setup_kwargs)