-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
53 lines (46 loc) · 1.53 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import os
from setuptools import setup
HERE = os.path.abspath(os.path.dirname(__file__))
def make_readme(root_path):
FILES = ('README.rst', 'LICENSE', 'CHANGELOG', 'CONTRIBUTORS')
for filename in FILES:
filepath = os.path.realpath(os.path.join(HERE, filename))
if os.path.isfile(filepath):
with open(filepath, mode='r') as f:
yield f.read()
LONG_DESCRIPTION = "\r\n\r\n----\r\n\r\n".join(make_readme(HERE))
setup(
name='django-allowedsites',
version='0.1.0',
author='Keryn Knight',
author_email='[email protected]',
description="dynamic ALLOWED_HOSTS",
long_description=LONG_DESCRIPTION,
packages=[],
py_modules=['allowedsites'],
include_package_data=True,
install_requires=[
'Django>=1.4',
],
test_suite='runtests.runtests',
zip_safe=False,
license="BSD License",
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Framework :: Django',
'Natural Language :: English',
'Environment :: Web Environment',
'Topic :: Internet :: WWW/HTTP',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
"Programming Language :: Python :: 3",
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)