Skip to content

Commit

Permalink
Merge ONF setup.py (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-milkey authored May 3, 2021
1 parent 2e93ace commit c5037ca
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 63 deletions.
46 changes: 0 additions & 46 deletions python/setup.py

This file was deleted.

51 changes: 34 additions & 17 deletions setup.py
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"],
)


0 comments on commit c5037ca

Please sign in to comment.