-
Notifications
You must be signed in to change notification settings - Fork 75
/
setup.py
60 lines (50 loc) · 2.11 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 find_packages, setup
_dir_ = os.path.dirname(__file__)
if sys.version_info < (3, 4):
install_requires = ['Django>=1.8,<2.0', 'tldextract>=1.2']
else:
install_requires = ['Django>=1.8,<2.3', 'tldextract>=1.2']
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=install_requires,
setup_requires=['pytest-runner'],
tests_require=['coverage', 'mock', 'pytest', 'pytest-cov',
'pytest-django', 'pytest-pythonpath', 'tox'],
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',
'Topic :: Internet',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries',
'Topic :: Utilities'],
)