forked from Katamave/sonnen_api_v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (32 loc) · 1.08 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
from setuptools import setup, find_packages
import os
def read_file(file):
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, file), mode='r', encoding='UTF-8') as file:
return file.read()
def get_version(file):
for line in read_file(file).splitlines():
if line.startswith('__version__'):
delimiter = '"' if '"' in line else "'"
return line.split(delimiter)[1]
else:
raise RuntimeError('Version not found!')
setup(
name='sonnen_api_v2',
version=get_version('sonnen_api_v2/__init__.py'),
packages=find_packages(exclude='tests'),
url='https://github.com/Katamave/sonnen_api_v2.git',
license=read_file('LICENSE'),
author='Vaclav Silhan',
author_email='[email protected]',
description=read_file('README.md'),
install_requires=[
'requests~=2.32',
'aiohttp>=3.3.0',
'isal==1.7.1',
'aiohttp-fast-zlib>=0.1.1,<4.0.0',
'urllib3>=1.26.20,<2.0.0',
'asyncio>=3.4.3',
'yarl>=1.16.0'
]
)