-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathsetup.py
68 lines (58 loc) · 1.56 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
from setuptools import setup
def readme():
with open("README.md") as f:
return f.read()
def version():
exec(open("aleph_alpha_client/version.py").read())
return locals()["__version__"]
tests_require = [
"pytest",
"pytest-cov",
"pytest-dotenv",
"pytest-httpserver",
"pytest-aiohttp",
]
types_require = ["mypy", "types-requests", "types-Pillow", "types-tqdm"]
dev_require = (
tests_require
+ types_require
+ [
"nbconvert",
"ipykernel",
"black",
]
)
docs_require = ["sphinx", "sphinx_rtd_theme"]
setup(
name="aleph-alpha-client",
url="https://github.com/Aleph-Alpha/aleph-alpha-client",
author="Aleph Alpha",
author_email="[email protected]",
packages=["aleph_alpha_client"],
package_data={"aleph_alpha_client": ["py.typed"]},
# urllib is used directly for retries
install_requires=[
"requests >= 2.28",
"urllib3 >= 1.26",
"aiohttp >= 3.8.3",
"aiodns >= 3.0.0",
"aiohttp-retry >= 2.8.3",
"tokenizers >= 0.13.2",
"typing_extensions >= 4.5.0",
"Pillow >= 9.2.0",
"tqdm >= v4.62.0",
"python-liquid >= 1.9.4",
],
tests_require=tests_require,
extras_require={
"test": tests_require,
"types": types_require,
"dev": dev_require,
"docs": docs_require,
},
license="MIT",
description="python client to interact with Aleph Alpha api endpoints",
long_description=readme(),
long_description_content_type="text/markdown",
version=version(),
)