python-alpm 0.2.0__cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.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.
Potentially problematic release.
This version of python-alpm might be problematic. Click here for more details.
- alpm/__init__.py +6 -0
- alpm/__pycache__/__init__.cpython-313.pyc +0 -0
- alpm/__pycache__/alpm_types.cpython-313.pyc +0 -0
- alpm/__pycache__/type_aliases.cpython-313.pyc +0 -0
- alpm/_native.abi3.so +0 -0
- alpm/_native.pyi +4 -0
- alpm/alpm_srcinfo/__init__.pyi +20 -0
- alpm/alpm_srcinfo/__pycache__/__init__.cpython-313.pyc +0 -0
- alpm/alpm_srcinfo/__pycache__/error.cpython-313.pyc +0 -0
- alpm/alpm_srcinfo/__pycache__/schema.cpython-313.pyc +0 -0
- alpm/alpm_srcinfo/error.pyi +8 -0
- alpm/alpm_srcinfo/schema.pyi +70 -0
- alpm/alpm_srcinfo/source_info/__init__.pyi +54 -0
- alpm/alpm_srcinfo/source_info/__pycache__/__init__.cpython-313.pyc +0 -0
- alpm/alpm_srcinfo/source_info/v1/__init__.pyi +102 -0
- alpm/alpm_srcinfo/source_info/v1/__pycache__/__init__.cpython-313.pyc +0 -0
- alpm/alpm_srcinfo/source_info/v1/__pycache__/merged.cpython-313.pyc +0 -0
- alpm/alpm_srcinfo/source_info/v1/__pycache__/package.cpython-313.pyc +0 -0
- alpm/alpm_srcinfo/source_info/v1/__pycache__/package_base.cpython-313.pyc +0 -0
- alpm/alpm_srcinfo/source_info/v1/merged.pyi +188 -0
- alpm/alpm_srcinfo/source_info/v1/package.pyi +257 -0
- alpm/alpm_srcinfo/source_info/v1/package_base.pyi +386 -0
- alpm/alpm_types.pyi +1357 -0
- alpm/py.typed +0 -0
- alpm/type_aliases.py +135 -0
- python_alpm-0.2.0.dist-info/METADATA +9 -0
- python_alpm-0.2.0.dist-info/RECORD +28 -0
- python_alpm-0.2.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
"""Handling of metadata found in a `pkgname` section of SRCINFO data."""
|
|
2
|
+
|
|
3
|
+
from typing import TypeVar, Generic, Optional, TypeAlias, Union
|
|
4
|
+
|
|
5
|
+
from alpm.alpm_types import (
|
|
6
|
+
Url,
|
|
7
|
+
RelativePath,
|
|
8
|
+
License,
|
|
9
|
+
OptionalDependency,
|
|
10
|
+
PackageRelation,
|
|
11
|
+
Architectures,
|
|
12
|
+
)
|
|
13
|
+
from alpm.type_aliases import RelationOrSoname, MakepkgOption, SystemArchitecture
|
|
14
|
+
|
|
15
|
+
Overridable: TypeAlias = Union[
|
|
16
|
+
str,
|
|
17
|
+
list[str],
|
|
18
|
+
Url,
|
|
19
|
+
list[MakepkgOption],
|
|
20
|
+
RelativePath,
|
|
21
|
+
list[RelativePath],
|
|
22
|
+
list[License],
|
|
23
|
+
list[RelationOrSoname],
|
|
24
|
+
list[OptionalDependency],
|
|
25
|
+
list[PackageRelation],
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
T = TypeVar("T", bound=Optional[Overridable])
|
|
29
|
+
|
|
30
|
+
class Override(Generic[T]):
|
|
31
|
+
"""An override for respective defaults in PackageBase.
|
|
32
|
+
|
|
33
|
+
Used as Override[T] | None:
|
|
34
|
+
- **None** - no override, use the default from PackageBase.
|
|
35
|
+
|
|
36
|
+
Equivalent to Override::No in Rust alpm-srcinfo crate.
|
|
37
|
+
|
|
38
|
+
- **Override(None)** - clear the field.
|
|
39
|
+
|
|
40
|
+
Equivalent to Override::Clear in Rust alpm-srcinfo crate.
|
|
41
|
+
|
|
42
|
+
- **Override(value)** - override the field with value.
|
|
43
|
+
|
|
44
|
+
Equivalent to Override::Yes { value } in Rust alpm-srcinfo crate.
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
def __init__(self, value: Optional[T]):
|
|
48
|
+
"""Create a new Override with the given value.
|
|
49
|
+
|
|
50
|
+
If value is None, the override clears the field.
|
|
51
|
+
|
|
52
|
+
Args:
|
|
53
|
+
value (Optional[T]): The value of the override, or None to clear the field.
|
|
54
|
+
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def value(self) -> Optional[T]:
|
|
59
|
+
"""The value of the override."""
|
|
60
|
+
|
|
61
|
+
def __repr__(self) -> str: ...
|
|
62
|
+
|
|
63
|
+
class Package:
|
|
64
|
+
"""Package metadata based on a pkgname section in SRCINFO data.
|
|
65
|
+
|
|
66
|
+
This class only contains package specific overrides.
|
|
67
|
+
Only in combination with PackageBase data a full view on a package's metadata is
|
|
68
|
+
possible.
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
__hash__ = None # type: ignore
|
|
72
|
+
|
|
73
|
+
def __init__(self, name: str):
|
|
74
|
+
"""Initialize a new Package with the given name.
|
|
75
|
+
|
|
76
|
+
Args:
|
|
77
|
+
name (str): The name of the package. Must be a valid alpm-package-name.
|
|
78
|
+
|
|
79
|
+
Raises:
|
|
80
|
+
ALPMError: If the name is not a valid alpm-package-name.
|
|
81
|
+
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def name(self) -> str:
|
|
86
|
+
"""The alpm-package-name of the package."""
|
|
87
|
+
|
|
88
|
+
@name.setter
|
|
89
|
+
def name(self, name: str) -> None: ...
|
|
90
|
+
@property
|
|
91
|
+
def description(self) -> Optional[Override[str]]:
|
|
92
|
+
"""Override of the package's description."""
|
|
93
|
+
|
|
94
|
+
@description.setter
|
|
95
|
+
def description(self, description: Optional[Override[str]]) -> None: ...
|
|
96
|
+
@property
|
|
97
|
+
def url(self) -> Optional[Override[Url]]:
|
|
98
|
+
"""Override of the package's upstream URL."""
|
|
99
|
+
|
|
100
|
+
@url.setter
|
|
101
|
+
def url(self, url: Optional[Override[Url]]) -> None: ...
|
|
102
|
+
@property
|
|
103
|
+
def changelog(self) -> Optional[Override[RelativePath]]:
|
|
104
|
+
"""Override of the package's path to a changelog file."""
|
|
105
|
+
|
|
106
|
+
@changelog.setter
|
|
107
|
+
def changelog(self, changelog: Optional[Override[RelativePath]]) -> None: ...
|
|
108
|
+
@property
|
|
109
|
+
def licenses(self) -> Optional[Override[list[License]]]:
|
|
110
|
+
"""Override of licenses that apply to the package."""
|
|
111
|
+
|
|
112
|
+
@licenses.setter
|
|
113
|
+
def licenses(self, licenses: Optional[Override[list[License]]]) -> None: ...
|
|
114
|
+
@property
|
|
115
|
+
def install(self) -> Optional[Override[RelativePath]]:
|
|
116
|
+
"""Override of the package's install script path."""
|
|
117
|
+
|
|
118
|
+
@install.setter
|
|
119
|
+
def install(self, install: Optional[Override[RelativePath]]) -> None: ...
|
|
120
|
+
@property
|
|
121
|
+
def groups(self) -> Optional[Override[list[str]]]:
|
|
122
|
+
"""Override of alpm-package-groups the package is part of."""
|
|
123
|
+
|
|
124
|
+
@groups.setter
|
|
125
|
+
def groups(self, groups: Optional[Override[list[str]]]) -> None: ...
|
|
126
|
+
@property
|
|
127
|
+
def options(self) -> Optional[Override[list[MakepkgOption]]]:
|
|
128
|
+
"""Override of build tool options used when building the package."""
|
|
129
|
+
|
|
130
|
+
@options.setter
|
|
131
|
+
def options(self, options: Optional[Override[list[MakepkgOption]]]) -> None: ...
|
|
132
|
+
@property
|
|
133
|
+
def backups(self) -> Optional[Override[list[RelativePath]]]:
|
|
134
|
+
"""Override of paths to files in the package that should be backed up."""
|
|
135
|
+
|
|
136
|
+
@backups.setter
|
|
137
|
+
def backups(self, backups: Optional[Override[list[RelativePath]]]) -> None: ...
|
|
138
|
+
@property
|
|
139
|
+
def architectures(self) -> Optional[Architectures]:
|
|
140
|
+
"""The architectures that are supported by this package."""
|
|
141
|
+
|
|
142
|
+
@architectures.setter
|
|
143
|
+
def architectures(self, architectures: Optional[Architectures]) -> None: ...
|
|
144
|
+
@property
|
|
145
|
+
def architecture_properties(
|
|
146
|
+
self,
|
|
147
|
+
) -> dict[SystemArchitecture, "PackageArchitecture"]:
|
|
148
|
+
"""Architecture specific overrides for the package.
|
|
149
|
+
|
|
150
|
+
The keys of the dictionary are the architectures for which overrides are
|
|
151
|
+
specified. The values are PackageArchitecture instances containing the
|
|
152
|
+
overrides.
|
|
153
|
+
|
|
154
|
+
This field is only relevant if Package.architectures is set.
|
|
155
|
+
"""
|
|
156
|
+
|
|
157
|
+
@architecture_properties.setter
|
|
158
|
+
def architecture_properties(
|
|
159
|
+
self, architecture_properties: dict[SystemArchitecture, "PackageArchitecture"]
|
|
160
|
+
) -> None: ...
|
|
161
|
+
@property
|
|
162
|
+
def dependencies(self) -> Optional[Override[list[RelationOrSoname]]]:
|
|
163
|
+
"""The (potentially overridden) list of run-time dependencies of the package."""
|
|
164
|
+
|
|
165
|
+
@dependencies.setter
|
|
166
|
+
def dependencies(
|
|
167
|
+
self, dependencies: Optional[Override[list[RelationOrSoname]]]
|
|
168
|
+
) -> None: ...
|
|
169
|
+
@property
|
|
170
|
+
def optional_dependencies(self) -> Optional[Override[list[OptionalDependency]]]:
|
|
171
|
+
"""The (potentially overridden) list of optional dependencies of the package."""
|
|
172
|
+
|
|
173
|
+
@optional_dependencies.setter
|
|
174
|
+
def optional_dependencies(
|
|
175
|
+
self, optional_dependencies: Optional[Override[list[OptionalDependency]]]
|
|
176
|
+
) -> None: ...
|
|
177
|
+
@property
|
|
178
|
+
def provides(self) -> Optional[Override[list[RelationOrSoname]]]:
|
|
179
|
+
"""The (potentially overridden) list of provisions of the package."""
|
|
180
|
+
|
|
181
|
+
@provides.setter
|
|
182
|
+
def provides(
|
|
183
|
+
self, provides: Optional[Override[list[RelationOrSoname]]]
|
|
184
|
+
) -> None: ...
|
|
185
|
+
@property
|
|
186
|
+
def conflicts(self) -> Optional[Override[list[PackageRelation]]]:
|
|
187
|
+
"""The (potentially overridden) list of conflicts of the package."""
|
|
188
|
+
|
|
189
|
+
@conflicts.setter
|
|
190
|
+
def conflicts(
|
|
191
|
+
self, conflicts: Optional[Override[list[PackageRelation]]]
|
|
192
|
+
) -> None: ...
|
|
193
|
+
@property
|
|
194
|
+
def replaces(self) -> Optional[Override[list[PackageRelation]]]:
|
|
195
|
+
"""The (potentially overridden) list of replacements of the package."""
|
|
196
|
+
|
|
197
|
+
@replaces.setter
|
|
198
|
+
def replaces(self, replaces: Optional[Override[list[PackageRelation]]]) -> None: ...
|
|
199
|
+
def __str__(self) -> str: ...
|
|
200
|
+
def __repr__(self) -> str: ...
|
|
201
|
+
|
|
202
|
+
class PackageArchitecture:
|
|
203
|
+
"""Architecture specific package properties for use in Package.
|
|
204
|
+
|
|
205
|
+
For each Architecture defined in Package.architectures, a PackageArchitecture is
|
|
206
|
+
present in Package.architecture_properties.
|
|
207
|
+
"""
|
|
208
|
+
|
|
209
|
+
__hash__ = None # type: ignore
|
|
210
|
+
|
|
211
|
+
def __init__(self) -> None:
|
|
212
|
+
"""Initialize an empty PackageArchitecture with all overrides set to None."""
|
|
213
|
+
|
|
214
|
+
@property
|
|
215
|
+
def dependencies(self) -> Optional[Override[list[RelationOrSoname]]]:
|
|
216
|
+
"""The (potentially overridden) list of run-time dependencies of the package."""
|
|
217
|
+
|
|
218
|
+
@dependencies.setter
|
|
219
|
+
def dependencies(
|
|
220
|
+
self, dependencies: Optional[Override[list[RelationOrSoname]]]
|
|
221
|
+
) -> None: ...
|
|
222
|
+
@property
|
|
223
|
+
def optional_dependencies(self) -> Optional[Override[list[OptionalDependency]]]:
|
|
224
|
+
"""The (potentially overridden) list of optional dependencies of the package."""
|
|
225
|
+
|
|
226
|
+
@optional_dependencies.setter
|
|
227
|
+
def optional_dependencies(
|
|
228
|
+
self, optional_dependencies: Optional[Override[list[OptionalDependency]]]
|
|
229
|
+
) -> None: ...
|
|
230
|
+
@property
|
|
231
|
+
def provides(self) -> Optional[Override[list[RelationOrSoname]]]:
|
|
232
|
+
"""The (potentially overridden) list of provisions of the package."""
|
|
233
|
+
|
|
234
|
+
@provides.setter
|
|
235
|
+
def provides(
|
|
236
|
+
self, provides: Optional[Override[list[RelationOrSoname]]]
|
|
237
|
+
) -> None: ...
|
|
238
|
+
@property
|
|
239
|
+
def conflicts(self) -> Optional[Override[list[PackageRelation]]]:
|
|
240
|
+
"""The (potentially overridden) list of conflicts of the package."""
|
|
241
|
+
|
|
242
|
+
@conflicts.setter
|
|
243
|
+
def conflicts(
|
|
244
|
+
self, conflicts: Optional[Override[list[PackageRelation]]]
|
|
245
|
+
) -> None: ...
|
|
246
|
+
@property
|
|
247
|
+
def replaces(self) -> Optional[Override[list[PackageRelation]]]:
|
|
248
|
+
"""The (potentially overridden) list of replacements of the package."""
|
|
249
|
+
|
|
250
|
+
@replaces.setter
|
|
251
|
+
def replaces(self, replaces: Optional[Override[list[PackageRelation]]]) -> None: ...
|
|
252
|
+
|
|
253
|
+
__all__ = [
|
|
254
|
+
"Override",
|
|
255
|
+
"Package",
|
|
256
|
+
"PackageArchitecture",
|
|
257
|
+
]
|
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
"""Handling of metadata found in the pkgbase section of SRCINFO data."""
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from alpm.alpm_srcinfo.source_info.v1.package import PackageArchitecture
|
|
6
|
+
from alpm.alpm_types import (
|
|
7
|
+
FullVersion,
|
|
8
|
+
Url,
|
|
9
|
+
RelativePath,
|
|
10
|
+
License,
|
|
11
|
+
Architectures,
|
|
12
|
+
OptionalDependency,
|
|
13
|
+
PackageRelation,
|
|
14
|
+
Source,
|
|
15
|
+
SkippableBlake2b512Checksum,
|
|
16
|
+
SkippableMd5Checksum,
|
|
17
|
+
SkippableSha1Checksum,
|
|
18
|
+
SkippableSha224Checksum,
|
|
19
|
+
SkippableSha256Checksum,
|
|
20
|
+
SkippableSha384Checksum,
|
|
21
|
+
SkippableSha512Checksum,
|
|
22
|
+
)
|
|
23
|
+
from alpm.type_aliases import (
|
|
24
|
+
MakepkgOption,
|
|
25
|
+
OpenPGPIdentifier,
|
|
26
|
+
RelationOrSoname,
|
|
27
|
+
SystemArchitecture,
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
class PackageBaseArchitecture:
|
|
31
|
+
"""Architecture specific package base properties for use in PackageBase.
|
|
32
|
+
|
|
33
|
+
For each Architecture defined in PackageBase.architectures a
|
|
34
|
+
PackageBaseArchitecture is present in PackageBase.architecture_properties.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
def __init__(self) -> None:
|
|
38
|
+
"""Initialize a new PackageBaseArchitecture with default values."""
|
|
39
|
+
|
|
40
|
+
def merge_package_properties(self, properties: "PackageArchitecture") -> None:
|
|
41
|
+
"""Merge in the architecture specific properties of a package.
|
|
42
|
+
|
|
43
|
+
Each existing field of properties overrides the architecture-independent
|
|
44
|
+
pendant on self.
|
|
45
|
+
|
|
46
|
+
Args:
|
|
47
|
+
properties (PackageArchitecture): The architecture specific properties of a
|
|
48
|
+
package to merge in.
|
|
49
|
+
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def dependencies(self) -> list["RelationOrSoname"]:
|
|
54
|
+
"""The list of run-time dependencies of the package base."""
|
|
55
|
+
|
|
56
|
+
@dependencies.setter
|
|
57
|
+
def dependencies(self, dependencies: list["RelationOrSoname"]) -> None: ...
|
|
58
|
+
@property
|
|
59
|
+
def optional_dependencies(self) -> list["OptionalDependency"]:
|
|
60
|
+
"""The list of optional dependencies of the package base."""
|
|
61
|
+
|
|
62
|
+
@optional_dependencies.setter
|
|
63
|
+
def optional_dependencies(
|
|
64
|
+
self, optional_dependencies: list["OptionalDependency"]
|
|
65
|
+
) -> None: ...
|
|
66
|
+
@property
|
|
67
|
+
def provides(self) -> list["RelationOrSoname"]:
|
|
68
|
+
"""The list of provisions of the package base."""
|
|
69
|
+
|
|
70
|
+
@provides.setter
|
|
71
|
+
def provides(self, provides: list["RelationOrSoname"]) -> None: ...
|
|
72
|
+
@property
|
|
73
|
+
def conflicts(self) -> list["PackageRelation"]:
|
|
74
|
+
"""The list of conflicts of the package base."""
|
|
75
|
+
|
|
76
|
+
@conflicts.setter
|
|
77
|
+
def conflicts(self, conflicts: list["PackageRelation"]) -> None: ...
|
|
78
|
+
@property
|
|
79
|
+
def replaces(self) -> list["PackageRelation"]:
|
|
80
|
+
"""The list of replacements of the package base."""
|
|
81
|
+
|
|
82
|
+
@replaces.setter
|
|
83
|
+
def replaces(self, replaces: list["PackageRelation"]) -> None: ...
|
|
84
|
+
@property
|
|
85
|
+
def check_dependencies(self) -> list["PackageRelation"]:
|
|
86
|
+
"""The list of test dependencies of the package base."""
|
|
87
|
+
|
|
88
|
+
@check_dependencies.setter
|
|
89
|
+
def check_dependencies(
|
|
90
|
+
self, check_dependencies: list["PackageRelation"]
|
|
91
|
+
) -> None: ...
|
|
92
|
+
@property
|
|
93
|
+
def make_dependencies(self) -> list["PackageRelation"]:
|
|
94
|
+
"""The list of build dependencies of the package base."""
|
|
95
|
+
|
|
96
|
+
@make_dependencies.setter
|
|
97
|
+
def make_dependencies(self, make_dependencies: list["PackageRelation"]) -> None: ...
|
|
98
|
+
@property
|
|
99
|
+
def sources(self) -> list["Source"]:
|
|
100
|
+
"""The list of sources of the package base."""
|
|
101
|
+
|
|
102
|
+
@sources.setter
|
|
103
|
+
def sources(self, sources: list["Source"]) -> None: ...
|
|
104
|
+
@property
|
|
105
|
+
def b2_checksums(self) -> list["SkippableBlake2b512Checksum"]:
|
|
106
|
+
"""The list of Blake2 hash digests for sources of the package base."""
|
|
107
|
+
|
|
108
|
+
@b2_checksums.setter
|
|
109
|
+
def b2_checksums(
|
|
110
|
+
self, b2_checksums: list["SkippableBlake2b512Checksum"]
|
|
111
|
+
) -> None: ...
|
|
112
|
+
@property
|
|
113
|
+
def md5_checksums(self) -> list["SkippableMd5Checksum"]:
|
|
114
|
+
"""The list of MD5 hash digests for sources of the package base."""
|
|
115
|
+
|
|
116
|
+
@md5_checksums.setter
|
|
117
|
+
def md5_checksums(self, md5_checksums: list["SkippableMd5Checksum"]) -> None: ...
|
|
118
|
+
@property
|
|
119
|
+
def sha1_checksums(self) -> list["SkippableSha1Checksum"]:
|
|
120
|
+
"""The list of SHA1 hash digests for sources of the package base."""
|
|
121
|
+
|
|
122
|
+
@sha1_checksums.setter
|
|
123
|
+
def sha1_checksums(self, sha1_checksums: list["SkippableSha1Checksum"]) -> None: ...
|
|
124
|
+
@property
|
|
125
|
+
def sha224_checksums(self) -> list["SkippableSha224Checksum"]:
|
|
126
|
+
"""The list of SHA224 hash digests for sources of the package base."""
|
|
127
|
+
|
|
128
|
+
@sha224_checksums.setter
|
|
129
|
+
def sha224_checksums(
|
|
130
|
+
self, sha224_checksums: list["SkippableSha224Checksum"]
|
|
131
|
+
) -> None: ...
|
|
132
|
+
@property
|
|
133
|
+
def sha256_checksums(self) -> list["SkippableSha256Checksum"]:
|
|
134
|
+
"""The list of SHA256 hash digests for sources of the package base."""
|
|
135
|
+
|
|
136
|
+
@sha256_checksums.setter
|
|
137
|
+
def sha256_checksums(
|
|
138
|
+
self, sha256_checksums: list["SkippableSha256Checksum"]
|
|
139
|
+
) -> None: ...
|
|
140
|
+
@property
|
|
141
|
+
def sha384_checksums(self) -> list["SkippableSha384Checksum"]:
|
|
142
|
+
"""The list of SHA384 hash digests for sources of the package base."""
|
|
143
|
+
|
|
144
|
+
@sha384_checksums.setter
|
|
145
|
+
def sha384_checksums(
|
|
146
|
+
self, sha384_checksums: list["SkippableSha384Checksum"]
|
|
147
|
+
) -> None: ...
|
|
148
|
+
@property
|
|
149
|
+
def sha512_checksums(self) -> list["SkippableSha512Checksum"]:
|
|
150
|
+
"""The list of SHA512 hash digests for sources of the package base."""
|
|
151
|
+
|
|
152
|
+
@sha512_checksums.setter
|
|
153
|
+
def sha512_checksums(
|
|
154
|
+
self, sha512_checksums: list["SkippableSha512Checksum"]
|
|
155
|
+
) -> None: ...
|
|
156
|
+
def __eq__(self, other: object) -> bool: ...
|
|
157
|
+
|
|
158
|
+
class PackageBase:
|
|
159
|
+
"""Package base metadata based on the pkgbase section in SRCINFO data.
|
|
160
|
+
|
|
161
|
+
All values in this struct act as default values for all Packages in the scope of
|
|
162
|
+
specific SRCINFO data.
|
|
163
|
+
|
|
164
|
+
A MergedPackage (a full view on a package's metadata) can be created using
|
|
165
|
+
SourceInfoV1.packages_for_architecture.
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
def __init__(self, name: str, version: "FullVersion") -> None:
|
|
169
|
+
"""Create a new PackageBase from a name and a FullVersion.
|
|
170
|
+
|
|
171
|
+
Uses the name and version and initializes all remaining fields of PackageBase
|
|
172
|
+
with default values.
|
|
173
|
+
|
|
174
|
+
Args:
|
|
175
|
+
name (str): The name of the package base.
|
|
176
|
+
version (FullVersion): The version of the package base.
|
|
177
|
+
|
|
178
|
+
Raises:
|
|
179
|
+
ALPMError: If the provided name is not valid.
|
|
180
|
+
|
|
181
|
+
"""
|
|
182
|
+
|
|
183
|
+
@property
|
|
184
|
+
def name(self) -> str:
|
|
185
|
+
"""The alpm-package-name of the package base."""
|
|
186
|
+
|
|
187
|
+
@name.setter
|
|
188
|
+
def name(self, name: str) -> None: ...
|
|
189
|
+
@property
|
|
190
|
+
def description(self) -> Optional[str]:
|
|
191
|
+
"""The optional description of the package base."""
|
|
192
|
+
|
|
193
|
+
@description.setter
|
|
194
|
+
def description(self, description: Optional[str]) -> None: ...
|
|
195
|
+
@property
|
|
196
|
+
def url(self) -> Optional["Url"]:
|
|
197
|
+
"""The optional upstream URL of the package base."""
|
|
198
|
+
|
|
199
|
+
@url.setter
|
|
200
|
+
def url(self, url: Optional["Url"]) -> None: ...
|
|
201
|
+
@property
|
|
202
|
+
def changelog(self) -> Optional["RelativePath"]:
|
|
203
|
+
"""The optional changelog path of the package base."""
|
|
204
|
+
|
|
205
|
+
@changelog.setter
|
|
206
|
+
def changelog(self, changelog: Optional["RelativePath"]) -> None: ...
|
|
207
|
+
@property
|
|
208
|
+
def licenses(self) -> list["License"]:
|
|
209
|
+
"""The list of licenses that apply to the package base."""
|
|
210
|
+
|
|
211
|
+
@licenses.setter
|
|
212
|
+
def licenses(self, licenses: list["License"]) -> None: ...
|
|
213
|
+
@property
|
|
214
|
+
def install(self) -> Optional["RelativePath"]:
|
|
215
|
+
"""Relative path to an alpm-install-scriptlet of the package base."""
|
|
216
|
+
|
|
217
|
+
@install.setter
|
|
218
|
+
def install(self, install: Optional["RelativePath"]) -> None: ...
|
|
219
|
+
@property
|
|
220
|
+
def groups(self) -> list[str]:
|
|
221
|
+
"""List of alpm-package-groups the package base is part of."""
|
|
222
|
+
|
|
223
|
+
@groups.setter
|
|
224
|
+
def groups(self, groups: list[str]) -> None: ...
|
|
225
|
+
@property
|
|
226
|
+
def options(self) -> list["MakepkgOption"]:
|
|
227
|
+
"""The list of build tool options used when building."""
|
|
228
|
+
|
|
229
|
+
@options.setter
|
|
230
|
+
def options(self, options: list["MakepkgOption"]) -> None: ...
|
|
231
|
+
@property
|
|
232
|
+
def backups(self) -> list["RelativePath"]:
|
|
233
|
+
"""Relative paths to files in a package that should be backed up."""
|
|
234
|
+
|
|
235
|
+
@backups.setter
|
|
236
|
+
def backups(self, backups: list["RelativePath"]) -> None: ...
|
|
237
|
+
@property
|
|
238
|
+
def version(self) -> "FullVersion":
|
|
239
|
+
"""The FullVersion of the package base."""
|
|
240
|
+
|
|
241
|
+
@version.setter
|
|
242
|
+
def version(self, version: "FullVersion") -> None: ...
|
|
243
|
+
@property
|
|
244
|
+
def pgp_fingerprints(self) -> list["OpenPGPIdentifier"]:
|
|
245
|
+
"""OpenPGPIdentifiers used for the verification of upstream sources."""
|
|
246
|
+
|
|
247
|
+
@pgp_fingerprints.setter
|
|
248
|
+
def pgp_fingerprints(self, pgp_fingerprints: list["OpenPGPIdentifier"]) -> None: ...
|
|
249
|
+
@property
|
|
250
|
+
def architectures(self) -> Architectures:
|
|
251
|
+
"""Architectures of the package base."""
|
|
252
|
+
|
|
253
|
+
@architectures.setter
|
|
254
|
+
def architectures(self, architectures: Architectures) -> None: ...
|
|
255
|
+
@property
|
|
256
|
+
def architecture_properties(
|
|
257
|
+
self,
|
|
258
|
+
) -> dict[SystemArchitecture, PackageBaseArchitecture]:
|
|
259
|
+
"""Architecture specific properties.
|
|
260
|
+
|
|
261
|
+
Dict of alpm-architecture specific overrides for package relations of a
|
|
262
|
+
package base.
|
|
263
|
+
"""
|
|
264
|
+
|
|
265
|
+
@architecture_properties.setter
|
|
266
|
+
def architecture_properties(
|
|
267
|
+
self, architecture_properties: dict[SystemArchitecture, PackageBaseArchitecture]
|
|
268
|
+
) -> None: ...
|
|
269
|
+
@property
|
|
270
|
+
def dependencies(self) -> list["RelationOrSoname"]:
|
|
271
|
+
"""The list of run-time dependencies of the package base."""
|
|
272
|
+
|
|
273
|
+
@dependencies.setter
|
|
274
|
+
def dependencies(self, dependencies: list["RelationOrSoname"]) -> None: ...
|
|
275
|
+
@property
|
|
276
|
+
def optional_dependencies(self) -> list["OptionalDependency"]:
|
|
277
|
+
"""The list of optional dependencies of the package base."""
|
|
278
|
+
|
|
279
|
+
@optional_dependencies.setter
|
|
280
|
+
def optional_dependencies(
|
|
281
|
+
self, optional_dependencies: list["OptionalDependency"]
|
|
282
|
+
) -> None: ...
|
|
283
|
+
@property
|
|
284
|
+
def provides(self) -> list["RelationOrSoname"]:
|
|
285
|
+
"""The list of provisions of the package base."""
|
|
286
|
+
|
|
287
|
+
@provides.setter
|
|
288
|
+
def provides(self, provides: list["RelationOrSoname"]) -> None: ...
|
|
289
|
+
@property
|
|
290
|
+
def conflicts(self) -> list["PackageRelation"]:
|
|
291
|
+
"""The list of conflicts of the package base."""
|
|
292
|
+
|
|
293
|
+
@conflicts.setter
|
|
294
|
+
def conflicts(self, conflicts: list["PackageRelation"]) -> None: ...
|
|
295
|
+
@property
|
|
296
|
+
def replaces(self) -> list["PackageRelation"]:
|
|
297
|
+
"""The list of replacements of the package base."""
|
|
298
|
+
|
|
299
|
+
@replaces.setter
|
|
300
|
+
def replaces(self, replaces: list["PackageRelation"]) -> None: ...
|
|
301
|
+
@property
|
|
302
|
+
def check_dependencies(self) -> list["PackageRelation"]:
|
|
303
|
+
"""The list of test dependencies of the package base."""
|
|
304
|
+
|
|
305
|
+
@check_dependencies.setter
|
|
306
|
+
def check_dependencies(
|
|
307
|
+
self, check_dependencies: list["PackageRelation"]
|
|
308
|
+
) -> None: ...
|
|
309
|
+
@property
|
|
310
|
+
def make_dependencies(self) -> list["PackageRelation"]:
|
|
311
|
+
"""The list of build dependencies of the package base."""
|
|
312
|
+
|
|
313
|
+
@make_dependencies.setter
|
|
314
|
+
def make_dependencies(self, make_dependencies: list["PackageRelation"]) -> None: ...
|
|
315
|
+
@property
|
|
316
|
+
def sources(self) -> list["Source"]:
|
|
317
|
+
"""The list of sources of the package base."""
|
|
318
|
+
|
|
319
|
+
@sources.setter
|
|
320
|
+
def sources(self, sources: list["Source"]) -> None: ...
|
|
321
|
+
@property
|
|
322
|
+
def no_extracts(self) -> list[str]:
|
|
323
|
+
"""The list of sources of the package base that are not extracted."""
|
|
324
|
+
|
|
325
|
+
@no_extracts.setter
|
|
326
|
+
def no_extracts(self, no_extracts: list[str]) -> None: ...
|
|
327
|
+
@property
|
|
328
|
+
def b2_checksums(self) -> list["SkippableBlake2b512Checksum"]:
|
|
329
|
+
"""The list of Blake2 hash digests for sources of the package base."""
|
|
330
|
+
|
|
331
|
+
@b2_checksums.setter
|
|
332
|
+
def b2_checksums(
|
|
333
|
+
self, b2_checksums: list["SkippableBlake2b512Checksum"]
|
|
334
|
+
) -> None: ...
|
|
335
|
+
@property
|
|
336
|
+
def md5_checksums(self) -> list["SkippableMd5Checksum"]:
|
|
337
|
+
"""The list of MD5 hash digests for sources of the package base."""
|
|
338
|
+
|
|
339
|
+
@md5_checksums.setter
|
|
340
|
+
def md5_checksums(self, md5_checksums: list["SkippableMd5Checksum"]) -> None: ...
|
|
341
|
+
@property
|
|
342
|
+
def sha1_checksums(self) -> list["SkippableSha1Checksum"]:
|
|
343
|
+
"""The list of SHA1 hash digests for sources of the package base."""
|
|
344
|
+
|
|
345
|
+
@sha1_checksums.setter
|
|
346
|
+
def sha1_checksums(self, sha1_checksums: list["SkippableSha1Checksum"]) -> None: ...
|
|
347
|
+
@property
|
|
348
|
+
def sha224_checksums(self) -> list["SkippableSha224Checksum"]:
|
|
349
|
+
"""The list of SHA224 hash digests for sources of the package base."""
|
|
350
|
+
|
|
351
|
+
@sha224_checksums.setter
|
|
352
|
+
def sha224_checksums(
|
|
353
|
+
self, sha224_checksums: list["SkippableSha224Checksum"]
|
|
354
|
+
) -> None: ...
|
|
355
|
+
@property
|
|
356
|
+
def sha256_checksums(self) -> list["SkippableSha256Checksum"]:
|
|
357
|
+
"""The list of SHA256 hash digests for sources of the package base."""
|
|
358
|
+
|
|
359
|
+
@sha256_checksums.setter
|
|
360
|
+
def sha256_checksums(
|
|
361
|
+
self, sha256_checksums: list["SkippableSha256Checksum"]
|
|
362
|
+
) -> None: ...
|
|
363
|
+
@property
|
|
364
|
+
def sha384_checksums(self) -> list["SkippableSha384Checksum"]:
|
|
365
|
+
"""The list of SHA384 hash digests for sources of the package base."""
|
|
366
|
+
|
|
367
|
+
@sha384_checksums.setter
|
|
368
|
+
def sha384_checksums(
|
|
369
|
+
self, sha384_checksums: list["SkippableSha384Checksum"]
|
|
370
|
+
) -> None: ...
|
|
371
|
+
@property
|
|
372
|
+
def sha512_checksums(self) -> list["SkippableSha512Checksum"]:
|
|
373
|
+
"""The list of SHA512 hash digests for sources of the package base."""
|
|
374
|
+
|
|
375
|
+
@sha512_checksums.setter
|
|
376
|
+
def sha512_checksums(
|
|
377
|
+
self, sha512_checksums: list["SkippableSha512Checksum"]
|
|
378
|
+
) -> None: ...
|
|
379
|
+
def __eq__(self, other: object) -> bool: ...
|
|
380
|
+
def __str__(self) -> str: ...
|
|
381
|
+
def __repr__(self) -> str: ...
|
|
382
|
+
|
|
383
|
+
__all__ = [
|
|
384
|
+
"PackageBase",
|
|
385
|
+
"PackageBaseArchitecture",
|
|
386
|
+
]
|