forked from eduvpn/python-eduvpn-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
103 lines (90 loc) · 2.84 KB
/
setup.py
File metadata and controls
103 lines (90 loc) · 2.84 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import os
from glob import glob
from setuptools import setup, find_packages
__version__ = "2.2.0"
install_requires = [
'requests',
'requests_oauthlib',
'cryptography',
'pynacl',
'wheel',
]
tests_require = [
'pytest',
'pycodestyle',
]
mypy_require = [
'mypy',
'PyGObject-stubs',
'types-requests',
'types-setuptools',
]
gui_require = [
'dbus-python',
'pygobject',
]
extras_require = {
'gui': gui_require,
'test': tests_require,
'mypy': mypy_require,
}
def extra_files_line(dir_: str):
return dir_, [os.path.join(dir_, i) for i in os.listdir(dir_) if os.path.isfile(os.path.join(dir_, i))]
data_files = [
extra_files_line('share/applications'),
extra_files_line('share/eduvpn'),
extra_files_line('share/eduvpn/builder'),
extra_files_line('share/eduvpn/images'),
extra_files_line('share/eduvpn/images/flags'),
extra_files_line('share/letsconnect/images'),
extra_files_line('share/icons/hicolor/48x48/apps'),
extra_files_line('share/icons/hicolor/128x128/apps'),
extra_files_line('share/icons/hicolor/256x256/apps'),
extra_files_line('share/icons/hicolor/512x512/apps'),
]
for dir in glob('share/locale/*/LC_MESSAGES'):
data_files.append([dir, glob(os.path.join(dir,'*.mo'))])
setup(
name="eduvpn_client",
version=__version__,
packages=find_packages(exclude=['tests']),
data_files=data_files,
install_requires=install_requires,
extras_require=extras_require,
author="Gijs Molenaar",
author_email="gijs@pythonic.nl",
description="eduVPN client",
license="GPL3",
setup_requires=['pytest-runner'],
tests_require=tests_require,
test_suite="tests",
keywords="vpn openvpn networking security",
url="https://github.com/eduvpn/python-eduvpn-client",
python_requires='>=3.6',
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3 :: Only",
"Topic :: System :: Operating System Kernels :: Linux",
"Topic :: System :: Networking",
"Environment :: X11 Applications",
],
entry_points={
'console_scripts': [
'eduvpn-cli = eduvpn.cli:eduvpn',
'letsconnect-cli = eduvpn.cli:letsconnect',
],
'gui_scripts': [
'eduvpn-gui = eduvpn.ui.__main__:eduvpn',
'letsconnect-gui = eduvpn.ui.__main__:letsconnect',
]
}
)