-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
42 lines (33 loc) · 1 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
import os
import re
from setuptools import setup
def get_requirements():
with open("requirements.txt") as f:
return f.read().splitlines()
def get_long_description():
with open("README.md", encoding="utf8") as f:
return f.read()
def get_variable(variable):
with open(os.path.join("aioquery", "__init__.py")) as f:
return re.search(
"{} = ['\"]([^'\"]+)['\"]".format(variable), f.read()
).group(1)
setup(
name="aioquery",
version=get_variable("__version__"),
url=get_variable("__url__"),
description=get_variable("__description__"),
long_description=get_long_description(),
long_description_content_type="text/markdown",
author=get_variable("__author__"),
author_email=get_variable("__author_email__"),
install_requires=get_requirements(),
license=get_variable("__license__"),
packages=[
"aioquery",
"aioquery.tests",
],
python_requires=">=3.6",
include_package_data=True,
zip_safe=False
)