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/, 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
Built Distribution
File details
Details for the file packaging_utils-0.2.0.tar.gz
.
File metadata
- Download URL: packaging_utils-0.2.0.tar.gz
- Upload date:
- Size: 17.2 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 728ae1963a3d59df818a14f90eb7e52ec0c73cc61cea98fe0aae0e11eeb3137e |
|
MD5 | f0a641cf50e9b66008fde9807c26224e |
|
BLAKE2b-256 | 3003ee6cbe1fba9b5185952d9350b58aa5757e7ba20d889f55dcada49271e6cc |
File details
Details for the file packaging_utils-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: packaging_utils-0.2.0-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e416d74392f4d59b26c809e6a93e724d48b65839b08ae9e0a5ecb28b89fe5438 |
|
MD5 | be6812406c0a9d508a2e52d239a5087c |
|
BLAKE2b-256 | a14883625a798bdadd5e2e5e9cdd537d498a97be68141fa1aa2585d81b57081a |