This repository has been archived by the owner on Jan 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
73 lines (57 loc) · 1.96 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
import sys
from setuptools import find_packages, setup
py_version = sys.version_info[:2]
py_version_dotted = '{0.major}.{0.minor}'.format(sys.version_info)
supported_py_versions = ('2.7', '3.3', '3.4', '3.5', '3.6')
if py_version_dotted not in supported_py_versions:
sys.stderr.write('WARNING: django-local-settings does not officially support Python ')
sys.stderr.write(py_version_dotted)
sys.stderr.write('\n')
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
with open('README.md') as readme_fp:
long_description = readme_fp.read()
install_requires = [
'six',
]
if py_version < (3, 0):
install_requires.append('configparser')
# NOTE: Keep this Django version up to date with the latest Django
# release that works for the versions of Python we support.
# This is used to get up and running quickly; tox is used to test
# all supported Python/Django version combos.
if py_version == (3, 3):
django_spec = 'django>=1.8,<1.9',
else:
django_spec = 'django>=1.10,<1.11',
setup(
name='django-local-settings',
version=VERSION,
author='Wyatt Baldwin',
author_email='[email protected]',
url='https://github.com/PSU-OIT-ARC/django-local-settings',
description='A system for dealing with local settings in Django projects',
long_description=long_description,
packages=find_packages(),
install_requires=install_requires,
extras_require={
'dev': [
'coverage>=4',
django_spec,
'flake8',
'tox>=2.6.0',
],
},
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Django',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
] + [
'Programming Language :: Python :: {v}'.format(v=v)for v in supported_py_versions
],
entry_points="""
[console_scripts]
make-local-settings = local_settings:make_local_settings
""",
)