Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Ombredanne <[email protected]>
  • Loading branch information
pombredanne committed Mar 9, 2022
1 parent 6238b83 commit b272e3b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions etc/scripts/utils_thirdparty.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ def get_package_versions(
except RemoteNotFetchedException as e:
print(f"Failed to fetch PyPI package {name} @ {version} info from {index_url}: {e}")


################################################################################
#
# Core models
Expand Down Expand Up @@ -1617,6 +1618,7 @@ def tags(self):
)
)


################################################################################
#
# PyPI repo and link index for package wheels and sources
Expand Down Expand Up @@ -1801,6 +1803,7 @@ def from_url(cls, url=ABOUT_BASE_URL, _LINKS_REPO={}):
_LINKS_REPO[url] = cls(url=url)
return _LINKS_REPO[url]


################################################################################
# Globals for remote repos to be lazily created and cached on first use for the
# life of the session together with some convenience functions.
Expand Down Expand Up @@ -1834,6 +1837,7 @@ def get_pypi_package(name, version, index_url, verbose=TRACE_DEEP):
except RemoteNotFetchedException as e:
print(f"Failed to fetch PyPI package {name} @ {version} info from {index_url}: {e}")


################################################################################
#
# Basic file and URL-based operations using a persistent file-based Cache
Expand Down Expand Up @@ -1994,6 +1998,7 @@ def fetch_and_save_path_or_url(
fo.write(content)
return content


################################################################################
# Requirements processing
################################################################################
Expand Down Expand Up @@ -2031,6 +2036,7 @@ def get_required_packages(
print(" get_required_packages: name:", name, "version:", version)
yield repo.get_package(name, version)


################################################################################
# Functions to update or fetch ABOUT and license files
################################################################################
Expand Down Expand Up @@ -2181,6 +2187,7 @@ def get_other_dists(_package, _dist):
lic_errs = "\n".join(lic_errs)
print(f"Failed to fetch some licenses:: {lic_errs}")


################################################################################
#
# Functions to build new Python wheels including native on multiple OSes
Expand Down Expand Up @@ -2311,9 +2318,9 @@ def build_wheels_locally_if_pure_python(
"--wheel-dir",
wheel_dir,
]
+deps
+verbose
+[requirements_specifier]
+ deps
+ verbose
+ [requirements_specifier]
)

print(f"Building local wheels for: {requirements_specifier}")
Expand Down

0 comments on commit b272e3b

Please sign in to comment.