-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
32 lines (26 loc) · 945 Bytes
/
setup.py
File metadata and controls
32 lines (26 loc) · 945 Bytes
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
from setuptools import setup, find_packages
with open("README.md", "r", encoding='utf-8') as fh:
long_description = fh.read()
def get_requirements(fname):
"""Takes requirements from requirements.txt and returns a list."""
with open(fname) as fp:
reqs = list()
for lib in fp.read().split("\n"):
# Ignore pypi flags and comments
if not lib.startswith("-") or lib.startswith("#"):
reqs.append(lib.strip())
return reqs
install_requires = get_requirements("requirements.txt")
setup(
name='tgstat-api-client',
version='0.1.0',
description='Python client for TgStat API',
long_description=long_description,
url='https://github.com/bodaue/tgstat-api-client',
author='Bodaue',
author_email='tim-online@mail.ru',
packages=find_packages(),
install_requires=install_requires,
include_package_data=True,
python_requires='>=3.10',
)