dependence 1.2.4__py3-none-any.whl → 1.2.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
dependence/_utilities.py CHANGED
@@ -701,6 +701,8 @@ def _is_installed_requirement_string(item: Any) -> bool:
701
701
  requirement: Requirement = Requirement(item)
702
702
  except InvalidRequirement:
703
703
  return False
704
+ if not requirement.name:
705
+ return False
704
706
  return is_installed(requirement.name)
705
707
 
706
708
 
dependence/upgrade.py CHANGED
@@ -79,15 +79,16 @@ def upgrade(
79
79
  include_pointers=include_pointers,
80
80
  exclude_pointers=exclude_pointers,
81
81
  )
82
- command: tuple[str, ...] = (
83
- sys.executable,
84
- "-m",
85
- "pip",
86
- "install",
87
- "--upgrade",
88
- *frozen_requirements,
89
- )
90
- check_output(command, echo=echo)
82
+ if frozen_requirements:
83
+ command: tuple[str, ...] = (
84
+ sys.executable,
85
+ "-m",
86
+ "pip",
87
+ "install",
88
+ "--upgrade",
89
+ *frozen_requirements,
90
+ )
91
+ check_output(command, echo=echo)
91
92
  configuration_files: tuple[str, ...] = tuple(
92
93
  chain(
93
94
  *map(iter_configuration_files, requirements) # type: ignore
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dependence
3
- Version: 1.2.4
3
+ Version: 1.2.6
4
4
  Summary: A dependency management tool for python projects
5
5
  Project-URL: Documentation, https://dependence.enorganic.org
6
6
  Project-URL: Repository, https://github.com/enorganic/dependence
@@ -1,11 +1,11 @@
1
1
  dependence/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  dependence/__main__.py,sha256=gsluad-hgMvktrflSNLEMB3F-G_BKvlIGTHL0c1aQd8,1822
3
- dependence/_utilities.py,sha256=tcDRdDNdxeZHmqqHD7tynNSQYfZ9RWp0b7JiKfw88jE,39070
3
+ dependence/_utilities.py,sha256=DqERa9O_RXEklq34y1rDrRXqWit9yz-W-WSG1KG4aWk,39120
4
4
  dependence/freeze.py,sha256=ybjHOQOzxtuVjJQOUr1077CoMGSGdho3iKj8waygwuQ,17516
5
5
  dependence/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  dependence/update.py,sha256=KGNj-COhRnbxGVAUikBKdUgJCz0xZ741Z6HEBny7diQ,20852
7
- dependence/upgrade.py,sha256=y-oH-pAD8mncuMMdfZjn_-dW6WDLJtJx7JSEBIDvrfo,7818
8
- dependence-1.2.4.dist-info/METADATA,sha256=mwJqmrR0SzHVde_sRPtiW8Yxp-tQXGc8LwUQSZXGI5k,8366
9
- dependence-1.2.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
10
- dependence-1.2.4.dist-info/entry_points.txt,sha256=NStO_B0D81ObVYr9zDs6LCy0whm0a8KCiiFHMmTwOVE,56
11
- dependence-1.2.4.dist-info/RECORD,,
7
+ dependence/upgrade.py,sha256=nyOahgBJayeVeicM4AJ72lp2uDMvJOcCNUZIhVKk1do,7882
8
+ dependence-1.2.6.dist-info/METADATA,sha256=5V2BE-DyDCimRZ7oqAg4mTgzuM9BeMSksP9hYkX2XOg,8366
9
+ dependence-1.2.6.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
10
+ dependence-1.2.6.dist-info/entry_points.txt,sha256=NStO_B0D81ObVYr9zDs6LCy0whm0a8KCiiFHMmTwOVE,56
11
+ dependence-1.2.6.dist-info/RECORD,,