Skip to content

Commit

Permalink
Support python3_6 for ROS 1 (#157)
Browse files Browse the repository at this point in the history
* Support python3_6 for ROS 1
  • Loading branch information
concavegit authored and allenh1 committed Jul 5, 2018
1 parent 02b0dcd commit a3bb8cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion superflore/generators/ebuild/ebuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def get_ebuild_text(self, distributor, license_text):
ret += self.get_eapi_line()
if self.python_3 and not self.is_ros2:
# enable python 2.7 and python 3.5
ret += self.get_python_compat(['2_7', '3_5'])
ret += self.get_python_compat(['2_7', '3_5', '3_6'])
elif self.python_3:
# only use 3.5, 3.6 for ROS 2
ret += self.get_python_compat(['3_5', '3_6'])
Expand Down
2 changes: 1 addition & 1 deletion tests/ebuild/simple_expected.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Distributed under the terms of the BSD license

EAPI=6
PYTHON_COMPAT=( python{2_7,3_5} )
PYTHON_COMPAT=( python{2_7,3_5,3_6} )

inherit ros-cmake

Expand Down
2 changes: 1 addition & 1 deletion tests/test_ebuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def test_default_python2_python3(self):
"""Test That Python2/3 Is the Default"""
ebuild = self.get_ebuild()
got_text = ebuild.get_ebuild_text('Open Source Robotics Foundation', 'BSD')
self.assertTrue('PYTHON_COMPAT=( python{2_7,3_5} )' in got_text)
self.assertTrue('PYTHON_COMPAT=( python{2_7,3_5,3_6} )' in got_text)

def test_has_patches(self):
"""Test Patch Code Generation"""
Expand Down

0 comments on commit a3bb8cc

Please sign in to comment.