Commit graph

132 commits

Author SHA1 Message Date
44fe639e8a Merge branch 'lorenz-at-mpcdf-master' 2018-07-26 17:12:40 +08:00
bb34014185 Merge branch 'master' of https://github.com/lorenz-at-mpcdf/obs-service-set_version into lorenz-at-mpcdf-master 2018-07-26 17:12:14 +08:00
Björn Geuken
d5a0904491
Merge pull request #56 from bgeuken/update_readme
Add python-flake8 to test suite package list
2018-06-07 14:55:05 +02:00
Björn Geuken
24b7df54f0
Merge pull request #55 from bgeuken/fix_test_failures
Fix indentation of condition
2018-06-02 11:09:06 +02:00
Björn Geuken
07f9f78f4a Add python-flake8 to test suite package list
Linters are part of the test suite and should be installed as well.
2018-06-01 09:35:52 +02:00
Björn Geuken
89516a06bd Fix indentation of condition
This caused the test suite to fail because of linting issues:

  set_version:135:80: E501 line too long (110 > 79 characters)
  Makefile:13: recipe for target 'test' failed
  make: *** [test] Error 1
2018-06-01 09:26:03 +02:00
Olaf Hering
676ef62e01
Fix basename to match documentation (#54)
The docs for "basename" say:
"Limit version detection to files which start with given name."

Adjust the code to behave as documented, match only files that start
with "basename" and end with ".obsinfo".

Signed-off-by: Olaf Hering <olaf@aepfle.de>
2018-05-29 10:44:36 +02:00
Adrian Schröter
0a1c5f0690
Merge pull request #53 from bluca/flake8
Add build-dependency on flake8 to fix Debian builds
2018-02-20 12:41:47 +01:00
Luca Boccassi
5d2f90b2a6 Add build-dependency on flake8 to fix Debian builds 2018-02-16 17:54:52 +00:00
Frank Schreiner
9e7e99a5ac
Merge pull request #43 from openSUSE/fix_42
Fix #42
2017-12-11 13:06:13 +01:00
Frank Schreiner
5fabceedf0
code cleanup and some refactoring
* code cleanup and some refactoring to come closer to pylint tested scripts
* additional comment for testing in README.md
2017-12-08 11:49:29 +01:00
Frank Schreiner
08557242e0
cli options --debug and --regex
* --debug is useful for local debugging - no param
* --regex can be used on server side and locally - param included
2017-12-08 11:11:47 +01:00
Frank Schreiner
6fabe6473e
new targets (test/clean) for Makefile 2017-12-08 11:09:54 +01:00
Frank Schreiner
71cebb7301
initial .gitignore 2017-12-08 11:08:44 +01:00
Dirk Mueller
a1e8588f19
Merge pull request #52 from toabctl/fix-py3-tests
Fix py3 tests
2017-12-05 13:07:38 +01:00
Thomas Bechtold
c08e94ecc8 Mention that tests may take some time in README.md 2017-12-05 08:28:02 +01:00
Thomas Bechtold
3b6cc191d7 Fix pip/zypper tests for python3
The __cmp__() method is no longer valid for comparison in python3.
2017-12-05 08:27:57 +01:00
Frank Schreiner
77c36b0e15
Merge pull request #51 from M0ses/fix_unicode_problem
enforce files to be decoded as UTF-8
2017-12-04 16:51:36 +01:00
Frank Schreiner
b2927f1189
enforce files to be decoded as UTF-8 2017-12-01 21:49:20 +01:00
Dirk Mueller
3bccb1b1a1
Merge pull request #49 from takeda/patch-1
Don't let version check get beyond directory boundary
2017-11-30 22:52:14 +01:00
Dirk Mueller
cf6dd15811
Merge pull request #39 from kstreitova/master
Slightly reorganize README.md file
2017-11-30 22:51:20 +01:00
Derek Kulinski
1c6b1531e0
Don't let version check get beyond path boundary
With archive containing files like "druid-0.9.2/extensions/druid-avro-extensions/avro-1.7.7.jar" set_version incorrectly guessed "1.7.7.jar" as the version instead of "0.9.2".
2017-11-15 15:43:33 -08:00
Frank Schreiner
4e230f00d2
Merge pull request #46 from openSUSE/fix_locale
Reverting patch for setlocale as it breaks in containers
2017-11-06 10:15:46 +01:00
Frank Schreiner
98641aeb28
added gitignore 2017-11-06 10:08:16 +01:00
Frank Schreiner
4b038f9ca4
added target 'clean' in Makefile 2017-11-06 10:07:49 +01:00
Frank Schreiner
0951f7c142
Added new target 'test' to Makefile 2017-11-06 09:57:33 +01:00
Frank Schreiner
0341caee98
fix flake8 error 'do not use bare except' 2017-11-06 09:52:36 +01:00
Frank Schreiner
67175bacdd
Reverting patch for setlocale as it breaks in containers 2017-11-06 09:32:37 +01:00
Adrian Schröter
b2bbe4efb4 workaround for python3 locale problems in factory 2017-10-30 16:57:46 +01:00
Adrian Schröter
360f08d45e add a hint to flake8 2017-10-13 09:18:11 +02:00
Adrian Schröter
fbdca66e7c satisfy flake8 2017-10-13 09:17:27 +02:00
Adrian Schröter
3cd89e9bfa skip also sha256sums check for Arch 2017-10-12 18:22:35 +02:00
Thomas Bechtold
29500853ab Merge pull request #45 from toabctl/simplify-pip-versions
Simplify the pip version handling
2017-09-19 14:25:06 +02:00
Thomas Bechtold
586b879838 travis: Test python 3.6
Remove python 3.3 and 3.4 testing.
2017-09-07 15:34:49 +02:00
Thomas Bechtold
e20530df8b travis: Do not use "--use-mirrors" when using pip
The option is no longer available.
2017-09-07 15:33:51 +02:00
Thomas Bechtold
9e7f62b324 Simplify the pip version handling
Reduce code for version handling. Also align with other tools like
renderspec and obs-service-python-requires. Both use this schema for
pip versions.
2017-09-07 15:33:47 +02:00
Frank Schreiner
42f2336511 Merge pull request #40 from bluca/debian_non_native
Avoid half-converting Debian native pkgs to non-native pkgs
2017-07-19 08:47:17 +02:00
Luca Boccassi
f8a5535417 Avoid half-converting Debian native pkgs to non-native pkgs
Newer versions of dpkg-buildpackages are more strict in checking that
the Debian package format is consistent.
Always appending a -0 to the version causes a native package, which
must not have a - in the version, to fail to build.
Append -0 conditionally on a simple check: if the original version
has a - character then it's non-native and it's safe to add -0.

In order to do this check a new version detection static method is
added, to parse the .dsc file for the Version tag.
2017-04-05 11:53:52 +01:00
Frank Schreiner
3400eb450b
make flake8 happy again 2017-04-04 22:09:32 +02:00
Frank Schreiner
bf1d8d02ac
strip \n from version in obsinfo 2017-04-04 21:56:49 +02:00
Kristýna Streitová
a959521ccd Slightly reorganize README.md file 2017-03-17 12:54:38 +01:00
Adrian Schröter
d2e983f302 Merge pull request #27 from jengelh/master
Add support for Collax build recipes
2017-03-02 09:46:00 +01:00
Adrian Schröter
a9da303a8e this is a pain without value... 2017-03-02 09:30:53 +01:00
Adrian Schröter
e4a7f25d0d Satisfy flake8 2017-03-02 09:10:16 +01:00
Adrian Schröter
a42c3ebe3b read version from .obsinfo file if available 2017-03-02 08:59:40 +01:00
Adrian Schröter
259e7f6b61 add a error message when not being able to detect the version 2017-02-28 15:11:38 +01:00
Adrian Schröter
22a86c7d70 satisfy flake8 2017-01-13 14:17:58 +01:00
Adrian Schröter
a9f6aef3ba support obscpio archives 2017-01-13 14:04:50 +01:00
Lorenz Hüdepohl
b51ef67fef Support Python 2.6 for SLES-11 SP4
Some small compatibility fixes that let set_version run with the ancient
Python 2.6 available on SLES-11 SP4
2016-06-14 11:51:58 +02:00
Adrian Schröter
c928f99931 do not strip release number in debian, but setting it back
to 0 like we do for rpm. otherwise dpg tools will just fail with unknown
format
2016-04-26 17:50:57 +02:00