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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
#!/usr/bin/env python
from __future__ import print_function
import os
import re
from setuptools import setup, Extension, find_packages
if os.path.isfile("MANIFEST"):
os.unlink("MANIFEST")
BUILD_CEXTENSIONS = True
with open("storm/__init__.py") as init_py:
VERSION = re.search('version = "([^"]+)"', init_py.read()).group(1)
with open("README") as readme:
long_description = readme.read()
tests_require = [
"fixtures >= 1.3.0",
"mysqlclient",
"mysqlclient < 2.0.0; python_version < '3'",
"pgbouncer >= 0.0.7",
"postgresfixture",
"psycopg2 >= 2.3.0",
"setuptools < 45; python_version < '3'",
"testresources >= 0.2.4",
"testtools >= 0.9.8",
"timeline >= 0.0.2",
"transaction >= 1.0.0",
"Twisted >= 10.0.0",
"Twisted < 21.2.0; python_version < '3'",
"zope.component >= 3.8.0",
"zope.configuration",
"zope.interface >= 4.0.0",
"zope.security >= 3.7.2",
]
setup(
name="storm",
version=VERSION,
description=(
"Storm is an object-relational mapper (ORM) for Python "
"developed at Canonical."),
long_description=long_description,
long_description_content_type="text/x-rst",
author="Gustavo Niemeyer",
author_email="gustavo@niemeyer.net",
maintainer="Storm Developers",
maintainer_email="storm@lists.canonical.com",
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",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"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,
install_requires=["six"],
test_suite="storm.tests.find_tests",
tests_require=tests_require,
extras_require={
"doc": [
"fixtures", # so that storm.testing can be imported
"sphinx",
"sphinx-epytext",
],
"test": tests_require,
},
)
|