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 19, 2023
1 parent 143f248 commit 30207f9
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 form -pyXX[X] or -pyXX[X]-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 @@ -47,6 +47,8 @@ def test_lint():
"bleeding-py36.yml",
"/home/anyuser/komodo/2020.01.03-py36-rhel6.yml",
"myrelease-py36.yml",
"myrelease-py310.yml",
"myrelease-py310-rhel8.yml",
"myrelease-py36-rhel6.yml",
"myrelease-py36-rhel7.yml",
),
Expand Down

0 comments on commit 30207f9

Please sign in to comment.