mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-19 15:28:28 +01:00
Replaced Path* dataclasses with PathInfo/URLInfo/CloudURLInfo, which know how parse, serialize, stringify and join themselves. They also provide useful accessors like part of an url or pathlib.Path like .parent or .name. Along the way two families of bugs where fixed and should never occur in the future: - paths not matched as strings anymore, e.g. using str.startswith() - Output.path is eliminated as ambiguous Both families might had caused undefined surprising behavior when local and remote paths clash.
10 lines
242 B
Python
10 lines
242 B
Python
from __future__ import unicode_literals
|
|
|
|
from dvc.output.base import OutputBase
|
|
from dvc.remote.http import RemoteHTTP
|
|
from dvc.dependency.base import DependencyBase
|
|
|
|
|
|
class DependencyHTTP(DependencyBase, OutputBase):
|
|
REMOTE = RemoteHTTP
|