diff options
author | Alexis Ballier <aballier@gentoo.org> | 2020-07-08 18:53:40 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2020-07-08 19:30:10 +0200 |
commit | bdf1793cd68dcbbef1d9f2068d9175f0c443d0dc (patch) | |
tree | 5e2d1b2d26020432bcd6acb5f4b7b619f3de1c4a /dev-ros/rosmsg | |
parent | dev-ros/rosmsg: bump eapi (diff) | |
download | gentoo-bdf1793cd68dcbbef1d9f2068d9175f0c443d0dc.tar.gz gentoo-bdf1793cd68dcbbef1d9f2068d9175f0c443d0dc.tar.bz2 gentoo-bdf1793cd68dcbbef1d9f2068d9175f0c443d0dc.zip |
dev-ros/rosmsg: Remove old
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ros/rosmsg')
-rw-r--r-- | dev-ros/rosmsg/Manifest | 2 | ||||
-rw-r--r-- | dev-ros/rosmsg/files/norm.patch | 31 | ||||
-rw-r--r-- | dev-ros/rosmsg/files/py3.patch | 212 | ||||
-rw-r--r-- | dev-ros/rosmsg/files/tests.patch | 15 | ||||
-rw-r--r-- | dev-ros/rosmsg/rosmsg-1.14.3-r1.ebuild | 27 | ||||
-rw-r--r-- | dev-ros/rosmsg/rosmsg-1.15.4.ebuild | 26 |
6 files changed, 0 insertions, 313 deletions
diff --git a/dev-ros/rosmsg/Manifest b/dev-ros/rosmsg/Manifest index e7119a998e05..5d86517495e4 100644 --- a/dev-ros/rosmsg/Manifest +++ b/dev-ros/rosmsg/Manifest @@ -1,3 +1 @@ -DIST ros_comm-1.14.3.tar.gz 1045287 BLAKE2B c079983aa730e70028d1bf2c365d01d99ce09ced0c0f6443b18f9d0fb83715f6af4b313d6db4eb99dcc10052c81fa3e6560e7b3591b2fbe14b9ec20fac24babe SHA512 52df24f10f476697ee6fa340da354b45431f35018a25e2674dc9306f175929a4b0368753503ea143f87aeb4945a2e67c37f83d833f54b53f9a76a81022c280a3 -DIST ros_comm-1.15.4.tar.gz 1071246 BLAKE2B 57867c192bfd48f3a0534762808c668031081a6155510879e68f9618226b9c5eff0d5fc9ec0e7ec8d0cc1f0d74794a4e55151036275ae6fc5bb613cc42137ddc SHA512 f92233cbf5ee97832023545730d3e756dfa08507072c074ac3e0763db1c2c2ab9fcbb0c90995a0c5d43f0ddc2ee528c185173a664b19abe4f8159aa3f3cb20dc DIST ros_comm-1.15.7.tar.gz 1080092 BLAKE2B d5c0dd1f54eac7aa11be21bbc680f85f988cc9328382c0c675b7d5986e888be603ed82affa5f51a270974d07044debe3ecf86f5647fd59cb29e8e791a227feb9 SHA512 67dc100e8ed03a25ea228cc7d456ec2203324098f9e11c9a249299df73bfc34efc75b1221c0fb6fceb38fece627f1dc5f2c23be93c9a1c85b1075784a45ff20e diff --git a/dev-ros/rosmsg/files/norm.patch b/dev-ros/rosmsg/files/norm.patch deleted file mode 100644 index 530da65fcd24..000000000000 --- a/dev-ros/rosmsg/files/norm.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 0648d3019dc2395f61a8a7a3d1bbf790eca98739 Mon Sep 17 00:00:00 2001 -From: James Xu <kejia.xu@microsoft.com> -Date: Wed, 6 Feb 2019 09:47:54 -0800 -Subject: [PATCH] normalize paths before comparison in rosmsg (#1586) - -* normalize paths before comparison in rosmsg - -* remove use of normcase and remove path_in_workspaces temp variable - -* remove duplicated control - -* revert unrelated whitespace changes - -* keep order of operands ---- - tools/rosmsg/src/rosmsg/__init__.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/tools/rosmsg/src/rosmsg/__init__.py b/tools/rosmsg/src/rosmsg/__init__.py -index 83b629e7e..4ed7aa542 100644 ---- a/tools/rosmsg/src/rosmsg/__init__.py -+++ b/tools/rosmsg/src/rosmsg/__init__.py -@@ -551,7 +551,7 @@ def _get_package_paths(pkgname, rospack): - path = rospack.get_path(pkgname) - paths.append(path) - results = find_in_workspaces(search_dirs=['share'], project=pkgname, first_match_only=True, workspace_to_source_spaces=_catkin_workspace_to_source_spaces, source_path_to_packages=_catkin_source_path_to_packages) -- if results and results[0] != path: -+ if results and results[0].replace(os.path.sep, '/') != path.replace(os.path.sep, '/'): - paths.append(results[0]) - return paths - diff --git a/dev-ros/rosmsg/files/py3.patch b/dev-ros/rosmsg/files/py3.patch deleted file mode 100644 index 4cfcb77d2a26..000000000000 --- a/dev-ros/rosmsg/files/py3.patch +++ /dev/null @@ -1,212 +0,0 @@ -From 1933acfa8107a164ec825d3223d14589fefd1b5b Mon Sep 17 00:00:00 2001 -From: Dirk Thomas <dirk-thomas@users.noreply.github.com> -Date: Tue, 6 Aug 2019 16:06:51 -0700 -Subject: [PATCH] more Python 3 compatibility (#1783) - ---- - test/test_rospy/test/unit/test_genmsg_py.py | 6 +-- - tools/rosgraph/src/rosgraph/roslogging.py | 2 +- - .../test/test_roslogging_user_logger.py | 8 +++- - tools/roslaunch/test/unit/test_xmlloader.py | 2 +- - tools/rosmsg/src/rosmsg/__init__.py | 2 +- - tools/rosmsg/test/test_rosmsg_command_line.py | 46 +++++++++---------- - .../test/test_rosmsgproto_command_line.py | 20 ++++---- - .../test_rostopic_command_line_offline.py | 44 +++++++++--------- - 8 files changed, 67 insertions(+), 63 deletions(-) - -diff --git a/tools/rosmsg/src/rosmsg/__init__.py b/tools/rosmsg/src/rosmsg/__init__.py -index 4ed7aa542..75f5afcbd 100644 ---- a/tools/rosmsg/src/rosmsg/__init__.py -+++ b/tools/rosmsg/src/rosmsg/__init__.py -@@ -240,7 +240,7 @@ def create_names_filter(names): - """ - returns a function to use as filter that returns all objects slots except those with names in list. - """ -- return lambda obj : filter(lambda slotname : not slotname in names, obj.__slots__) -+ return lambda obj : list(filter(lambda slotname : not slotname in names, obj.__slots__)) - - - def init_rosmsg_proto(): -diff --git a/tools/rosmsg/test/test_rosmsg_command_line.py b/tools/rosmsg/test/test_rosmsg_command_line.py -index 02e31022e..d5515a3ac 100644 ---- a/tools/rosmsg/test/test_rosmsg_command_line.py -+++ b/tools/rosmsg/test/test_rosmsg_command_line.py -@@ -54,24 +54,24 @@ def test_cmd_help(self): - - for cmd in ['rosmsg', 'rossrv']: - glob_cmd=[os.path.join(_SCRIPT_FOLDER, cmd)] -- output = Popen(glob_cmd, stdout=PIPE, env=self.new_environ).communicate()[0] -+ output = Popen(glob_cmd, stdout=PIPE, env=self.new_environ).communicate()[0].decode() - self.assert_('Commands' in output) -- output = Popen(glob_cmd+['-h'], stdout=PIPE, env=self.new_environ).communicate()[0] -+ output = Popen(glob_cmd+['-h'], stdout=PIPE, env=self.new_environ).communicate()[0].decode() - self.assert_('Commands' in output) - self.assert_('Traceback' not in output) - for c in sub: - self.assert_("%s %s"%(cmd, c) in output, "%s %s"%(cmd, c) + " not in "+ output + " of " + str(glob_cmd)) - - for c in sub: -- output = Popen(glob_cmd + [c, '-h'], stdout=PIPE, env=self.new_environ).communicate()[0] -+ output = Popen(glob_cmd + [c, '-h'], stdout=PIPE, env=self.new_environ).communicate()[0].decode() - self.assert_('Usage' in output) - self.assert_("%s %s"%(cmd, c) in output, output) - - def test_cmd_packages(self): - # - single line -- output1 = Popen(['rosmsg', 'packages', '-s'], stdout=PIPE).communicate()[0] -+ output1 = Popen(['rosmsg', 'packages', '-s'], stdout=PIPE).communicate()[0].decode() - # - multi-line -- output2 = Popen(['rosmsg', 'packages'], stdout=PIPE).communicate()[0] -+ output2 = Popen(['rosmsg', 'packages'], stdout=PIPE).communicate()[0].decode() - l1 = [x for x in output1.split() if x] - l2 = [x.strip() for x in output2.split('\n') if x.strip()] - self.assertEquals(l1, l2) -@@ -80,8 +80,8 @@ def test_cmd_packages(self): - for p in ['std_srvs', 'rosmsg']: - self.assert_(p not in l1) - -- output1 = Popen(['rossrv', 'packages', '-s'], stdout=PIPE).communicate()[0] -- output2 = Popen(['rossrv', 'packages'], stdout=PIPE).communicate()[0] -+ output1 = Popen(['rossrv', 'packages', '-s'], stdout=PIPE).communicate()[0].decode() -+ output2 = Popen(['rossrv', 'packages'], stdout=PIPE).communicate()[0].decode() - l1 = [x for x in output1.split() if x] - l2 = [x.strip() for x in output2.split('\n') if x.strip()] - self.assertEquals(l1, l2) -@@ -92,14 +92,14 @@ def test_cmd_packages(self): - - def test_cmd_list(self): - # - multi-line -- output1 = Popen([os.path.join(_SCRIPT_FOLDER,'rosmsg'), 'list'], stdout=PIPE).communicate()[0] -+ output1 = Popen([os.path.join(_SCRIPT_FOLDER,'rosmsg'), 'list'], stdout=PIPE).communicate()[0].decode() - l1 = [x.strip() for x in output1.split('\n') if x.strip()] - for p in ['std_msgs/String', 'test_rosmaster/Floats']: - self.assert_(p in l1) - for p in ['std_srvs/Empty', 'roscpp/Empty']: - self.assert_(p not in l1) - -- output1 = Popen([os.path.join(_SCRIPT_FOLDER,'rossrv'), 'list'], stdout=PIPE).communicate()[0] -+ output1 = Popen([os.path.join(_SCRIPT_FOLDER,'rossrv'), 'list'], stdout=PIPE).communicate()[0].decode() - l1 = [x.strip() for x in output1.split('\n') if x.strip()] - for p in ['std_srvs/Empty', 'roscpp/Empty']: - self.assert_(p in l1) -@@ -109,9 +109,9 @@ def test_cmd_list(self): - def test_cmd_package(self): - # this test is obviously very brittle, but should stabilize as the tests stabilize - # - single line output -- output1 = Popen(['rosmsg', 'package', '-s', 'test_rosmaster'], stdout=PIPE).communicate()[0] -+ output1 = Popen(['rosmsg', 'package', '-s', 'test_rosmaster'], stdout=PIPE).communicate()[0].decode() - # - multi-line output -- output2 = Popen(['rosmsg', 'package', 'test_rosmaster'], stdout=PIPE).communicate()[0] -+ output2 = Popen(['rosmsg', 'package', 'test_rosmaster'], stdout=PIPE).communicate()[0].decode() - l = set([x for x in output1.split() if x]) - l2 = set([x.strip() for x in output2.split('\n') if x.strip()]) - self.assertEquals(l, l2) -@@ -121,8 +121,8 @@ def test_cmd_package(self): - 'test_rosmaster/RosmsgC']: - self.assertTrue(m in l, l) - -- output = Popen(['rossrv', 'package', '-s', 'test_rosmaster'], stdout=PIPE).communicate()[0] -- output2 = Popen(['rossrv', 'package','test_rosmaster'], stdout=PIPE).communicate()[0] -+ output = Popen(['rossrv', 'package', '-s', 'test_rosmaster'], stdout=PIPE).communicate()[0].decode() -+ output2 = Popen(['rossrv', 'package','test_rosmaster'], stdout=PIPE).communicate()[0].decode() - l = set([x for x in output.split() if x]) - l2 = set([x.strip() for x in output2.split('\n') if x.strip()]) - self.assertEquals(l, l2) -@@ -132,14 +132,14 @@ def test_cmd_package(self): - - ## test that the rosmsg/rossrv show command works - def test_cmd_show(self): -- output = Popen(['rosmsg', 'show', 'std_msgs/String'], stdout=PIPE).communicate()[0] -+ output = Popen(['rosmsg', 'show', 'std_msgs/String'], stdout=PIPE).communicate()[0].decode() - self.assertEquals('string data', output.strip()) - -- output = Popen(['rossrv', 'show', 'std_srvs/Empty'], stdout=PIPE).communicate()[0] -+ output = Popen(['rossrv', 'show', 'std_srvs/Empty'], stdout=PIPE).communicate()[0].decode() - self.assertEquals('---', output.strip()) -- output = Popen(['rossrv', 'show', 'std_srvs/Empty'], stdout=PIPE).communicate()[0] -+ output = Popen(['rossrv', 'show', 'std_srvs/Empty'], stdout=PIPE).communicate()[0].decode() - self.assertEquals('---', output.strip()) -- output = Popen(['rossrv', 'show', 'test_rosmaster/AddTwoInts'], stdout=PIPE).communicate()[0] -+ output = Popen(['rossrv', 'show', 'test_rosmaster/AddTwoInts'], stdout=PIPE).communicate()[0].decode() - self.assertEquals('int64 a\nint64 b\n---\nint64 sum', output.strip()) - - # test against test_rosmsg package -@@ -159,20 +159,20 @@ def test_cmd_show(self): - text = text+'\n' # running command adds one new line - text_raw = text_raw+'\n' - type_ =test_message_package+'/'+t -- output = Popen(['rosmsg', 'show', type_], stdout=PIPE).communicate()[0] -+ output = Popen(['rosmsg', 'show', type_], stdout=PIPE).communicate()[0].decode() - self.assertEquals(text, output) -- output = Popen(['rosmsg', 'show', '-r',type_], stdout=PIPE).communicate()[0] -+ output = Popen(['rosmsg', 'show', '-r',type_], stdout=PIPE).communicate()[0].decode() - self.assertEquals(text_raw, output) -- output = Popen(['rosmsg', 'show', '--raw', type_], stdout=PIPE).communicate()[0] -+ output = Popen(['rosmsg', 'show', '--raw', type_], stdout=PIPE).communicate()[0].decode() - self.assertEquals(text_raw, output) - - # test as search - type_ = t - text = "[test_rosmaster/%s]:\n%s"%(t, text) - text_raw = "[test_rosmaster/%s]:\n%s"%(t, text_raw) -- output = Popen(['rosmsg', 'show', type_], stdout=PIPE).communicate()[0] -+ output = Popen(['rosmsg', 'show', type_], stdout=PIPE).communicate()[0].decode() - self.assertEquals(text, output) - output = Popen(['rosmsg', 'show', '-r',type_], stdout=PIPE, stderr=PIPE).communicate() -- self.assertEquals(text_raw, output[0], "Failed: %s"%(str(output))) -- output = Popen(['rosmsg', 'show', '--raw', type_], stdout=PIPE).communicate()[0] -+ self.assertEquals(text_raw, output[0].decode(), "Failed: %s"%(str(output))) -+ output = Popen(['rosmsg', 'show', '--raw', type_], stdout=PIPE).communicate()[0].decode() - self.assertEquals(text_raw, output) -diff --git a/tools/rosmsg/test/test_rosmsgproto_command_line.py b/tools/rosmsg/test/test_rosmsgproto_command_line.py -index b5b555e78..b4aa0c5b3 100644 ---- a/tools/rosmsg/test/test_rosmsgproto_command_line.py -+++ b/tools/rosmsg/test/test_rosmsgproto_command_line.py -@@ -67,37 +67,37 @@ def testFail(self): - cmd.extend(["msg", "foo123barxyz"]) - call = subprocess.Popen(cmd, stdout = subprocess.PIPE, stderr = subprocess.PIPE, env = self.new_environ) - (output, erroutput) = call.communicate() -- self.assertEqual('', output) -- self.assertTrue('Unknown message name foo123barxyz' in erroutput) -+ self.assertEqual(b'', output) -+ self.assertTrue('Unknown message name foo123barxyz' in erroutput.decode()) - - def testSilentFail(self): - cmd = copy.copy(ROSMSGPROTO_FN) - cmd.extend(["msg", "-s", "foo123barxyz"]) - call = subprocess.Popen(cmd, stdout = subprocess.PIPE, stderr = subprocess.PIPE, env = self.new_environ) - (output, erroutput) = call.communicate() -- self.assertEqual('', output) -- self.assertEqual('', erroutput) -+ self.assertEqual(b'', output) -+ self.assertEqual(b'', erroutput) - - def testSilentFailCpp(self): - cmd = copy.copy(ROSMSGPROTO_FN) - cmd.extend(["msg", "-s", "foo123barxyz::bar"]) - call = subprocess.Popen(cmd, stdout = subprocess.PIPE, stderr = subprocess.PIPE, env = self.new_environ) - (output, erroutput) = call.communicate() -- self.assertEqual('', output) -- self.assertEqual('', erroutput) -+ self.assertEqual(b'', output) -+ self.assertEqual(b'', erroutput) - - def testSilentFailDot(self): - cmd = copy.copy(ROSMSGPROTO_FN) - cmd.extend(["msg", "-s", "foo123barxyz.bar"]) - call = subprocess.Popen(cmd, stdout = subprocess.PIPE, stderr = subprocess.PIPE, env = self.new_environ) - (output, erroutput) = call.communicate() -- self.assertEqual('', output) -- self.assertEqual('', erroutput) -+ self.assertEqual(b'', output) -+ self.assertEqual(b'', erroutput) - - def testSilentFailMode(self): - cmd = copy.copy(ROSMSGPROTO_FN) - cmd.extend(["msgfoobar", "-s", "foo123barxyz.bar"]) - call = subprocess.Popen(cmd, stdout = subprocess.PIPE, stderr = subprocess.PIPE, env = self.new_environ) - (output, erroutput) = call.communicate() -- self.assertEqual('', output) -- self.assertEqual('', erroutput) -+ self.assertEqual(b'', output) -+ self.assertEqual(b'', erroutput) diff --git a/dev-ros/rosmsg/files/tests.patch b/dev-ros/rosmsg/files/tests.patch deleted file mode 100644 index f8b514b4e127..000000000000 --- a/dev-ros/rosmsg/files/tests.patch +++ /dev/null @@ -1,15 +0,0 @@ -Index: rosmsg/test/test_rosmsg_command_line.py -=================================================================== ---- rosmsg.orig/test/test_rosmsg_command_line.py -+++ rosmsg/test/test_rosmsg_command_line.py -@@ -168,8 +168,8 @@ class TestRosmsg(unittest.TestCase): - - # test as search - type_ = t -- text = "[test_rosmaster/%s]:\n%s"%(t, text) -- text_raw = "[test_rosmaster/%s]:\n%s"%(t, text_raw) -+ text = ("[test_rosmaster/%s]:\n%s"%(t, text))*2 -+ text_raw = ("[test_rosmaster/%s]:\n%s"%(t, text_raw))*2 - output = Popen(['rosmsg', 'show', type_], stdout=PIPE).communicate()[0].decode() - self.assertEquals(text, output) - output = Popen(['rosmsg', 'show', '-r',type_], stdout=PIPE, stderr=PIPE).communicate() diff --git a/dev-ros/rosmsg/rosmsg-1.14.3-r1.ebuild b/dev-ros/rosmsg/rosmsg-1.14.3-r1.ebuild deleted file mode 100644 index a76abe4007fc..000000000000 --- a/dev-ros/rosmsg/rosmsg-1.14.3-r1.ebuild +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -ROS_REPO_URI="https://github.com/ros/ros_comm" -KEYWORDS="~amd64 ~arm" -ROS_SUBDIR=tools/${PN} -PYTHON_COMPAT=( python2_7 ) - -inherit ros-catkin - -DESCRIPTION="Command-line tools for displaying information about message and services" -LICENSE="BSD" -SLOT="0" -IUSE="" - -RDEPEND=" - dev-ros/genmsg[${PYTHON_USEDEP}] - dev-python/rospkg[${PYTHON_USEDEP}] - dev-ros/roslib[${PYTHON_USEDEP}] - dev-ros/rosbag[${PYTHON_USEDEP}] -" -DEPEND="${RDEPEND} - test? ( dev-ros/test_rosmaster[${PYTHON_USEDEP}] ) -" -PATCHES=( "${FILESDIR}/py3.patch" "${FILESDIR}/norm.patch" "${FILESDIR}/tests.patch" ) diff --git a/dev-ros/rosmsg/rosmsg-1.15.4.ebuild b/dev-ros/rosmsg/rosmsg-1.15.4.ebuild deleted file mode 100644 index 941834eadacc..000000000000 --- a/dev-ros/rosmsg/rosmsg-1.15.4.ebuild +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -ROS_REPO_URI="https://github.com/ros/ros_comm" -KEYWORDS="~amd64 ~arm" -ROS_SUBDIR=tools/${PN} -PYTHON_COMPAT=( python2_7 ) - -inherit ros-catkin - -DESCRIPTION="Command-line tools for displaying information about message and services" -LICENSE="BSD" -SLOT="0" -IUSE="" - -RDEPEND=" - dev-ros/genmsg[${PYTHON_USEDEP}] - dev-python/rospkg[${PYTHON_USEDEP}] - dev-ros/roslib[${PYTHON_USEDEP}] - dev-ros/rosbag[${PYTHON_USEDEP}] -" -DEPEND="${RDEPEND} - test? ( dev-ros/test_rosmaster[${PYTHON_USEDEP}] ) -" |