Skip to content

Commit

Permalink
Support building for py310 and on rhel8
Browse files Browse the repository at this point in the history
  • Loading branch information
berland committed Jan 18, 2023
1 parent f428391 commit b53a006
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions komodo/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def _validate(pkg, ver, repo):
def lint_release_name(pkgfile):
relname = os.path.basename(pkgfile)
found = False
for py_suffix in "-py27", "-py36", "-py38":
for rh_suffix in "", "-rhel6", "-rhel7":
for py_suffix in "-py27", "-py36", "-py38", "-py310":
for rh_suffix in "", "-rhel6", "-rhel7", "-rhel8":
if relname.endswith(py_suffix + rh_suffix + ".yml"):
found = True
break
Expand All @@ -56,7 +56,7 @@ def lint_release_name(pkgfile):
_kerr(
pkg=pkgfile,
err="Invalid release name suffix. "
"Must be of the most -pyXX or -pyXX-rhelY",
"Must be of the most -pyXX[X] or -pyXX-rhelY",
)
]

Expand Down
2 changes: 2 additions & 0 deletions tests/test_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def test_lint():
"/home/anyuser/komodo/2020.01.03-py27.yml",
"myrelease-py27.yml",
"myrelease-py36.yml",
"myrelease-py310.yml",
"myrelease-py310-rhel8.yml",
"myrelease-py27-rhel6.yml",
"myrelease-py27-rhel7.yml",
"myrelease-py36-rhel6.yml",
Expand Down

0 comments on commit b53a006

Please sign in to comment.