-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
70 lines (58 loc) · 1.85 KB
/
Copy pathsetup.py
File metadata and controls
70 lines (58 loc) · 1.85 KB
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
"""clic setup file."""
from __future__ import with_statement
import inspect
import os
import re
# Import Setuptools
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
from clic.setuptools.commands import develop, install
name_ = 'clic'
version_ = '0.1'
description_ = "CLiC Project"
# Inspect to find current path
setuppath = inspect.getfile(inspect.currentframe())
setupdir = os.path.dirname(setuppath)
# Requirements
dependency_links_ = []
install_requires_ = []
with open(os.path.join(setupdir, 'requirements.txt'), 'r') as fh:
for line in fh:
if line.startswith('-e '):
dependency_links_.append(re.sub('^-e\s+', '', line.strip()))
install_requires_.append(line[line.rfind('#egg=') + 5:].strip())
else:
install_requires_.append(line.strip())
# Description
with open(os.path.join(setupdir, 'README.rst'), 'r') as fh:
long_description_ = fh.read()
setup(
name = name_,
version = version_,
description = description_,
long_description=long_description_,
packages=['clic'],
requires=['webob'],
install_requires=install_requires_,
dependeny_links= dependency_links_,
author = 'Catherine Smith',
maintainer = 'John Harrison',
maintainer_email = u'john.harrison@liv.ac.uk',
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 :: Utilities",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware",
],
cmdclass = {
'develop': develop,
'install': install
},
)