2025-01-15 10:42:10 +01:00
|
|
|
import abc
|
|
|
|
|
|
|
|
class VCSBase(metaclass=abc.ABCMeta):
|
|
|
|
"""Base class for VCS implementations"""
|
|
|
|
|
2025-01-15 10:45:06 +01:00
|
|
|
@abc.abstractmethod
|
|
|
|
def get_path(self, *_args):
|
|
|
|
"""Issue a get to a specific path from the repository."""
|
|
|
|
pass
|
2025-01-15 11:30:00 +01:00
|
|
|
|
2025-02-04 15:30:23 +01:00
|
|
|
@abc.abstractmethod
|
|
|
|
def checkout_package(
|
|
|
|
self,
|
|
|
|
target_project: str,
|
|
|
|
target_package: str,
|
|
|
|
pathname,
|
|
|
|
**kwargs
|
|
|
|
):
|
|
|
|
"""Checkout a package"""
|
|
|
|
pass
|