forked from onosproject/onos-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
59 lines (49 loc) · 1.65 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
#!/usr/bin/env python3
"""
SPDX-FileCopyrightText: 2021-present Open Networking Foundation <info@opennetworking.org>
SPDX-License-Identifier: Apache-2.0
"""
from setuptools import setup, find_packages
PACKAGES = find_packages("python")
def readme():
with open("./README.md") as f:
return f.read()
def version():
with open("VERSION") as f:
return f.read()
setup(
name="onos-api",
version=version(),
description="ONOS Python API",
long_description=readme(),
long_description_content_type="text/markdown",
author="Open Networking Foundation (ONF) and Partners",
author_email="support@opennetworking.org",
packages=[pkg.replace("onos", "onos_api") for pkg in PACKAGES],
package_dir={
pkg.replace("onos", "onos_api"): f"python/{pkg}".replace(".", "/")
for pkg in PACKAGES
},
package_data={"onos_api": ["py.typed"]},
keywords=["onos-api", "python", "protobuf", "gnmi"],
license="Apache License v2.0",
url="https://github.com/onosproject/onos-api/",
download_url="https://github.com/onosproject/onos-api/",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Utilities",
"License :: OSI Approved :: Apache Software License",
"Typing :: Typed",
],
install_requires=[
"betterproto>=2.0.0b3,<3",
"gnmi-proto>=0.1.0a4,<1",
],
python_requires=">=3.6",
setup_requires=["setuptools>=41.1.0"],
)