From b1ab7b728b6f85d572fb4a62cfc53078a48a5e3e Mon Sep 17 00:00:00 2001 From: fmessmer Date: Mon, 30 Nov 2020 11:59:01 +0100 Subject: [PATCH 1/5] convert to package format 2 --- package.xml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/package.xml b/package.xml index a907f61..e3779b7 100644 --- a/package.xml +++ b/package.xml @@ -1,4 +1,4 @@ - + genjava 0.3.4 @@ -16,18 +16,11 @@ Daniel Stonier catkin - - genmsg - python-catkin-pkg - python-rospkg - rosjava_bootstrap - rosjava_build_tools - - genmsg - python-catkin-pkg - python-rospkg - rosjava_bootstrap - rosjava_build_tools + genmsg + python-catkin-pkg + python-rospkg + rosjava_bootstrap + rosjava_build_tools java From 0397398e3cb59b1c1ec035a97d2727b87cd423e0 Mon Sep 17 00:00:00 2001 From: fmessmer Date: Mon, 30 Nov 2020 12:00:58 +0100 Subject: [PATCH 2/5] Bump CMake version to avoid CMP0048 warning --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6410d12..6558258 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ # CMake ############################################################################## -cmake_minimum_required(VERSION 2.8.3) +cmake_minimum_required(VERSION 3.0.2) project(genjava) ############################################################################## From d1adfd1b9100f259d726ab0bed1d10d27edab0cd Mon Sep 17 00:00:00 2001 From: fmessmer Date: Mon, 30 Nov 2020 12:01:11 +0100 Subject: [PATCH 3/5] use setuptools instead of distutils --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2b031ef..cf9ec7a 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -from distutils.core import setup +from setuptools import setup from catkin_pkg.python_setup import generate_distutils_setup d = generate_distutils_setup( From 742fd7beb314920ebc9b1ffec23d0f7dfff544fb Mon Sep 17 00:00:00 2001 From: fmessmer Date: Mon, 30 Nov 2020 12:01:30 +0100 Subject: [PATCH 4/5] ROS_PYTHON_VERSION conditional dependency --- package.xml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/package.xml b/package.xml index e3779b7..86233ab 100644 --- a/package.xml +++ b/package.xml @@ -1,4 +1,8 @@ - + + + genjava 0.3.4 @@ -16,9 +20,14 @@ Daniel Stonier catkin + python-setuptools + python3-setuptools + genmsg - python-catkin-pkg - python-rospkg + python-catkin-pkg + python-rospkg + python3-catkin-pkg + python3-rospkg rosjava_bootstrap rosjava_build_tools From 47a9f7c5bc818397149ee2626b73d7ff86e33bfb Mon Sep 17 00:00:00 2001 From: fmessmer Date: Tue, 5 Jan 2021 14:01:23 +0000 Subject: [PATCH 5/5] python 2to3 --- src/genjava/gradle_project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/genjava/gradle_project.py b/src/genjava/gradle_project.py index 66a85a8..5ecfbca 100644 --- a/src/genjava/gradle_project.py +++ b/src/genjava/gradle_project.py @@ -79,7 +79,7 @@ def get_templates(): def populate_project(project_name, project_version, pkg_directory, gradle_project_dir, msg_dependencies): author = author_name() - for filename, template in get_templates().iteritems(): + for filename, template in get_templates().items(): contents = instantiate_genjava_template(template, project_name, project_version, pkg_directory, author, msg_dependencies) try: p = os.path.abspath(os.path.join(gradle_project_dir, filename))