python-alpm 0.2.0__tar.gz → 0.2.1__tar.gz
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.
- {python_alpm-0.2.0 → python_alpm-0.2.1}/Cargo.lock +6 -6
- {python_alpm-0.2.0 → python_alpm-0.2.1}/Cargo.toml +1 -1
- python_alpm-0.2.1/PKG-INFO +117 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/pyproject.toml +12 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/CHANGELOG.md +10 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/Cargo.toml +1 -1
- python_alpm-0.2.1/python-alpm/README.md +96 -0
- python_alpm-0.2.0/PKG-INFO +0 -9
- {python_alpm-0.2.0/python-alpm → python_alpm-0.2.1}/README.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-common/CHANGELOG.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-common/Cargo.toml +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-common/README.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-common/locales/en-US/main.ftl +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-common/src/error.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-common/src/lib.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-common/src/package/input.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-common/src/package/mod.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-common/src/traits/metadata_file.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-common/src/traits/schema.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-common/src/traits.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-parsers/CHANGELOG.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-parsers/Cargo.toml +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-parsers/README.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-parsers/src/custom_ini/de.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-parsers/src/custom_ini/mod.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-parsers/src/custom_ini/parser.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-parsers/src/lib.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-parsers/src/macros.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-parsers/tests/integration.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-parsers/tests/snapshots/integration__write_ini__case_1_missing_key.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-parsers/tests/snapshots/integration__write_ini__case_2_incomplete_delimiter_1.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-parsers/tests/snapshots/integration__write_ini__case_3_incomplete_delimiter_2.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-parsers/tests/snapshots/integration__write_ini__case_4_missing_delimiter_2.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-pkgbuild/CHANGELOG.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-pkgbuild/Cargo.toml +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-pkgbuild/README.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-pkgbuild/src/bridge/mod.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-pkgbuild/src/bridge/parser.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-pkgbuild/src/error.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-pkgbuild/src/lib.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-pkgbuild/tests/test_files/normal.pkgbuild +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-pkgbuild/tests/test_files/normal.srcinfo +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/ARCHITECTURE.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/CHANGELOG.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/Cargo.toml +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/README.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/resources/specification/SRCINFO.5.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/src/cli.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/src/commands.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/src/error.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/src/lib.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/src/main.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/src/pkgbuild_bridge/error.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/src/pkgbuild_bridge/mod.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/src/pkgbuild_bridge/package.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/src/pkgbuild_bridge/package_base.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/src/schema.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/src/source_info/mod.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/src/source_info/parser.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/src/source_info/v1/merged.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/src/source_info/v1/mod.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/src/source_info/v1/package.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/src/source_info/v1/package_base.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/src/source_info/v1/writer.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct/all_cleared.pkgbuild +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct/all_cleared.srcinfo +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct/all_overrides.pkgbuild +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct/all_overrides.srcinfo +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct/custom_architecture.srcinfo +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct/full_pkgbase.pkgbuild +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct/full_pkgbase.srcinfo +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct/package_with_any_arch.pkgbuild +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct/package_with_any_arch.srcinfo +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct/pkgbase_with_any_arch.pkgbuild +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct/pkgbase_with_any_arch.srcinfo +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct/split_package.pkgbuild +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct/split_package.srcinfo +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct_snapshots/all_cleared_merged.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct_snapshots/all_cleared_source_info.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct_snapshots/all_overrides_merged.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct_snapshots/all_overrides_source_info.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct_snapshots/custom_architecture_merged.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct_snapshots/custom_architecture_source_info.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct_snapshots/full_pkgbase_merged.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct_snapshots/full_pkgbase_source_info.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct_snapshots/package_with_any_arch_merged.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct_snapshots/package_with_any_arch_source_info.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct_snapshots/pkgbase_with_any_arch_merged.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct_snapshots/pkgbase_with_any_arch_source_info.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct_snapshots/split_package_merged.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct_snapshots/split_package_source_info.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/generate_srcinfo.bash +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/integration.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_error_snapshots/invalid_checksum.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_error_snapshots/invalid_pkgbase_header_delimiter.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_error_snapshots/invalid_pkver.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_error_snapshots/invalid_property_delimiter.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_error_snapshots/missing_pkgbase.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_error_snapshots/missing_pkgname.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_error_snapshots/unexpected_pkgbase_property.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_error_snapshots/unexpected_pkgname_property.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_errors/invalid_checksum.srcinfo +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_errors/invalid_pkgbase_header_delimiter.srcinfo +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_errors/invalid_pkver.srcinfo +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_errors/invalid_property_delimiter.srcinfo +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_errors/missing_pkgbase.srcinfo +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_errors/missing_pkgname.srcinfo +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_errors/unexpected_pkgbase_property.srcinfo +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_errors/unexpected_pkgname_property.srcinfo +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_errors.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parser_whitespaces.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/pkgbuild_correct/all_cleared.pkgbuild +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/pkgbuild_correct/all_overrides.pkgbuild +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/pkgbuild_correct/full_pkgbase.pkgbuild +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/pkgbuild_correct/simple.pkgbuild +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/pkgbuild_correct.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/pkgbuild_correct_bridge_output/all_cleared_bridge.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/pkgbuild_correct_bridge_output/all_overrides_bridge.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/pkgbuild_correct_bridge_output/full_pkgbase_bridge.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/pkgbuild_correct_bridge_output/simple_bridge.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/pkgbuild_correct_snapshots/all_cleared_srcinfo.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/pkgbuild_correct_snapshots/all_overrides_srcinfo.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/pkgbuild_correct_snapshots/full_pkgbase_srcinfo.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/pkgbuild_correct_snapshots/simple_srcinfo.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/pkgbuild_invalid/cleared_architecture.pkgbuild +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/pkgbuild_invalid/cleared_array_on_single_value.pkgbuild +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/pkgbuild_invalid.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/pkgbuild_invalid_snapshots/cleared_architecture_srcinfo.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/pkgbuild_invalid_snapshots/cleared_array_on_single_value_srcinfo.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/unit_test_files/normal.pkgbuild +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/unit_test_files/normal.srcinfo +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/writer.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/CHANGELOG.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/Cargo.toml +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/README.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-architecture.7.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-comparison.7.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-db-desc.5.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-db-descv1.5.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-db-descv2.5.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-db-files.5.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-epoch.7.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-files.5.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-install-scriptlet.5.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-meta-package.7.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-package-base.7.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-package-group.7.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-package-name.7.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-package-relation.7.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-package-source-checksum.7.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-package-source.7.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-package-version.7.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-pkgrel.7.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-pkgver.7.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-repo-desc.5.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-repo-descv1.5.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-repo-descv2.5.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-repo-files.5.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-soname.7.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-sonamev1.7.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-sonamev2.7.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-source-repo.7.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm-split-package.7.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/resources/specification/alpm.7.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/checksum.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/compression.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/date.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/env.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/error.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/file_type.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/lib.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/license.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/name.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/openpgp.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/package/contents.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/package/error.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/package/file_name.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/package/mod.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/package/source.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/path.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/pkg.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/relation.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/size.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/source.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/system.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/url.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/version/base.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/version/buildtool.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/version/comparison.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/version/mod.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/version/pkg_full.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/version/pkg_generic.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/version/pkg_minimal.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/version/requirement.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/src/version/schema.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/create_error_snapshots/fail_to_create_package_file_name__case_1_version_without_pkgrel.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/create_error_snapshots/fail_to_create_package_file_name__case_2_version_with_epoch_without_pkgrel.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/from_path_snapshots/package_file_name_from_path_fails__case_1_no_file_name.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/integration.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/parse_error_snapshots/fail_to_parse_package_filename__case_01_no_name.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/parse_error_snapshots/fail_to_parse_package_filename__case_02_no_name.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/parse_error_snapshots/fail_to_parse_package_filename__case_03_invalid_version.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/parse_error_snapshots/fail_to_parse_package_filename__case_04_no_version.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/parse_error_snapshots/fail_to_parse_package_filename__case_05_no_version_name_with_dashes.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/parse_error_snapshots/fail_to_parse_package_filename__case_06_invalid_architecture.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/parse_error_snapshots/fail_to_parse_package_filename__case_07_no_architecture.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/parse_error_snapshots/fail_to_parse_package_filename__case_08_no_architecture_name_with_dashes.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/parse_error_snapshots/fail_to_parse_package_filename__case_09_invalid_package_marker.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/parse_error_snapshots/fail_to_parse_package_filename__case_10_no_package_marker.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/parse_error_snapshots/fail_to_parse_package_filename__case_11_no_package_marker_name_with_dashes.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/parse_error_snapshots/fail_to_parse_package_filename__case_11_no_tar_ending.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/parse_error_snapshots/fail_to_parse_package_filename__case_12_invalid_compression.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/parse_error_snapshots/fail_to_parse_package_filename__case_12_no_package_marker_name_with_dashes.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/parse_error_snapshots/fail_to_parse_package_filename__case_13_invalid_compression.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/parse_error_snapshots/fail_to_parse_package_filename__case_13_invalid_dashes.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/parse_error_snapshots/fail_to_parse_package_filename__case_14_invalid_dashes.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/parse_error_snapshots/fail_to_parse_package_filename__case_15_invalid_dashes.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/parse_error_snapshots/fail_to_parse_package_filename__case_15_no_dashes.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-types/tests/parse_error_snapshots/fail_to_parse_package_filename__case_16_no_dashes.snap +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python/alpm/__init__.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python/alpm/_native.pyi +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python/alpm/alpm_srcinfo/__init__.pyi +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python/alpm/alpm_srcinfo/error.pyi +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python/alpm/alpm_srcinfo/schema.pyi +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python/alpm/alpm_srcinfo/source_info/__init__.pyi +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python/alpm/alpm_srcinfo/source_info/v1/__init__.pyi +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python/alpm/alpm_srcinfo/source_info/v1/merged.pyi +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python/alpm/alpm_srcinfo/source_info/v1/package.pyi +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python/alpm/alpm_srcinfo/source_info/v1/package_base.pyi +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python/alpm/alpm_types.pyi +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python/alpm/py.typed +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python/alpm/type_aliases.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/ARCHITECTURE.md +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/cliff.toml +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/python/alpm/__init__.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/python/alpm/_native.pyi +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/python/alpm/alpm_srcinfo/__init__.pyi +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/python/alpm/alpm_srcinfo/error.pyi +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/python/alpm/alpm_srcinfo/schema.pyi +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/python/alpm/alpm_srcinfo/source_info/__init__.pyi +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/python/alpm/alpm_srcinfo/source_info/v1/__init__.pyi +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/python/alpm/alpm_srcinfo/source_info/v1/merged.pyi +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/python/alpm/alpm_srcinfo/source_info/v1/package.pyi +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/python/alpm/alpm_srcinfo/source_info/v1/package_base.pyi +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/python/alpm/alpm_types.pyi +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/python/alpm/py.typed +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/python/alpm/type_aliases.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/lib.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/macros.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/srcinfo/error.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/srcinfo/mod.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/srcinfo/schema.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/srcinfo/source_info/mod.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/srcinfo/source_info/v1/merged.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/srcinfo/source_info/v1/mod.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/srcinfo/source_info/v1/package.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/srcinfo/source_info/v1/package_base.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/types/checksum.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/types/env.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/types/error.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/types/license.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/types/mod.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/types/openpgp.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/types/path.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/types/relation.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/types/requirement.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/types/source.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/types/system.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/types/url.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/src/types/version.rs +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/tests/conftest.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/tests/srcinfo/test_alpm_srcinfo_imports.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/tests/srcinfo/test_package.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/tests/srcinfo/test_package_base.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/tests/srcinfo/test_schema.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/tests/srcinfo/test_source_info.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/tests/srcinfo/test_source_info_v1.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/tests/test_alpm_imports.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/tests/types/test_alpm_types_imports.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/tests/types/test_checksum.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/tests/types/test_env.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/tests/types/test_license.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/tests/types/test_openpgp.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/tests/types/test_path.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/tests/types/test_relation.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/tests/types/test_requirement.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/tests/types/test_system.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/tests/types/test_url.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/tests/types/test_version.py +0 -0
- {python_alpm-0.2.0 → python_alpm-0.2.1}/python-alpm/uv.lock +0 -0
|
@@ -74,7 +74,7 @@ version = "0.1.0"
|
|
|
74
74
|
|
|
75
75
|
[[package]]
|
|
76
76
|
name = "alpm-lint"
|
|
77
|
-
version = "0.1.
|
|
77
|
+
version = "0.1.1"
|
|
78
78
|
dependencies = [
|
|
79
79
|
"alpm-buildinfo",
|
|
80
80
|
"alpm-common",
|
|
@@ -140,7 +140,7 @@ dependencies = [
|
|
|
140
140
|
|
|
141
141
|
[[package]]
|
|
142
142
|
name = "alpm-package"
|
|
143
|
-
version = "0.
|
|
143
|
+
version = "0.3.0"
|
|
144
144
|
dependencies = [
|
|
145
145
|
"alpm-buildinfo",
|
|
146
146
|
"alpm-common",
|
|
@@ -220,7 +220,7 @@ version = "0.1.0"
|
|
|
220
220
|
|
|
221
221
|
[[package]]
|
|
222
222
|
name = "alpm-soname"
|
|
223
|
-
version = "0.
|
|
223
|
+
version = "0.2.0"
|
|
224
224
|
dependencies = [
|
|
225
225
|
"alpm-compress",
|
|
226
226
|
"alpm-mtree",
|
|
@@ -492,9 +492,9 @@ dependencies = [
|
|
|
492
492
|
|
|
493
493
|
[[package]]
|
|
494
494
|
name = "cc"
|
|
495
|
-
version = "1.2.
|
|
495
|
+
version = "1.2.44"
|
|
496
496
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
497
|
-
checksum = "
|
|
497
|
+
checksum = "37521ac7aabe3d13122dc382493e20c9416f299d2ccd5b3a5340a2570cdeb0f3"
|
|
498
498
|
dependencies = [
|
|
499
499
|
"find-msvc-tools",
|
|
500
500
|
"jobserver",
|
|
@@ -2053,7 +2053,7 @@ dependencies = [
|
|
|
2053
2053
|
|
|
2054
2054
|
[[package]]
|
|
2055
2055
|
name = "python-alpm"
|
|
2056
|
-
version = "0.2.
|
|
2056
|
+
version = "0.2.1"
|
|
2057
2057
|
dependencies = [
|
|
2058
2058
|
"alpm-common",
|
|
2059
2059
|
"alpm-srcinfo",
|
|
@@ -21,7 +21,7 @@ alpm-common = { path = "./alpm-common", version = "0.1.3" }
|
|
|
21
21
|
alpm-compress = { path = "./alpm-compress", version = "0.1.0" }
|
|
22
22
|
alpm-lint-config = { path = "./alpm-lint-config", version = "0.1.0" }
|
|
23
23
|
alpm-mtree = { path = "./alpm-mtree", version = "0.2.3" }
|
|
24
|
-
alpm-package = { path = "./alpm-package", version = "0.
|
|
24
|
+
alpm-package = { path = "./alpm-package", version = "0.3.0" }
|
|
25
25
|
alpm-parsers = { path = "./alpm-parsers", version = "0.3.1" }
|
|
26
26
|
alpm-pkgbuild = { path = "./alpm-pkgbuild", version = "0.2.1" }
|
|
27
27
|
alpm-pkginfo = { path = "./alpm-pkginfo", version = "0.4.0" }
|
|
@@ -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
|
+
|
|
@@ -4,15 +4,27 @@ requires = ["maturin>=1.8,<2.0"]
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
classifiers = [
|
|
7
|
+
"Intended Audience :: Developers",
|
|
8
|
+
"Operating System :: POSIX :: Linux",
|
|
7
9
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
8
10
|
"Programming Language :: Python :: Implementation :: PyPy",
|
|
9
11
|
"Programming Language :: Rust",
|
|
10
12
|
]
|
|
13
|
+
description = "Python bindings for the Rust-based ALPM project"
|
|
11
14
|
dynamic = ["version"]
|
|
15
|
+
keywords = ["alpm", "archlinux", "packaging", "srcinfo"]
|
|
12
16
|
license = "Apache-2.0 OR MIT"
|
|
13
17
|
name = "python-alpm"
|
|
18
|
+
readme = "README.md"
|
|
14
19
|
requires-python = ">=3.10"
|
|
15
20
|
|
|
21
|
+
[project.urls]
|
|
22
|
+
Changelog = "https://alpm.archlinux.page/python-alpm/CHANGELOG.html"
|
|
23
|
+
Documentation = "https://alpm.archlinux.page/pdoc/"
|
|
24
|
+
Homepage = "https://alpm.archlinux.page/python-alpm/"
|
|
25
|
+
Issues = "https://gitlab.archlinux.org/archlinux/alpm/alpm/-/issues"
|
|
26
|
+
Repository = "https://gitlab.archlinux.org/archlinux/alpm/alpm"
|
|
27
|
+
|
|
16
28
|
[tool.maturin]
|
|
17
29
|
features = ["pyo3/extension-module"]
|
|
18
30
|
module-name = "alpm._native"
|
|
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.2.1] - 2025-10-31
|
|
9
|
+
|
|
10
|
+
### Other
|
|
11
|
+
|
|
12
|
+
- *(metadata)* Add further PyPI classifiers
|
|
13
|
+
- *(metadata)* Add README.md (in sdist and for PyPI)
|
|
14
|
+
- *(metadata)* Add project URLs
|
|
15
|
+
- *(metadata)* Add relevant keywords for PyPI
|
|
16
|
+
- *(metadata)* Add a description for PyPI
|
|
17
|
+
|
|
8
18
|
## [0.2.0] - 2025-10-30
|
|
9
19
|
|
|
10
20
|
### Added
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# python-alpm
|
|
2
|
+
|
|
3
|
+
Python bindings for the **A**rch **L**inux **P**ackage **M**anagement (ALPM) project.
|
|
4
|
+
|
|
5
|
+
We are currently awaiting decision from PyPI maintainers to allow us to publish this package under the name `alpm`.
|
|
6
|
+
Until then, we are using the name `python-alpm`.
|
|
7
|
+
You can view the support ticket [here](https://github.com/pypi/support/issues/7813).
|
|
8
|
+
|
|
9
|
+
## Documentation
|
|
10
|
+
|
|
11
|
+
Latest documentation is available at <https://alpm.archlinux.page/pdoc>.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
pip install python-alpm
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
|
|
21
|
+
### Validating and comparing versions
|
|
22
|
+
|
|
23
|
+
```pycon
|
|
24
|
+
>>> from alpm.alpm_types import PackageVersion, PackageRelease, FullVersion, SchemaVersion
|
|
25
|
+
|
|
26
|
+
>>> full_version = FullVersion(pkgver=PackageVersion('0.1.0alpha'), pkgrel=PackageRelease(minor=1))
|
|
27
|
+
>>> full_version
|
|
28
|
+
FullVersion(pkgver=PackageVersion('0.1.0alpha'), pkgrel=PackageRelease(major=0, minor=1))
|
|
29
|
+
|
|
30
|
+
>>> PackageVersion('1.0.1') > full_version.pkgver
|
|
31
|
+
True
|
|
32
|
+
|
|
33
|
+
>>> version_one = SchemaVersion.from_str('1.0.0')
|
|
34
|
+
>>> version_one
|
|
35
|
+
SchemaVersion(major=1, minor=0, patch=0, pre='', build='')
|
|
36
|
+
|
|
37
|
+
>>> version_one == SchemaVersion(major=1)
|
|
38
|
+
True
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Parsing .SRCINFO
|
|
43
|
+
|
|
44
|
+
```pycon
|
|
45
|
+
>>> from alpm.alpm_srcinfo import SourceInfoV1
|
|
46
|
+
>>> from alpm.alpm_types import Architecture
|
|
47
|
+
|
|
48
|
+
>>> srcinfo = SourceInfoV1.from_file("../alpm-srcinfo/tests/correct/all_overrides.srcinfo")
|
|
49
|
+
|
|
50
|
+
>>> srcinfo.base
|
|
51
|
+
PackageBase(name='example', version=FullVersion(pkgver=PackageVersion('0.1.0'), pkgrel=PackageRelease(major=1), epoch=1))
|
|
52
|
+
|
|
53
|
+
>>> srcinfo.base.architectures
|
|
54
|
+
Architectures([Architecture('x86_64'), Architecture('aarch64')])
|
|
55
|
+
|
|
56
|
+
>>> srcinfo.packages
|
|
57
|
+
[Package(name='example')]
|
|
58
|
+
|
|
59
|
+
>>> srcinfo.packages_for_architecture(Architecture('aarch64'))
|
|
60
|
+
[MergedPackage(architecture=Architecture('aarch64'), name='example', version=FullVersion(pkgver=PackageVersion('0.1.0'), pkgrel=PackageRelease(major=1), epoch=1))]
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Working with package metadata
|
|
65
|
+
|
|
66
|
+
```pycon
|
|
67
|
+
>>> from alpm.alpm_srcinfo.source_info.v1.package import Package, Override
|
|
68
|
+
>>> from alpm.alpm_types import License
|
|
69
|
+
|
|
70
|
+
>>> pkg = Package("testpkg")
|
|
71
|
+
|
|
72
|
+
>>> pkg.description = Override("A test package")
|
|
73
|
+
>>> pkg.description
|
|
74
|
+
Override(value='A test package')
|
|
75
|
+
|
|
76
|
+
>>> pkg.licenses = Override([License("MIT"), License("custom-license")])
|
|
77
|
+
>>> pkg.licenses
|
|
78
|
+
Override(value=[License('MIT'), License('custom-license')])
|
|
79
|
+
|
|
80
|
+
>>> {str(lic): lic.is_spdx for lic in pkg.licenses.value}
|
|
81
|
+
{'MIT': True, 'custom-license': False}
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## Contributing
|
|
86
|
+
|
|
87
|
+
Please refer to the [contribution guidelines] to learn how to contribute to this project.
|
|
88
|
+
|
|
89
|
+
## License
|
|
90
|
+
|
|
91
|
+
This project can be used under the terms of the [Apache-2.0] or [MIT].
|
|
92
|
+
Contributions to this project, unless noted otherwise, are automatically licensed under the terms of both of those licenses.
|
|
93
|
+
|
|
94
|
+
[contribution guidelines]: ../CONTRIBUTING.md
|
|
95
|
+
[Apache-2.0]: ../LICENSES/Apache-2.0.txt
|
|
96
|
+
[MIT]: ../LICENSES/MIT.txt
|
python_alpm-0.2.0/PKG-INFO
DELETED
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct/custom_architecture.srcinfo
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct/package_with_any_arch.pkgbuild
RENAMED
|
File without changes
|
{python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct/package_with_any_arch.srcinfo
RENAMED
|
File without changes
|
{python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct/pkgbase_with_any_arch.pkgbuild
RENAMED
|
File without changes
|
{python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct/pkgbase_with_any_arch.srcinfo
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/correct_snapshots/all_cleared_merged.snap
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_error_snapshots/invalid_pkver.snap
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_errors/invalid_checksum.srcinfo
RENAMED
|
File without changes
|
|
File without changes
|
{python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_errors/invalid_pkver.srcinfo
RENAMED
|
File without changes
|
|
File without changes
|
{python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_errors/missing_pkgbase.srcinfo
RENAMED
|
File without changes
|
{python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/parse_errors/missing_pkgname.srcinfo
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/pkgbuild_correct/all_cleared.pkgbuild
RENAMED
|
File without changes
|
{python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/pkgbuild_correct/all_overrides.pkgbuild
RENAMED
|
File without changes
|
{python_alpm-0.2.0 → python_alpm-0.2.1}/alpm-srcinfo/tests/pkgbuild_correct/full_pkgbase.pkgbuild
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|