From ac679a0c611ba2f3606dcac0aa00c52b59cbce47 Mon Sep 17 00:00:00 2001 From: Agnel Wang <59766821+Agnel-Wang@users.noreply.github.com> Date: Mon, 28 Oct 2024 15:05:12 +0800 Subject: [PATCH] v1.0.1 support for Pypi --- .gitignore | 3 +++ README.md | 6 ++++++ pyproject.toml | 3 +++ setup.py | 11 ++++++++--- 4 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 pyproject.toml diff --git a/.gitignore b/.gitignore index 9871dce..001de9a 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,6 @@ __pycache__ # JetBrains IDE .idea/ + +# python +dist/ \ No newline at end of file diff --git a/README.md b/README.md index 2dda4da..31bb8bb 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,12 @@ Python interface for unitree sdk2 - numpy - opencv-python ## Install unitree_sdk2_python + +```bash +pip install unitree_sd2py +``` + +### Installing from source Execute the following commands in the terminal: ```bash cd ~ diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..07de284 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" \ No newline at end of file diff --git a/setup.py b/setup.py index 3c774e0..54d8cac 100644 --- a/setup.py +++ b/setup.py @@ -1,16 +1,21 @@ from setuptools import setup, find_packages setup(name='unitree_sdk2py', - version='1.0.0', - author='Unitree', + version='1.0.1', + author='UnitreeRobotics', author_email='unitree@unitree.com', + long_description=open('README.md').read(), + long_description_content_type="text/markdown", license="BSD-3-Clause", packages=find_packages(include=['unitree_sdk2py','unitree_sdk2py.*']), description='Unitree robot sdk version 2 for python', + project_urls={ + "Source Code": "https://github.com/unitreerobotics/unitree_sdk2_python", + }, python_requires='>=3.8', install_requires=[ "cyclonedds==0.10.2", "numpy", "opencv-python", ], - ) + ) \ No newline at end of file