This repository was archived by the owner on Jul 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
56 lines (48 loc) · 1.63 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
#!/usr/bin/env python
'''
Varnish Bans Manager
====================
Varnish Bans Manager (VBM) is a simple server and web UI designed to ease
management of bans in complex Varnish (https://www.varnish-cache.org)
deployments. Check out https://github.com/allenta/varnish-bans-manager
for a detailed description of VBM, extra documentation, some script samples,
and other useful information.
:copyright: (c) 2012 by Allenta Consulting, see AUTHORS.txt for more details.
:license: GPL, see LICENSE.txt for more details.
'''
from __future__ import absolute_import
import sys
import os
from setuptools import setup, find_packages
if sys.version_info < (2, 7):
raise Exception('VBM requires Python 2.7 or higher.')
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'requirements.txt')) as file:
install_requires = file.read().splitlines()
extra = {}
if sys.version_info[0] == 3:
extra['use_2to3'] = True
setup(
name='varnish-bans-manager',
version='0.6.1',
author='Allenta Consulting',
author_email='[email protected]',
packages=find_packages(),
include_package_data=True,
url='https://github.com/allenta/varnish-bans-manager',
description='Varnish Bans Manager.',
long_description=__doc__,
license='GPL',
entry_points={
'console_scripts': [
'varnish-bans-manager = varnish_bans_manager.runner:main',
],
},
classifiers=[
'Framework :: Django',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
],
install_requires=install_requires,
**extra
)