mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
ignore some "nightly" packages
This commit is contained in:
parent
e4eaaaf7d2
commit
5a587d5560
@ -41,6 +41,10 @@ CONDA_CLOUD_REPOS = (
|
|||||||
"plotly/linux-64", "plotly/linux-32", "plotly/osx-64", "plotly/win-64", "plotly/win-32", "plotly/noarch",
|
"plotly/linux-64", "plotly/linux-32", "plotly/osx-64", "plotly/win-64", "plotly/win-32", "plotly/noarch",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
CONDA_CLOUD_EXCLUDED_PACKAGES = (
|
||||||
|
"pytorch-nightly", "pytorch-nightly-cpu", "ignite-nightly",
|
||||||
|
)
|
||||||
|
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
level=logging.INFO,
|
level=logging.INFO,
|
||||||
format="[%(asctime)s] [%(levelname)s] %(message)s",
|
format="[%(asctime)s] [%(levelname)s] %(message)s",
|
||||||
@ -86,6 +90,9 @@ def sync_repo(repo_url: str, local_dir: Path, tmpdir: Path):
|
|||||||
|
|
||||||
packages = repodata['packages']
|
packages = repodata['packages']
|
||||||
for filename, meta in packages.items():
|
for filename, meta in packages.items():
|
||||||
|
if meta['name'] in CONDA_CLOUD_EXCLUDED_PACKAGES:
|
||||||
|
continue
|
||||||
|
|
||||||
file_size, md5 = meta['size'], meta['md5']
|
file_size, md5 = meta['size'], meta['md5']
|
||||||
|
|
||||||
pkg_url = '/'.join([repo_url, filename])
|
pkg_url = '/'.join([repo_url, filename])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user