-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·51 lines (39 loc) · 1.2 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
#!/usr/bin/python3
# Copyright (c) 2020 AT&T Intellectual Property.
# All rights reserved.
# SPDX-License-Identifier: GPL-2.0-only
import os
import re
import setuptools
with open("README", "r") as fh:
long_description = fh.read()
requirements = [
"gi", "pydbus"
]
cwd = os.path.dirname(os.path.abspath(__file__))
def get_version():
latest_ver: str
with open(f"{cwd}/debian/changelog", "r") as fh:
latest_ver = fh.readlines()[0]
latest_ver = re.search(r"\((.*)\)", latest_ver).group(1)
return f"{latest_ver}"
setuptools.setup(
name="vyatta-vrrp-vci",
version=get_version(),
maintainer="Vyatta Package Maintainers",
author_email="DL-vyatta-help@att.com",
description=(
"Vyatta Component Infrastructure module to configure "
"VRRP on DANOS and it's derivatives"
),
long_description=long_description,
url="https://github.com/danos/vyatta-vrrp",
packages=setuptools.find_packages(exclude=("tests",)),
install_requires=requirements,
classifiers=[
"Programming Language :: Python :: 3",
("License :: OSI Approved :: "
"GNU General Public License v2 (GPLv2)"),
],
python_requires='>=3.6',
)