-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
executable file
·75 lines (65 loc) · 2.4 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
#!/usr/bin/env python
import os
import re
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, Extension, find_packages
if os.path.isfile("MANIFEST"):
os.unlink("MANIFEST")
BUILD_CEXTENSIONS = True
VERSION = re.search('version = "([^"]+)"',
open("storm/__init__.py").read()).group(1)
setup(
name="storm",
version=VERSION,
description=(
"Storm is an object-relational mapper (ORM) for Python "
"developed at Canonical."),
author="Gustavo Niemeyer",
author_email="[email protected]",
maintainer="Storm Developers",
maintainer_email="[email protected]",
license="LGPL",
url="https://storm.canonical.com",
download_url="https://launchpad.net/storm/+download",
packages=find_packages(),
package_data={"": ["*.zcml"]},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
("License :: OSI Approved :: GNU Library or "
"Lesser General Public License (LGPL)"),
"Programming Language :: Python",
"Topic :: Database",
"Topic :: Database :: Front-Ends",
"Topic :: Software Development :: Libraries :: Python Modules",
],
ext_modules=(BUILD_CEXTENSIONS and
[Extension("storm.cextensions", ["storm/cextensions.c"])]),
# The following options are specific to setuptools but ignored (with a
# warning) by distutils.
include_package_data=True,
zip_safe=False,
test_suite = "tests.find_tests",
tests_require=[
# Versions based on Lucid, where packaged.
"django >= 1.1.1",
"fixtures >= 0.3.5",
# pgbouncer (the Python module) is not yet packaged in Ubuntu.
"pgbouncer >= 0.0.7",
"psycopg2 >= 2.0.13",
"testresources >= 0.2.4",
"testtools >= 0.9.8",
# timeline is not yet packaged in Ubuntu.
"timeline >= 0.0.2",
"transaction >= 1.0.0",
"twisted >= 10.0.0",
"zope.component >= 3.8.0",
# zope.component 3.11.0 requires a version of zope.interface that no
# version of Ubuntu yet packages. The following rule exists for the
# sake of convenience rather than necessity, for the situation where
# zope.interface is installed via a package but zope.component is not.
"zope.component < 3.11.0",
"zope.security >= 3.7.2",
],
)