GithubHelp home page GithubHelp logo

sebix / packaging-utils Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 200 KB

A bunch of scripts I use for keeping track of packages I maintain

License: ISC License

Python 97.82% Shell 2.18%
rpm opensuse release-monitoring librariesio specfile openbuildservice

packaging-utils's Introduction

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

[libraries.io]
api_key = INSERT API KEY HERE

packaging-utils's People

Contributors

sebix avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

pombredanne

packaging-utils's Issues

passive total changelog: get rid of empty sections

The log of python-passivetotal can have sections like

#### Bug Fixes

[ none ]

we need to ignore the [ none ] (seem to be the case partially already) and the complete bug-fixes section be be removed as well

changelog extractor: zc.buildout format

does not work currently:

Change History
**************

2.13.2 (2019-07-03)
===================

- Fixed DeprecationWarning on python 3.7: "'U' mode is deprecated".


2.13.1 (2019-01-29)
===================

- Documentation update for the new ``buildout query`` command.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.