-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
60 lines (53 loc) · 1.55 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
import os
import sys
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.rst')) as f:
CHANGES = f.read()
with open(os.path.join(here, 'bottle_inject.py')) as f:
for line in f:
if line.startswith("__version__"):
VERSION = line.strip().split('"')[-2]
break
else:
raise RuntimeError("Could not find version string in module file.")
extra = {
'install_requires': [
'distribute',
'bottle>=0.11',
],
'tests_require': [
'coverage',
],
'test_suite': 'nose.collector',
'setup_requires': ['wheel', 'nose>=1.0']
}
if sys.version_info >= (3,):
extra['use_2to3'] = True
setup(
name='Bottle-Inject',
version=VERSION,
url='http://github.com/bottlepy/bottle-inject/',
description='Dependency injection for Bottle.',
long_description=README.strip() + '\n'*4 + CHANGES.strip(),
author='Marcel Hellkamp',
author_email='[email protected]',
license='MIT',
platforms='any',
zip_safe=True,
py_modules=[
'bottle_inject'
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
],
**extra
)