python-alpm 0.2.0__cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl → 0.2.1__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/_native.abi3.so +0 -0
- python_alpm-0.2.1.dist-info/METADATA +117 -0
- python_alpm-0.2.1.dist-info/RECORD +17 -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/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/source_info/__pycache__/__init__.cpython-313.pyc +0 -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
- python_alpm-0.2.0.dist-info/METADATA +0 -9
- python_alpm-0.2.0.dist-info/RECORD +0 -28
- {python_alpm-0.2.0.dist-info → python_alpm-0.2.1.dist-info}/WHEEL +0 -0
alpm/_native.abi3.so
CHANGED
|
Binary file
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: python-alpm
|
|
3
|
+
Version: 0.2.1
|
|
4
|
+
Classifier: Intended Audience :: Developers
|
|
5
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
6
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
7
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
8
|
+
Classifier: Programming Language :: Rust
|
|
9
|
+
Summary: Python bindings for the Rust-based ALPM project
|
|
10
|
+
Keywords: alpm,archlinux,packaging,srcinfo
|
|
11
|
+
Home-Page: https://alpm.archlinux.page
|
|
12
|
+
License-Expression: Apache-2.0 OR MIT
|
|
13
|
+
Requires-Python: >=3.10
|
|
14
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
15
|
+
Project-URL: Changelog, https://alpm.archlinux.page/python-alpm/CHANGELOG.html
|
|
16
|
+
Project-URL: Documentation, https://alpm.archlinux.page/pdoc/
|
|
17
|
+
Project-URL: Homepage, https://alpm.archlinux.page/python-alpm/
|
|
18
|
+
Project-URL: Issues, https://gitlab.archlinux.org/archlinux/alpm/alpm/-/issues
|
|
19
|
+
Project-URL: Repository, https://gitlab.archlinux.org/archlinux/alpm/alpm
|
|
20
|
+
|
|
21
|
+
# python-alpm
|
|
22
|
+
|
|
23
|
+
Python bindings for the **A**rch **L**inux **P**ackage **M**anagement (ALPM) project.
|
|
24
|
+
|
|
25
|
+
We are currently awaiting decision from PyPI maintainers to allow us to publish this package under the name `alpm`.
|
|
26
|
+
Until then, we are using the name `python-alpm`.
|
|
27
|
+
You can view the support ticket [here](https://github.com/pypi/support/issues/7813).
|
|
28
|
+
|
|
29
|
+
## Documentation
|
|
30
|
+
|
|
31
|
+
Latest documentation is available at <https://alpm.archlinux.page/pdoc>.
|
|
32
|
+
|
|
33
|
+
## Installation
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
pip install python-alpm
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Examples
|
|
40
|
+
|
|
41
|
+
### Validating and comparing versions
|
|
42
|
+
|
|
43
|
+
```pycon
|
|
44
|
+
>>> from alpm.alpm_types import PackageVersion, PackageRelease, FullVersion, SchemaVersion
|
|
45
|
+
|
|
46
|
+
>>> full_version = FullVersion(pkgver=PackageVersion('0.1.0alpha'), pkgrel=PackageRelease(minor=1))
|
|
47
|
+
>>> full_version
|
|
48
|
+
FullVersion(pkgver=PackageVersion('0.1.0alpha'), pkgrel=PackageRelease(major=0, minor=1))
|
|
49
|
+
|
|
50
|
+
>>> PackageVersion('1.0.1') > full_version.pkgver
|
|
51
|
+
True
|
|
52
|
+
|
|
53
|
+
>>> version_one = SchemaVersion.from_str('1.0.0')
|
|
54
|
+
>>> version_one
|
|
55
|
+
SchemaVersion(major=1, minor=0, patch=0, pre='', build='')
|
|
56
|
+
|
|
57
|
+
>>> version_one == SchemaVersion(major=1)
|
|
58
|
+
True
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Parsing .SRCINFO
|
|
63
|
+
|
|
64
|
+
```pycon
|
|
65
|
+
>>> from alpm.alpm_srcinfo import SourceInfoV1
|
|
66
|
+
>>> from alpm.alpm_types import Architecture
|
|
67
|
+
|
|
68
|
+
>>> srcinfo = SourceInfoV1.from_file("../alpm-srcinfo/tests/correct/all_overrides.srcinfo")
|
|
69
|
+
|
|
70
|
+
>>> srcinfo.base
|
|
71
|
+
PackageBase(name='example', version=FullVersion(pkgver=PackageVersion('0.1.0'), pkgrel=PackageRelease(major=1), epoch=1))
|
|
72
|
+
|
|
73
|
+
>>> srcinfo.base.architectures
|
|
74
|
+
Architectures([Architecture('x86_64'), Architecture('aarch64')])
|
|
75
|
+
|
|
76
|
+
>>> srcinfo.packages
|
|
77
|
+
[Package(name='example')]
|
|
78
|
+
|
|
79
|
+
>>> srcinfo.packages_for_architecture(Architecture('aarch64'))
|
|
80
|
+
[MergedPackage(architecture=Architecture('aarch64'), name='example', version=FullVersion(pkgver=PackageVersion('0.1.0'), pkgrel=PackageRelease(major=1), epoch=1))]
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Working with package metadata
|
|
85
|
+
|
|
86
|
+
```pycon
|
|
87
|
+
>>> from alpm.alpm_srcinfo.source_info.v1.package import Package, Override
|
|
88
|
+
>>> from alpm.alpm_types import License
|
|
89
|
+
|
|
90
|
+
>>> pkg = Package("testpkg")
|
|
91
|
+
|
|
92
|
+
>>> pkg.description = Override("A test package")
|
|
93
|
+
>>> pkg.description
|
|
94
|
+
Override(value='A test package')
|
|
95
|
+
|
|
96
|
+
>>> pkg.licenses = Override([License("MIT"), License("custom-license")])
|
|
97
|
+
>>> pkg.licenses
|
|
98
|
+
Override(value=[License('MIT'), License('custom-license')])
|
|
99
|
+
|
|
100
|
+
>>> {str(lic): lic.is_spdx for lic in pkg.licenses.value}
|
|
101
|
+
{'MIT': True, 'custom-license': False}
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Contributing
|
|
106
|
+
|
|
107
|
+
Please refer to the [contribution guidelines] to learn how to contribute to this project.
|
|
108
|
+
|
|
109
|
+
## License
|
|
110
|
+
|
|
111
|
+
This project can be used under the terms of the [Apache-2.0] or [MIT].
|
|
112
|
+
Contributions to this project, unless noted otherwise, are automatically licensed under the terms of both of those licenses.
|
|
113
|
+
|
|
114
|
+
[contribution guidelines]: ../CONTRIBUTING.md
|
|
115
|
+
[Apache-2.0]: ../LICENSES/Apache-2.0.txt
|
|
116
|
+
[MIT]: ../LICENSES/MIT.txt
|
|
117
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
alpm/__init__.py,sha256=VdNfeuoEmDNm8gxzuFz1B4WtO6EOZuUlHBN1yIvUReU,232
|
|
2
|
+
alpm/_native.abi3.so,sha256=Km19moe7GM4Wj-Jy3jFbLpuat8QuVHOQ3D7mlb9RQoQ,1556968
|
|
3
|
+
alpm/_native.pyi,sha256=qtRhGpgRq5TKWrdiHGexaJU0OhHPaZ5pIvQJrBOwgWs,135
|
|
4
|
+
alpm/alpm_srcinfo/__init__.pyi,sha256=uU9wwNCwTElNb4G0cnsGPYgdA4KHkz-AN_lhVk1KG1A,541
|
|
5
|
+
alpm/alpm_srcinfo/error.pyi,sha256=6XNyfzOVKcn2W52wybJSxZ6gSus_g_PdiHaClP7JaMs,201
|
|
6
|
+
alpm/alpm_srcinfo/schema.pyi,sha256=Y88imZSs_MguGUSN_WX0wjiiwIQmDSpu--SfARuUCCc,1982
|
|
7
|
+
alpm/alpm_srcinfo/source_info/__init__.pyi,sha256=oiOX3PSzxxsusuaeDbFy4xF4SagZYO6D4v5fAGjEub4,1552
|
|
8
|
+
alpm/alpm_srcinfo/source_info/v1/__init__.pyi,sha256=jauHv2XtubSxCfFbtGulcshPovxYL_VMxJ6P4nN_eiA,2859
|
|
9
|
+
alpm/alpm_srcinfo/source_info/v1/merged.pyi,sha256=jNub3dw_m2CmFxxqdpolB5R9U4vlG2z_O7e1Px0yGbw,5796
|
|
10
|
+
alpm/alpm_srcinfo/source_info/v1/package.pyi,sha256=BkFWLsLO-mG9c-taNbUBKO-EPpl35glA1n2FLjJwAZ0,8636
|
|
11
|
+
alpm/alpm_srcinfo/source_info/v1/package_base.pyi,sha256=Jce3oUsIvxP2lRxuu2nEC659sblUSA_g64F6B2wL3J0,13599
|
|
12
|
+
alpm/alpm_types.pyi,sha256=w3SbmrMCOVlA3KTixYuKS4InAHqIXoG6wCvd-0MHXjQ,39871
|
|
13
|
+
alpm/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
|
+
alpm/type_aliases.py,sha256=lNxU475OCuCxEPKA4RKT2FhbJWBBMaztP3ExcD4Qbv8,3227
|
|
15
|
+
python_alpm-0.2.1.dist-info/METADATA,sha256=B2JvSpgn1wGsMR8gGhopoTqVngErwDWu12FOMb0nzCQ,3763
|
|
16
|
+
python_alpm-0.2.1.dist-info/WHEEL,sha256=sHl2MPySRQtLBS4t9I9tl1bAeFFBhTGABHYdwnegkVM,130
|
|
17
|
+
python_alpm-0.2.1.dist-info/RECORD,,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: python-alpm
|
|
3
|
-
Version: 0.2.0
|
|
4
|
-
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
5
|
-
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
6
|
-
Classifier: Programming Language :: Rust
|
|
7
|
-
Home-Page: https://alpm.archlinux.page
|
|
8
|
-
License-Expression: Apache-2.0 OR MIT
|
|
9
|
-
Requires-Python: >=3.10
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
alpm/__init__.py,sha256=VdNfeuoEmDNm8gxzuFz1B4WtO6EOZuUlHBN1yIvUReU,232
|
|
2
|
-
alpm/__pycache__/__init__.cpython-313.pyc,sha256=qh0kdrhGd1seA17RjZ6C5Fz-fPOUV7wEoomPMVAEPCg,423
|
|
3
|
-
alpm/__pycache__/alpm_types.cpython-313.pyc,sha256=wo-vdoOt1JlEAEXUyUkU947rlaTi38a702k6y4JMfsA,68125
|
|
4
|
-
alpm/__pycache__/type_aliases.cpython-313.pyc,sha256=yQddzWsmJVOzlINRGOHKEq1uvhq9rxJinZ5ROsCDahY,2061
|
|
5
|
-
alpm/_native.abi3.so,sha256=0eeHF9h339MlmGsBEUYQ-IUPn7-RaPu0aX82kuPKupk,1556968
|
|
6
|
-
alpm/_native.pyi,sha256=qtRhGpgRq5TKWrdiHGexaJU0OhHPaZ5pIvQJrBOwgWs,135
|
|
7
|
-
alpm/alpm_srcinfo/__init__.pyi,sha256=uU9wwNCwTElNb4G0cnsGPYgdA4KHkz-AN_lhVk1KG1A,541
|
|
8
|
-
alpm/alpm_srcinfo/__pycache__/__init__.cpython-313.pyc,sha256=VG9pXptXWC-KLzS_Z5SMg6KVLu9L_MQ1drFpzGp2Aac,663
|
|
9
|
-
alpm/alpm_srcinfo/__pycache__/error.cpython-313.pyc,sha256=7gsaWWoDD4hqO-MQIsRgQa0hUqCjiAVfLQALJSp_RYM,592
|
|
10
|
-
alpm/alpm_srcinfo/__pycache__/schema.cpython-313.pyc,sha256=qG3xoeZC67-T9a6MQWcu8TWqa8-gySM1_zUp_1zl5LI,3014
|
|
11
|
-
alpm/alpm_srcinfo/error.pyi,sha256=6XNyfzOVKcn2W52wybJSxZ6gSus_g_PdiHaClP7JaMs,201
|
|
12
|
-
alpm/alpm_srcinfo/schema.pyi,sha256=Y88imZSs_MguGUSN_WX0wjiiwIQmDSpu--SfARuUCCc,1982
|
|
13
|
-
alpm/alpm_srcinfo/source_info/__init__.pyi,sha256=oiOX3PSzxxsusuaeDbFy4xF4SagZYO6D4v5fAGjEub4,1552
|
|
14
|
-
alpm/alpm_srcinfo/source_info/__pycache__/__init__.cpython-313.pyc,sha256=hgWa-UpcWqvLT8M8S05gahT5w_u3Qhy6ftSrtmM_NTY,1920
|
|
15
|
-
alpm/alpm_srcinfo/source_info/v1/__init__.pyi,sha256=jauHv2XtubSxCfFbtGulcshPovxYL_VMxJ6P4nN_eiA,2859
|
|
16
|
-
alpm/alpm_srcinfo/source_info/v1/__pycache__/__init__.cpython-313.pyc,sha256=4Y1MDNPlBXeIEo3o0l7mwUzNleUlAlAavt_UrINCI6s,4003
|
|
17
|
-
alpm/alpm_srcinfo/source_info/v1/__pycache__/merged.cpython-313.pyc,sha256=MPPQjf2pknGP1LJm491LOASiKMxpPbreY63a3aH6W6c,9556
|
|
18
|
-
alpm/alpm_srcinfo/source_info/v1/__pycache__/package.cpython-313.pyc,sha256=MI3ZOyFkqQ6oVp9nsAIQS4OUe5Zj0bcNzSRDXZvVwIw,13508
|
|
19
|
-
alpm/alpm_srcinfo/source_info/v1/__pycache__/package_base.cpython-313.pyc,sha256=-y2Ny6ZerN5AzE-x6QT1bKch9bJiKoOcUv_xbTh6UWA,21659
|
|
20
|
-
alpm/alpm_srcinfo/source_info/v1/merged.pyi,sha256=jNub3dw_m2CmFxxqdpolB5R9U4vlG2z_O7e1Px0yGbw,5796
|
|
21
|
-
alpm/alpm_srcinfo/source_info/v1/package.pyi,sha256=BkFWLsLO-mG9c-taNbUBKO-EPpl35glA1n2FLjJwAZ0,8636
|
|
22
|
-
alpm/alpm_srcinfo/source_info/v1/package_base.pyi,sha256=Jce3oUsIvxP2lRxuu2nEC659sblUSA_g64F6B2wL3J0,13599
|
|
23
|
-
alpm/alpm_types.pyi,sha256=w3SbmrMCOVlA3KTixYuKS4InAHqIXoG6wCvd-0MHXjQ,39871
|
|
24
|
-
alpm/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
|
-
alpm/type_aliases.py,sha256=lNxU475OCuCxEPKA4RKT2FhbJWBBMaztP3ExcD4Qbv8,3227
|
|
26
|
-
python_alpm-0.2.0.dist-info/METADATA,sha256=cS_XtidAZS9ACGyiWcKl8Rw1BF999UCoXpqOr9y5v4g,338
|
|
27
|
-
python_alpm-0.2.0.dist-info/WHEEL,sha256=sHl2MPySRQtLBS4t9I9tl1bAeFFBhTGABHYdwnegkVM,130
|
|
28
|
-
python_alpm-0.2.0.dist-info/RECORD,,
|
|
File without changes
|