/obs-service-set_version

An OBS source service: Update spec file version

Primary LanguagePython

set_version (OBS source service) Build Status

This service updates a RPM spec or Debian changelog according to the existing files. The service can be used in combination with other services like download_files or tar_scm. This is the git repository for openSUSE:Tools/obs-service-set_version. The authoritative source is https://github.com/openSUSE/obs-service-set_version

Dependencies

Install the following deps:

zypper in python-packaging

Test suite

To run the full testsuite, some dependencies are needed:

zypper in devscripts dpkg

If the dependencies are not installed, some tests are skipped. zypper itself is also needed for the tests with python packages and PEP440 compatible versions.

To run the testsuite, execute:

python -m unittest discover tests/

The testrun may take some time. Don't forget to run also

flake8 set_version tests/