-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
56 lines (47 loc) · 1.27 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
from setuptools import setup, find_packages
from datetime import date
def readme():
with open("README.md") as f:
return f.read()
def version():
with open("libifstate/__init__.py") as fd:
for line in fd:
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
raise RuntimeError("Unable to find version string.")
def install_requires():
requires = [
"jsonschema",
"pyroute2",
"pyyaml",
"setproctitle"
]
return requires
setup(
name="ifstate",
version=version(),
description="Manage host interface settings in a declarative manner",
author="Thomas Liske",
author_email="[email protected]",
long_description=readme(),
long_description_content_type="text/markdown",
url="https://ifstate.net/",
license="GPL3+",
packages=find_packages(),
package_data={
"libifstate": ["../schema/2/ifstate.conf.schema.json"],
},
install_requires=install_requires(),
extras_require={
'shell': [
'pygments'
],
'wireguard': [
'wgnlpy'
]
},
entry_points={
"console_scripts": ["ifstatecli = ifstate.ifstate:main"]
},
)