From ba3bce2b62b6074e3a76156c4c8d0b41d72211ec Mon Sep 17 00:00:00 2001 From: Yakun Xu Date: Wed, 18 Sep 2024 23:11:02 +0800 Subject: [PATCH] [otci] update package info (#10706) --- tools/cp-caps/requirements.txt | 2 +- tools/otci/pyproject.toml | 22 ++++++++++++++++++++++ tools/otci/setup.py | 6 +++--- 3 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 tools/otci/pyproject.toml diff --git a/tools/cp-caps/requirements.txt b/tools/cp-caps/requirements.txt index 740c30c161b..b3cc3a9a35b 100644 --- a/tools/cp-caps/requirements.txt +++ b/tools/cp-caps/requirements.txt @@ -1,7 +1,7 @@ adb_shell>=0.4.4 adb_shell[usb]>=0.4.4 build>=1.2.1 -otci-openthread +openthread-otci paramiko>=3.4.0 pyserial>=3.5 pyspinel>=1.0.3 diff --git a/tools/otci/pyproject.toml b/tools/otci/pyproject.toml new file mode 100644 index 00000000000..93a316da19f --- /dev/null +++ b/tools/otci/pyproject.toml @@ -0,0 +1,22 @@ +[build-system] +requires = ["setuptools>=61.0"] +build-backend = "setuptools.build_meta" + +[project] +name = "openthread-otci" +version = "0.0.1" +authors = [ + { name="The OpenThread Authors", email="openthread-users@googlegroups.com" }, +] +description = "OpenThread Control Interface" +readme = "README.md" +requires-python = ">=3.6" +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: BSD License", + "Operating System :: OS Independent", +] + +[project.urls] +Homepage = "https://github.com/openthread/openthread" +Issues = "https://github.com/openthread/openthread/issues" diff --git a/tools/otci/setup.py b/tools/otci/setup.py index 6284ace6502..37749fcd8cf 100644 --- a/tools/otci/setup.py +++ b/tools/otci/setup.py @@ -28,11 +28,11 @@ # import setuptools -with open("README.md", "r") as fh: +with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( - name="otci-openthread", + name="openthread-otci", version="0.0.1", author="The OpenThread Authors", description="OpenThread Controller Interface", @@ -42,7 +42,7 @@ packages=setuptools.find_packages(), classifiers=[ "Programming Language :: Python :: 3", - "License :: OSI Approved :: BSD 3-Clause License", + "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", ], python_requires='>=3.6',