Yuming Zhu
0f727a2ab4
flake8: apply E3 rules
2020-03-03 21:38:22 +08:00
Yuming Zhu
05340b146b
flake8: apply E2 rules except E266
2020-03-03 21:38:21 +08:00
Yuming Zhu
ce1f9928af
flake8: apply E1 rules
2020-03-03 21:38:21 +08:00
Yu Ming Zhu
49504073b1
refine import style
2020-03-03 21:35:08 +08:00
Yuming Zhu
97cfaa4fcf
flake8: follow E265 rule
2020-03-03 21:35:08 +08:00
Yuming Zhu
a5ff1f0d68
insert path before import kojihub
...
fix theproblem introduced by PR #763
this doesn't impact hub functionality, and is only related to some special cases like running runroot_hub script alone
2020-02-15 08:19:22 +00:00
Tomas Kopecek
7158c85241
announce utf-8 coding
2020-02-18 11:20:51 +01:00
Tomas Kopecek
b445a6f614
remove unused imports
2020-02-12 13:16:28 +01:00
Tomas Kopecek
b485dfeb55
fix basetag argument
2020-02-12 13:16:28 +01:00
Tomas Kopecek
b9e0597ccd
Merge sidetag plugin
...
Originally living in https://pagure.io/sidetag-koji-plugin
Fixes: https://pagure.io/koji/issue/1955
2020-02-12 13:16:28 +01:00
Tomas Kopecek
e016e6624d
Emit user in PackageListChange messages
...
Fixes: https://pagure.io/koji/issue/1035
2020-02-04 09:22:43 +01:00
Yu Ming Zhu
90cc76573f
sort imports in plugins
2019-12-12 11:00:56 +00:00
Yuming Zhu
7a6ebc851f
improve test and clean targets in Makefiles
2019-11-27 15:42:30 +01:00
Tomas Kopecek
37a88310c2
allow comma/space delimiter for allowed_methods
...
Example config says, that comma is allowed, but it was not true.
Fixes: https://pagure.io/koji/issue/1744
2019-11-08 09:47:06 -05:00
Yuming Zhu
b2b8d5f9cc
strict per item in config_files
2019-10-15 09:14:16 +02:00
Yu Ming Zhu
4c1928f377
extract read_config_files util for config parsing
2019-10-15 09:14:16 +02:00
Mike McLean
e5b36d8f21
hub plugins: use joinpath instead of os.path.join
2019-10-09 08:41:15 -04:00
Tomas Kopecek
167eba3394
fail runroot task on non-existing tag
...
Fixes: https://pagure.io/koji/issue/1139
2019-05-22 13:12:19 -04:00
Tomas Kopecek
70968aba33
Remove python2.4 OptionParse fix
...
Fixes: https://pagure.io/koji/issue/1341
2019-03-20 16:09:44 -04:00
Mike McLean
89b6c01c47
fix unit test for runroot cli plugin
2019-03-04 09:57:15 -05:00
Mike McLean
2b5f953430
drop unused import in runroot plugin
2019-03-04 09:57:15 -05:00
Mike McLean
b4b6e2e6cc
simpler function for dumping bytes to stdout
2019-03-04 09:57:15 -05:00
Tomas Kopecek
a4d41bd078
wrapper function for writing to stdout
2019-02-19 17:29:25 -05:00
Tomas Kopecek
f6125e2a03
handle byte-compiling for fedora
2019-02-17 22:33:52 -05:00
Mike McLean
3703c24495
add KOJI_MINIMAL flag to plugins Makefile
2019-02-17 22:33:52 -05:00
Mike McLean
6e57936e95
stop blocking py3 builder plugins in Makefile
2019-02-17 22:33:52 -05:00
Yu Ming Zhu
dc208d0555
fix invokings and unittests
2019-02-17 21:26:13 -05:00
Yu Ming Zhu
9ddae41877
using ConfigParser.read_file for PY3
2019-02-17 21:26:13 -05:00
Tomas Kopecek
009081c0fc
bundle rpmUtils.arch
2019-02-12 16:09:19 -05:00
Tomas Kopecek
d3766c19b5
replace obsoleted libs
2019-02-12 16:06:00 -05:00
Tomas Kopecek
715b40d6b9
spec changes for py3 hub
...
Fixes: https://pagure.io/koji/issue/905
2019-02-05 16:46:32 +01:00
Franz Chih-Ping Hsieh
42f5988dc3
use macro to support RHEL8 build
...
Related: #986
2019-01-28 06:06:50 -05:00
Tomas Kopecek
ccdb8ac34c
Use python2/3 instead of python in Makefile/spec
...
Fixes: https://pagure.io/koji/issue/1018
2019-01-28 06:06:50 -05:00
Tomas Kopecek
17db100db5
few sort speedups
...
Fixes: https://pagure.io/koji/issue/963
2018-12-04 00:05:26 -05:00
Tomas Kopecek
3e37644f25
remove old messagebus plugin
...
There is no more known user. If you need messaging functionality, you
could migrate to protonmsg plugin.
Fixes: https://pagure.io/koji/issue/878
2018-12-03 23:49:37 -05:00
Tomas Kopecek
caae1a0a8b
workaround unnecessary list conversions
2018-07-11 17:37:40 -04:00
Tomas Kopecek
be535c2854
python-modernize -f libmodernize.fixes.fix_imports_six
2018-07-11 17:37:39 -04:00
Tomas Kopecek
7f6b717eb6
python-modernize -f libmodernize.fixes.fix_import
2018-07-11 17:37:39 -04:00
Tomas Kopecek
bcee24e50c
python-modernize -f libmodernize.fixes.fix_dict_six
2018-07-11 17:37:39 -04:00
Tomas Kopecek
c68396c059
Use unittest2 for rhel6 compatibility
...
Fixes: https://pagure.io/koji/issue/830
2018-06-07 09:39:39 -04:00
Tomas Kopecek
d0238943be
Allow t use new/old-chroot in runroot
...
Fixes: https://pagure.io/koji/issue/772
2018-04-18 18:02:54 -04:00
Mike McLean
91b306e108
Avoid failing at import time if krbV module is missing
...
Several parts of Koji already handled this absence gracefully. This change
extends that behavior to all places where krbV is imported.
2018-04-02 16:38:27 -04:00
Tomas Kopecek
5712c8efb6
Don't raise error on unserializable data
2018-03-21 15:08:26 -04:00
Tomas Kopecek
3bfcc6a66e
json serialize additional types in protonmsg
...
Fixes: https://pagure.io/koji/issue/741
2018-03-21 15:08:26 -04:00
Mike McLean
8e4df0db11
fix runroot output on py3
2018-03-08 10:15:08 -05:00
Mike McLean
30749fa2d0
add internal_dev_setup option to runroot plugin
2018-02-28 08:19:29 -05:00
Tomas Kopecek
eaa158ab51
honour runroot --quiet for old-style call
...
Fixes: https://pagure.io/koji/issue/807
2018-02-19 12:26:45 -05:00
Yuming Zhu
4dd529c6e6
use hasPerm to check permission in save_failed_tree
...
fixes #709
2017-11-17 15:56:39 +08:00
Tomas Kopecek
379ec8ae63
python-modernize -f lib2to3.fixes.file . -w
2017-10-31 16:05:16 +01:00
Tomas Kopecek
5b23fb1629
consolidate safe_rmtree, rmtree and shutil.rmtree
...
shutil.rmtree should be avoided in almost all cases
safe_rmtree has its usage in tasks module, but innards are replaced with
koji.util.rmtree, so we don't have two implementations of same task
Related: https://pagure.io/koji/issue/648
2017-10-30 12:09:04 -04:00