From 400ba67ce91aff5e0f7c45f0c96419591490230d Mon Sep 17 00:00:00 2001 From: Rein Appeldoorn Date: Wed, 6 Nov 2024 16:24:47 +0100 Subject: [PATCH] chore: drop pip3 dependencies Use rosdep to resolve dependencies so that we can bloom this package as a debian release. --- Dockerfile | 17 ++--------------- README.md | 2 -- requirements.txt | 7 ------- 3 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 requirements.txt diff --git a/Dockerfile b/Dockerfile index 7fc6ddc..4466279 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,21 +9,8 @@ COPY . /root/ros2_ws/src # install dependencies RUN source /opt/ros/${ROS_DISTRO}/setup.bash -RUN apt-get update \ - && apt-get -y --quiet --no-install-recommends install \ - gcc \ - git \ - python3 \ - python3-pip -RUN rosdep install --from-paths src --ignore-src -r -y -RUN if [ "$ROS_DISTRO" = "jazzy" ] || [ "$ROS_DISTRO" = "rolling" ]; then \ - pip3 install -r src/requirements.txt --break-system-packages; \ - else \ - pip3 install -r src/requirements.txt; \ - fi -RUN if [ "$ROS_DISTRO" = "rolling" ]; then \ - apt install -y ros-rolling-action-tutorials-interfaces; \ - fi +RUN apt-get update +RUN rosdep update && rosdep install --from-paths src --ignore-src -r -y # colcon the ws FROM deps AS builder diff --git a/README.md b/README.md index 7e19909..ddc4027 100644 --- a/README.md +++ b/README.md @@ -52,8 +52,6 @@ $ git clone https://github.com/uleroboticsgroup/yasmin.git # dependencies $ cd ~/ros2_ws $ rosdep install --from-paths src --ignore-src -r -y -$ cd src/yasmin -$ pip3 install -r requirements.txt # colcon $ cd ~/ros2_ws diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 497396f..0000000 --- a/requirements.txt +++ /dev/null @@ -1,7 +0,0 @@ -flask -waitress -expiringdict - -pytest -pytest-cov -unittest2 \ No newline at end of file