-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (44 loc) · 1.7 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
""" setup.py """
import os
from setuptools import setup, find_packages
def get_description():
""" Makes README file into a string"""
with open("README.md") as file:
long_description = file.read()
return long_description
def parse_requirements(filename):
""" load requirements from a pip requirements file """
lineiter = (line.strip() for line in open(filename))
return [line for line in lineiter if line and not line.startswith("#")]
def get_version():
""" Gets version from rmnn.__init__.py
Runs `rmnn.__init__` and loads defined variables into scope
"""
with open(os.path.join('rmnn', '__init__.py')) as version_file:
# pylint: disable=exec-used, undefined-variable
exec(version_file.read(), globals())
return __version__
setup(
name='rmnn',
author='Zhemin Li',
author_email='[email protected]',
version=get_version(),
url="https://gitee.com/lizhemin15/rmnn-pip",
download_url='https://gitee.com/lizhemin15/rmnn-pip',
description='A small package for represent tensors or matrix with neural network based on Pytorch',
long_description=get_description(),
packages=find_packages(exclude=['docs']),
install_requires=parse_requirements("requirements/common.txt"),
keywords='matrix representation',
classifiers=['Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Topic :: Software Development',
'Topic :: Scientific/Engineering'],
extras_require={
'dev': ['pylint', 'sphinx'],
'test': [],
},
license='GPL-3.0'
)