Skip to content

Commit

Permalink
sagemath.py: Update for Sage 10.4.beta3
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe authored and AMDmi3 committed Apr 15, 2024
1 parent f529114 commit 11f7680
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion repology/parsers/parsers/sagemath.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def iter_parse(self, path: str, factory: PackageFactory) -> Iterable[PackageMake
pkg.add_name(os.path.basename(pkgpath_rel), NameType.SAGEMATH_NAME)

projectname = os.path.basename(pkgpath_rel)
if os.path.exists(os.path.join(pkgpath_abs, 'install-requires.txt')):
if os.path.exists(os.path.join(pkgpath_abs, 'install-requires.txt')) or os.path.exists(os.path.join(pkgpath_abs, 'version_requirements.txt')):
# version_requirements.txt has replaced install-requires.txt in Sage 10.4.beta3
projectname = 'python:' + projectname

pkg.add_name(projectname, NameType.SAGEMATH_PROJECT_NAME)
Expand Down

0 comments on commit 11f7680

Please sign in to comment.