sh_cpl/src/cpl_cli/publish/publisher_abc.py

29 lines
497 B
Python
Raw Normal View History

2021-03-29 13:29:26 +02:00
from abc import abstractmethod, ABC
2021-03-04 19:06:53 +01:00
2021-03-29 13:29:26 +02:00
class PublisherABC(ABC):
2021-03-04 19:06:53 +01:00
@abstractmethod
def __init__(self):
2021-03-29 13:29:26 +02:00
ABC.__init__(self)
2021-03-04 19:06:53 +01:00
@property
@abstractmethod
def source_path(self) -> str: pass
@property
@abstractmethod
def dist_path(self) -> str: pass
@abstractmethod
def include(self, path: str): pass
@abstractmethod
def exclude(self, path: str): pass
@abstractmethod
def build(self): pass
@abstractmethod
def publish(self): pass