forked from ecometrica/django-multisite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
74 lines (63 loc) · 2.08 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
import os
import sys
from setuptools import find_packages, setup
_dir_ = os.path.dirname(__file__)
tests_require = [
"coverage",
"mock",
"pytest",
"pytest-cov",
"pytest-django",
"pytest-pythonpath",
"tox",
]
if sys.version_info < (3, 4):
tests_require.append("Django>=1.8,<2.0")
else:
tests_require.append("Django>=2.0,<3.1")
def long_description():
"""Returns the value of README.rst"""
with open(os.path.join(_dir_, "README.rst")) as f:
return f.read()
here = os.path.abspath(_dir_)
version = {}
with open(os.path.join(here, "multisite", "__version__.py")) as f:
exec(f.read(), version)
files = ["multisite/test_templates/*"]
setup(
name="django-multisite",
version=version["__version__"],
description="Serve multiple sites from a single Django application",
long_description=long_description(),
author="Leonid S Shestera",
author_email="[email protected]",
maintainer="Ecometrica",
maintainer_email="[email protected]",
url="http://github.com/ecometrica/django-multisite",
packages=find_packages(),
include_package_data=True,
package_data={"multisite": files},
install_requires=["pluggy<1.0,>=0.12", "tldextract>=1.2,<3.0"],
setup_requires=["pytest-runner"],
tests_require=tests_require,
test_suite="multisite.tests",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Internet",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
],
)