Skip to main content

Packaging utils

A bunch of scripts I use for keeping track of packages I maintain and for work with rpm dependency trees.

Some of them are focused on openSUSE, but feel free to adapt them to you OS or even open pull requests!

Tools

  • check_anitya: Checks latest version on anitya and compares it with locally available version.

  • license_rewriter: Rewrites RPM specfiles to use %license macro (not needed anymore).

  • branch-and-fix-license: Branches a package at the OpenBuildService, fixes %license and submits the packages (not needed anymore).

  • changelog_extractor: Extracts the changelog from a file in an archive, shows the changes sinnce the last version found in the changes file and converts it to the RPM changelog format.

  • librariesio-latest-version: Retrieves the latest version from libraries.io (currently only PyPI is supported) for the given software. The name of the software can be detected from the current working directory.

  • specfile-version-updater: Updates the version in the spec file, remove the old tarball and add the new one.

  • update-packages: If called with the name of a package, it searches for it in $PACKAGING_DIR (defaults to ~/packaging/), excluding home:*-directories, calls specfile-version-updater, tries to build it, calls changelog-extractor, applies it, and commits the updated package.

Configuration

Some scripts require a configuration. The file used is .config/packaging_utils.ini.

### For librariesio-latest-version / specfile-version-updater

You can get your API key here: https://libraries.io/account

`ini [libraries.io] api_key = INSERT API KEY HERE `

Metadata

Release files for packaging-utils 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for packaging-utils 0.2.5
File Size Uploaded Provenance
packaging_utils-0.2.5.tar.gz 22.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for packaging-utils 0.2.5
File Interpreter ABI Platform
packaging_utils-0.2.5-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 53.3 kB

Release files / packaging_utils-0.2.5.tar.gz

Download URL packaging_utils-0.2.5.tar.gz
Size 22.9 kB
Tags Source
SHA-256 checksum
How to use checksums
cb4ac56f6f1beb66362879e64e606317e316a5d9d20ba3b348c899c2518297c2
BLAKE2b-256 checksum
How to use checksums
02794ac75d2f7834815dd496567b0f5eb6631a64cabdc6ee5d8d40555b62a0f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.11.3 pkginfo/1.5.0.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.13

Release files / packaging_utils-0.2.5-py2.py3-none-any.whl

Download URL packaging_utils-0.2.5-py2.py3-none-any.whl
Size 30.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
504155f1d3f86817e7c98c146d78d6361efdc41da87840c5a810fd9fc2dd727a
BLAKE2b-256 checksum
How to use checksums
bec10c93ab514814adf88945da683b0d383982514935906b2038dcb3f2b5e0c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.11.3 pkginfo/1.5.0.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.13

Security for packaging-utils 0.2.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page