-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
37 lines (32 loc) · 1002 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
34
35
36
37
import os
from setuptools import setup, find_packages, Extension
from setuptools.command.build_ext import build_ext as _build_ext
import zipfile
REPO_DIR = os.path.dirname(os.path.realpath(__file__))
def _findRequirements():
"""Read the requirements.txt file and parse into requirements for setup's
install_requirements option.
"""
requirements_path = os.path.join(REPO_DIR, 'requirements.txt')
try:
return [line.strip()
for line in open(requirements_path).readlines()
if not line.startswith('#')]
except IOError:
return []
requirements = _findRequirements()
setup(
zip_safe=False,
name='rens',
version='0.1.0',
author_email='',
description="Inference tool box",
url='',
license='',
packages=find_packages(exclude=['tests']),
install_requires=requirements,
classifiers=[
'Natural Language :: English',
'Programming Language :: Python :: 3.6'],
keywords='gins',
)