-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
35 lines (32 loc) · 906 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
from setuptools import setup
pkg = __import__('easyw2v')
author = pkg.__author__
email = pkg.__author_email__
version = pkg.__version__
license = pkg.__license__
description = pkg.__description__
classifiers = pkg.__classifiers__
def load_requirements (fname):
"""
Read a requirement.txt
"""
with open(fname, 'r') as f:
return [ i.rstrip() for i in list(f) if i and not i.startswith('#') ]
setup(
name='easyw2v',
version=version,
license=license,
description=description,
long_description=open('README.rst').read(),
author=author,
author_email=email,
url='https://github.com/msaito8623/easyw2v',
classifiers=classifiers,
platform='Linux',
packages=['easyw2v'],
install_requires=load_requirements('requirements.txt'),
extras_require={
'tests': ['pytest'],
'docs': ['sphinx', 'sphinx_rtd_theme']
},
)