Skip to main content

My packaging utilites.

Project description

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 `

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

packaging_utils-0.2.1.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

packaging_utils-0.2.1-py2.py3-none-any.whl (23.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file packaging_utils-0.2.1.tar.gz.

File metadata

  • Download URL: packaging_utils-0.2.1.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.2 pkginfo/1.5.0.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.1 CPython/3.8.13

File hashes

Hashes for packaging_utils-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3108ec89a0591f8b6d86b7ba13f0cfc14747738138b0aeb59a99a4f1fb5f6c9d
MD5 b4a84108e92e54d6dbf211d660f1055e
BLAKE2b-256 6171c0e25a94ffe576e384e730e1120f3aaba67fa503b83f8ff0f44fb4c4165b

See more details on using hashes here.

File details

Details for the file packaging_utils-0.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: packaging_utils-0.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.2 pkginfo/1.5.0.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.1 CPython/3.8.13

File hashes

Hashes for packaging_utils-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a59638d4862091e684201ab12270c84f78ced99d1fc739c75f91e71aaeca7ed4
MD5 d1d75a8b35554b2092bb4f95a2019e72
BLAKE2b-256 2a83bc01c67aa3b6ed6e7b579cdc54306de2b5cb0671c0823bd4d70f8ce06bd8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page