This repository has been archived by the owner on Jul 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
65 lines (54 loc) · 1.84 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
VAC Templater
=============
VAC (Varnish Administration Console) Templater is a simple server and web UI
designed to allow non-technical users to graphically modify and deploy Varnish
Cache configurations. VAC Templater depends on the VAC API to discover VCL files
and to execute deployments. A Varnish Plus subscription is required to get
access to the VAC.
Check out https://github.com/allenta/vac-templater for a detailed description,
extra documentation, and other useful information.
:copyright: (c) 2015 by Allenta Consulting, see AUTHORS.txt for more details.
:license: BSD, see LICENSE.txt for more details.
'''
from __future__ import absolute_import
import os
import sys
from setuptools import setup, find_packages
if sys.version_info < (2, 7):
raise Exception('VAC Templater requires Python 2.7 or higher.')
root = os.path.dirname(os.path.realpath(__file__))
with open(os.path.join(root, 'requirements.txt')) as file:
install_requires = file.read().splitlines()
with open(os.path.join(root, 'version.txt')) as file:
version = file.read().strip()
extra = {}
if sys.version_info[0] == 3:
extra['use_2to3'] = True
setup(
name='vac-templater',
version=version,
author='Allenta Consulting S.L.',
author_email='info@allenta.com',
packages=find_packages(),
include_package_data=True,
url='https://www.allenta.com',
description='VAC Templater.',
long_description=__doc__,
license='BSD',
entry_points={
'console_scripts': [
'vac-templater = vac_templater.runner:main',
],
},
classifiers=[
'Framework :: Django',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
],
install_requires=install_requires,
**extra
)