Metadata-Version: 2.1
Name: packaging-utils
Version: 0.2.1
Summary: My packaging utilites.
Home-page: UNKNOWN
Maintainer: Sebastian Wagner
Maintainer-email: sebix@sebix.at
License: ISC
Keywords: packaging update check anitya release-monitoring opensuse
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: License :: OSI Approved :: ISC License (ISCL)
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: System :: Archiving :: Packaging
Requires-Python: >=3.6
License-File: COPYING

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
```


