Skip to content

Commit

Permalink
ebuild: switch to newer versions of Python
Browse files Browse the repository at this point in the history
  • Loading branch information
gentoo90 committed Sep 24, 2023
1 parent eec9701 commit 8d75ef2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions superflore/generators/ebuild/ebuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ 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', '3_6'])
ret += self.get_python_compat(['2_7', '3_10', '3_11'])
elif self.python_3:
# only use 3.5, 3.6 for ROS 2
ret += self.get_python_compat(['3_5', '3_6'])
ret += self.get_python_compat(['3_10', '3_11'])
else:
# fallback to python 2.7
ret += self.get_python_compat(['2_7'])
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=8
PYTHON_COMPAT=( python{2_7,3_5,3_6} )
PYTHON_COMPAT=( python{2_7,3_10,3_11} )

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,3_6} )' in got_text)
self.assertTrue('PYTHON_COMPAT=( python{2_7,3_10,3_11} )' in got_text)

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

0 comments on commit 8d75ef2

Please sign in to comment.