-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e93ace
commit c5037ca
Showing
2 changed files
with
34 additions
and
63 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,51 @@ | ||
#!/usr/bin/env python | ||
# SPDX-FileCopyrightText: 2021-present Open Networking Foundation <[email protected]> | ||
# | ||
# SPDX-License-Identifier: LicenseRef-ONF-Member-1.0 | ||
|
||
# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <[email protected]> | ||
# SPDX-License-Identifier: Apache-2.0 | ||
from setuptools import setup, find_packages | ||
|
||
from setuptools import find_packages, setup | ||
|
||
|
||
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 API for Python", | ||
author="Open Networking Foundation and Partners", | ||
description="ONOS Python API", | ||
long_description=readme(), | ||
long_description_content_type="text/markdown", | ||
author="Open Networking Foundation (ONF) and Partners", | ||
author_email="[email protected]", | ||
packages=[f"onos_api.{pkg}" for pkg in PACKAGES], | ||
package_dir={f"onos_api.{pkg}": f"python/{pkg}".replace(".", "/") for pkg in PACKAGES}, | ||
install_requires=["betterproto>=2.0.0b3,<3.0"], | ||
packages=find_packages(exclude=("tests",)), | ||
namespace_packages=[], | ||
include_package_data=True, | ||
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", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
], | ||
scripts=[], | ||
install_requires=[ | ||
"protobuf", | ||
"grpclib", | ||
"betterproto", | ||
"gnmi-proto", | ||
], | ||
python_requires=">=3.6", | ||
setup_requires=["setuptools>=41.1.0"], | ||
) | ||
|
||
|