-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·52 lines (45 loc) · 1.5 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
#!/usr/bin/env python
#
import os
import sys
from setuptools import setup
with open('VERSION.txt', 'r') as v:
version = v.readline().strip()
with open('README.md', 'r') as r:
long_description = r.read()
for dirpath, dirnames, filenames in os.walk('images/flags'):
data_files = [('share/openvpn-monitor/images/flags',
[os.path.join(dirpath, f) for f in filenames])]
with open('requirements.txt') as rt:
install_requires = []
for line in rt.read().splitlines():
if line.endswith("python_version <= '2.7'"):
if sys.version_info[0] == 2:
install_requires.append(line.split(';')[0])
else:
install_requires.append(line)
if sys.prefix == '/usr':
conf_path = '/etc'
else:
conf_path = sys.prefix + '/etc'
data_files.append((conf_path, ['openvpn-monitor.conf']))
setup(
name='openvpn-monitor',
version=version,
author='Marcus Furlong',
author_email='[email protected]',
description=('A simple web based openvpn monitor'),
license='GPLv3',
keywords='web openvpn monitor',
url='http://openvpn-monitor.openbytes.ie',
py_modules=['openvpn-monitor', ],
install_requires=install_requires,
long_description=long_description,
data_files=data_files,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
],
)