mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
@@ -1,6 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
import pathlib
|
import pathlib
|
||||||
from subprocess import STDOUT, check_call
|
from subprocess import STDOUT, check_call, check_output
|
||||||
|
|
||||||
path = pathlib.Path(__file__).parent.absolute()
|
path = pathlib.Path(__file__).parent.absolute()
|
||||||
hooks = path / "hooks"
|
hooks = path / "hooks"
|
||||||
@@ -21,10 +21,27 @@ check_call(
|
|||||||
stderr=STDOUT,
|
stderr=STDOUT,
|
||||||
)
|
)
|
||||||
|
|
||||||
check_call(
|
out = check_output(
|
||||||
[
|
[
|
||||||
path / "dist" / "dvc" / "dvc",
|
path / "dist" / "dvc" / "dvc",
|
||||||
"doctor",
|
"doctor",
|
||||||
],
|
],
|
||||||
stderr=STDOUT,
|
stderr=STDOUT,
|
||||||
)
|
).decode()
|
||||||
|
|
||||||
|
remotes = [
|
||||||
|
"s3",
|
||||||
|
"oss",
|
||||||
|
"gdrive",
|
||||||
|
"gs",
|
||||||
|
"hdfs",
|
||||||
|
"http",
|
||||||
|
"webhdfs",
|
||||||
|
"azure",
|
||||||
|
"ssh",
|
||||||
|
"webdav",
|
||||||
|
]
|
||||||
|
|
||||||
|
print(out)
|
||||||
|
for remote in remotes:
|
||||||
|
assert f"\t{remote}" in out, f"Missing support for {remote}"
|
||||||
|
|||||||
@@ -16,5 +16,15 @@ datas += copy_metadata("webdav4")
|
|||||||
datas += copy_metadata("aiohttp")
|
datas += copy_metadata("aiohttp")
|
||||||
datas += copy_metadata("aiohttp_retry")
|
datas += copy_metadata("aiohttp_retry")
|
||||||
|
|
||||||
# https://github.com/pypa/setuptools/issues/1963
|
hiddenimports = [
|
||||||
hiddenimports = ["pkg_resources.py2_warn"]
|
"dvc_azure",
|
||||||
|
"dvc_gdrive",
|
||||||
|
"dvc_gs",
|
||||||
|
"dvc_hdfs",
|
||||||
|
"dvc_oss",
|
||||||
|
"dvc_s3",
|
||||||
|
"dvc_webdav",
|
||||||
|
"dvc_webhdfs",
|
||||||
|
# https://github.com/pypa/setuptools/issues/1963
|
||||||
|
"pkg_resources.py2_warn",
|
||||||
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user