forked from NLeSC/xtas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (36 loc) · 1.24 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
#!/usr/bin/env python
import os.path
from setuptools import setup
# Get __version__ from xtas source
dist_dir = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(dist_dir, 'xtas/_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="xtas",
description="Distributed text analysis suite",
long_description=readme(),
author="Lars Buitinck",
author_email="[email protected]",
packages=["xtas", "xtas.make_config", "xtas.tasks", "xtas.tests",
"xtas.webserver"],
package_data={"xtas.tasks": ["*.txt", "*.xml", "NERServer.class"]},
url="https://github.com/NLeSC/xtas",
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(),
)