From 8c76cf23a7c0245490d02619c27f1246428ff0b7 Mon Sep 17 00:00:00 2001 From: ydy0615 Date: Tue, 9 Dec 2025 13:11:48 +0800 Subject: [PATCH] feat: add runtime dependencies for IMU functionality - Add numpy<2.0 for numerical computations with IMU data - Add pyserial>=3.5 for serial communication with IMU hardware - Add gradio for web-based user interface These dependencies enable core features like data processing, hardware connectivity, and UI interaction for the IMU package. Updated pyproject.toml, with resulting changes in requires.txt and PKG-INFO. --- dm_imu_pkg/dm_imu_pkg.egg-info/PKG-INFO | 3 +++ dm_imu_pkg/dm_imu_pkg.egg-info/requires.txt | 3 +++ pyproject.toml | 3 +++ pyproject.toml.bak | 22 +++++++++++++++++++ ...{requirements.txt => requirements.txt.bak} | 0 u2can/requirements.txt.old | 2 ++ 6 files changed, 33 insertions(+) create mode 100644 pyproject.toml.bak rename u2can/{requirements.txt => requirements.txt.bak} (100%) create mode 100644 u2can/requirements.txt.old diff --git a/dm_imu_pkg/dm_imu_pkg.egg-info/PKG-INFO b/dm_imu_pkg/dm_imu_pkg.egg-info/PKG-INFO index 1610a70..2f8081b 100644 --- a/dm_imu_pkg/dm_imu_pkg.egg-info/PKG-INFO +++ b/dm_imu_pkg/dm_imu_pkg.egg-info/PKG-INFO @@ -11,6 +11,9 @@ Requires-Python: >=3.8 Description-Content-Type: text/markdown License-File: LICENSE Requires-Dist: pybind11>=2.10 +Requires-Dist: numpy<2.0 +Requires-Dist: pyserial>=3.5 +Requires-Dist: gradio Dynamic: author Dynamic: license-file Dynamic: requires-python diff --git a/dm_imu_pkg/dm_imu_pkg.egg-info/requires.txt b/dm_imu_pkg/dm_imu_pkg.egg-info/requires.txt index 9f5f7f9..f41fa33 100644 --- a/dm_imu_pkg/dm_imu_pkg.egg-info/requires.txt +++ b/dm_imu_pkg/dm_imu_pkg.egg-info/requires.txt @@ -1 +1,4 @@ pybind11>=2.10 +numpy<2.0 +pyserial>=3.5 +gradio diff --git a/pyproject.toml b/pyproject.toml index 3daafcb..560ca5f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,6 +12,9 @@ license = "MIT" authors = [{name = "allenyuan", email = "allenyuan410@gmail.com"}] dependencies = [ "pybind11>=2.10", + "numpy<2.0", + "pyserial>=3.5", + "gradio", ] classifiers = [ "Programming Language :: Python :: 3", diff --git a/pyproject.toml.bak b/pyproject.toml.bak new file mode 100644 index 0000000..3daafcb --- /dev/null +++ b/pyproject.toml.bak @@ -0,0 +1,22 @@ +[build-system] +requires = ["setuptools>=61", "wheel", "pybind11>=2.10", "cmake"] +build-backend = "setuptools.build_meta" + +[project] +name = "dm_imu_pkg" +version = "0.1.0" +description = "Balance project with pybind11 IMU driver" +readme = "README.md" +requires-python = ">=3.8" +license = "MIT" +authors = [{name = "allenyuan", email = "allenyuan410@gmail.com"}] +dependencies = [ + "pybind11>=2.10", +] +classifiers = [ + "Programming Language :: Python :: 3", + "Operating System :: OS Independent", +] + +[tool.setuptools.packages.find] +where = ["dm_imu_pkg"] diff --git a/u2can/requirements.txt b/u2can/requirements.txt.bak similarity index 100% rename from u2can/requirements.txt rename to u2can/requirements.txt.bak diff --git a/u2can/requirements.txt.old b/u2can/requirements.txt.old new file mode 100644 index 0000000..e584404 --- /dev/null +++ b/u2can/requirements.txt.old @@ -0,0 +1,2 @@ +numpy<2.0 +pyserial>=3.5 \ No newline at end of file