mirror of
https://github.com/clearml/clearml
synced 2025-04-21 06:44:16 +00:00
Fix git+https requirements handling, resolve top_level.txt package name (kerastuner from git was not detected)
This commit is contained in:
parent
8112b6b44f
commit
df0e5deb02
@ -363,6 +363,7 @@ def _search_path(path):
|
|||||||
elif version.endswith('egg'):
|
elif version.endswith('egg'):
|
||||||
version = version.rsplit('.', 1)[0]
|
version = version.rsplit('.', 1)[0]
|
||||||
|
|
||||||
|
mapping_pkg_name = pkg_name
|
||||||
# pep610 support. add support for new pip>=20.1 git reference feature
|
# pep610 support. add support for new pip>=20.1 git reference feature
|
||||||
git_direct_json = os.path.join(path, file, 'direct_url.json')
|
git_direct_json = os.path.join(path, file, 'direct_url.json')
|
||||||
if os.path.isfile(git_direct_json):
|
if os.path.isfile(git_direct_json):
|
||||||
@ -376,14 +377,13 @@ def _search_path(path):
|
|||||||
|
|
||||||
# Bugfix: package name should be the URL link, because we need it unique
|
# Bugfix: package name should be the URL link, because we need it unique
|
||||||
# mapping[pkg_name] = ('-e', git_url)
|
# mapping[pkg_name] = ('-e', git_url)
|
||||||
mapping[pkg_name] = ('-e {}'.format(git_url), '')
|
pkg_name, version = '-e {}'.format(git_url), ''
|
||||||
|
|
||||||
continue
|
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# default
|
# default
|
||||||
mapping[pkg_name] = (pkg_name, version)
|
mapping[mapping_pkg_name] = (pkg_name, version)
|
||||||
|
|
||||||
# analyze 'top_level.txt' if it exists
|
# analyze 'top_level.txt' if it exists
|
||||||
top_level = os.path.join(path, file, 'top_level.txt')
|
top_level = os.path.join(path, file, 'top_level.txt')
|
||||||
|
Loading…
Reference in New Issue
Block a user