-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
80 lines (69 loc) · 2.34 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
"""Setup Cheshire3 for ISTC.
Although Cheshire3 for ISTC is not a pure Python package,
needing to be unpacked and used in situ, the convention of using setup.py
as the installation method is followed.
"""
from __future__ import with_statement
import os
import inspect
import istc
from os.path import abspath, dirname, join, exists, expanduser
# Import Setuptools
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
from istc.setuptools.commands import (develop,
install,
upgrade,
uninstall,
unavailable_command
)
_name = 'istc'
# Inspect to find current path
setuppath = inspect.getfile(inspect.currentframe())
setupdir = os.path.dirname(setuppath)
# Requirements
with open(os.path.join(setupdir, 'requirements.txt'), 'r') as fh:
_install_requires = fh.readlines()
setup(
name = _name,
version = istc.__version__,
description = 'Cheshire3 for ISTC',
packages=[],
requires=['cheshire3'],
install_requires=_install_requires,
extras_require={
'docs': ["sphinx"],
},
entry_points={
'console_scripts': [
'istc-serve = istc.deploy.serve:main'
],
},
author = 'John Harrison',
author_email = u'[email protected]',
maintainer = 'John Harrison',
maintainer_email = u'[email protected]',
license = "BSD",
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Topic :: Internet :: WWW/HTTP :: Indexing/Search",
"Topic :: Internet :: Z39.50",
"Topic :: Text Processing :: Indexing",
"Topic :: Text Processing :: Linguistic",
"Topic :: Text Processing :: Markup"
],
cmdclass = {
'bdist_egg': unavailable_command,
'bdist_rpm': unavailable_command,
'bdist_wininst': unavailable_command,
'develop': develop,
'install': install,
'upgrade': upgrade,
'uninstall': uninstall
},
)