-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsetup.py
executable file
·44 lines (35 loc) · 1.16 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
#!/usr/bin/env python
from setuptools import setup
import os.path
# Get __version__ from source
dist_dir = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(dist_dir, 'semanticizest/_version.py')) as versionpy:
exec(versionpy.read())
def readme():
try:
with open(os.path.join(dist_dir, 'README.rst')) as f:
return f.read()
except IOError:
return ""
def requirements():
with open(os.path.join(dist_dir, "requirements.txt")) as f:
return f.readlines()
setup(
name="semanticizest",
description="Semanticizer NG",
long_description=readme(),
packages=["semanticizest", "semanticizest.parse_wikidump"],
url="https://github.com/semanticize/semanticizest",
version=__version__,
classifiers=[
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Text Processing",
],
install_requires=requirements(),
include_package_data=True,
test_suite='nose.collector',
tests_require=['nose'],
)