-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
33 lines (27 loc) · 905 Bytes
/
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
import os
import sys
if sys.version_info[0:2] < (3, 6):
raise Exception("aionewton requires Python 3.6+")
from setuptools import setup
rootpath = os.path.abspath(os.path.dirname(__file__))
def extract_version(_module='aionewton'):
version = None
fname = os.path.join(rootpath, _module, '__init__.py')
with open(fname) as f:
for line in f:
if line.startswith('__version__'):
_, version = line.split('=')
version = version.strip()[1:-1] # Remove quotation characters.
break
return version
setup(
name='aionewton',
version=extract_version(),
packages=['aionewton'],
url='https://github.com/ilevn/aionewton',
license='MIT',
author='Nils Theres',
author_email='nilsntth@gmail.com',
description='An asyncio-based wrapper for the newton-api',
install_requires=['aiohttp>=2.0.5']
)