-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·43 lines (36 loc) · 1.32 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
#!/usr/bin/env python
import os
import versioneer
from setuptools import setup
def parse_requirements(filename):
lineiter = (line.strip() for line in open(filename))
return [line for line in lineiter if line and not line.startswith("#")]
def get_requirements(filename):
if not os.path.exists(filename):
return []
return parse_requirements(filename)
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
setup(name='django-xff',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='Django X-Forwarded-For Properly',
long_description=README,
author='Ferrix Hovi',
author_email='[email protected]',
install_requires=get_requirements('requirements.txt'),
packages=['xff'],
url='https://github.com/ferrix/xff/',
license='MIT License',
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'License :: OSI Approved :: MIT License',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)