omdev 0.0.0.dev420__py3-none-any.whl → 0.0.0.dev421__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
omdev/oci/data.py CHANGED
@@ -1,10 +1,10 @@
1
1
  # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
- import abc
4
3
  import dataclasses as dc
5
4
  import enum
6
5
  import typing as ta
7
6
 
7
+ from omlish.lite.abstract import Abstract
8
8
  from omlish.lite.check import check
9
9
  from omlish.lite.marshal import OBJ_MARSHALER_FIELD_KEY
10
10
  from omlish.lite.marshal import OBJ_MARSHALER_OMIT_IF_NONE
@@ -17,7 +17,7 @@ from .datarefs import OciDataRef
17
17
 
18
18
 
19
19
  @dc.dataclass()
20
- class OciDataclass(abc.ABC): # noqa
20
+ class OciDataclass(Abstract):
21
21
  pass
22
22
 
23
23
 
omdev/oci/datarefs.py CHANGED
@@ -1,6 +1,5 @@
1
1
  # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
- import abc
4
3
  import dataclasses as dc
5
4
  import functools
6
5
  import hashlib
@@ -10,6 +9,7 @@ import shutil
10
9
  import tarfile
11
10
  import typing as ta
12
11
 
12
+ from omlish.lite.abstract import Abstract
13
13
  from omlish.lite.cached import cached_nullary
14
14
  from omlish.lite.check import check
15
15
 
@@ -18,7 +18,7 @@ from omlish.lite.check import check
18
18
 
19
19
 
20
20
  @dc.dataclass(frozen=True)
21
- class OciDataRef(abc.ABC): # noqa
21
+ class OciDataRef(Abstract):
22
22
  pass
23
23
 
24
24
 
omdev/oci/media.py CHANGED
@@ -1,9 +1,9 @@
1
1
  # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
- import abc
4
3
  import dataclasses as dc
5
4
  import typing as ta
6
5
 
6
+ from omlish.lite.abstract import Abstract
7
7
  from omlish.lite.check import check
8
8
  from omlish.lite.marshal import OBJ_MARSHALER_FIELD_KEY
9
9
  from omlish.lite.marshal import OBJ_MARSHALER_OMIT_IF_NONE
@@ -23,7 +23,7 @@ OCI_MEDIA_FIELDS: ta.Collection[str] = frozenset([
23
23
 
24
24
 
25
25
  @dc.dataclass()
26
- class OciMediaDataclass(abc.ABC): # noqa
26
+ class OciMediaDataclass(Abstract):
27
27
  SCHEMA_VERSION: ta.ClassVar[int]
28
28
 
29
29
  @property
omdev/oci/repositories.py CHANGED
@@ -5,6 +5,7 @@ import os.path
5
5
  import tarfile
6
6
  import typing as ta
7
7
 
8
+ from omlish.lite.abstract import Abstract
8
9
  from omlish.lite.check import check
9
10
  from omlish.os.paths import is_path_in_dir
10
11
 
@@ -17,7 +18,7 @@ from .datarefs import TarFileOciDataRef
17
18
  ##
18
19
 
19
20
 
20
- class OciRepository(abc.ABC):
21
+ class OciRepository(Abstract):
21
22
  @abc.abstractmethod
22
23
  def contains_blob(self, digest: str) -> bool:
23
24
  raise NotImplementedError
@@ -57,7 +58,7 @@ class OciRepository(abc.ABC):
57
58
  raise TypeError(obj)
58
59
 
59
60
 
60
- class FileOciRepository(OciRepository, abc.ABC):
61
+ class FileOciRepository(OciRepository, Abstract):
61
62
  @abc.abstractmethod
62
63
  def read_file(self, path: str) -> bytes:
63
64
  raise NotImplementedError
omdev/pyproject/pkg.py CHANGED
@@ -36,6 +36,7 @@ import types
36
36
  import typing as ta
37
37
 
38
38
  from omlish.formats.toml.writer import TomlWriter
39
+ from omlish.lite.abstract import Abstract
39
40
  from omlish.lite.cached import cached_nullary
40
41
  from omlish.lite.logs import log
41
42
  from omlish.subprocesses.sync import subprocesses
@@ -48,7 +49,7 @@ from ..packaging.revisions import GitRevisionAdder
48
49
  ##
49
50
 
50
51
 
51
- class BasePyprojectPackageGenerator(abc.ABC):
52
+ class BasePyprojectPackageGenerator(Abstract):
52
53
  def __init__(
53
54
  self,
54
55
  dir_name: str,