-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
50 lines (37 loc) · 1.42 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
from setuptools import setup, find_packages
from aikit import __meta__ as META
DISTNAME = 'aikit'
DESCRIPTION = 'An automated machine learning framework'
with open('README.md') as f:
LONG_DESCRIPTION = f.read()
MAINTAINER = META.__author__
MAINTAINER_EMAIL = ''
URL = META.__website__
DOWNLOAD_URL = 'https://pypi.org/project/aikit/#files'
LICENSE = META.__license__
VERSION = META.__version__
def parse_requirements(req_file):
with open(req_file) as fp:
_requires = fp.read()
return _requires
# Get dependencies from requirement files
SETUP_REQUIRES = ['setuptools', 'setuptools-git', 'wheel']
INSTALL_REQUIRES = parse_requirements('requirements.txt')
def setup_package():
metadata = dict(name=DISTNAME,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
description=DESCRIPTION,
license=LICENSE,
url=URL,
download_url=DOWNLOAD_URL,
version=VERSION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
classifiers=META.__classifiers__,
install_requires=INSTALL_REQUIRES,
setup_requires=SETUP_REQUIRES,
packages=find_packages(include=["aikit*"]))
setup(**metadata)
if __name__ == "__main__":
setup_package()