Commit graph

33 commits

Author SHA1 Message Date
Yuming Zhu
87409499a3 draft builds 2024-01-05 10:00:29 +00:00
Jana Cupova
9541c2a173 importlib instead of imp
Fixes: https://pagure.io/koji/issue/2822
2021-06-02 11:19:33 +02:00
Tomas Kopecek
6ad2bccec3 plugin hooks for repo modification
Fixes: https://pagure.io/koji/issue/2636
2021-02-04 10:44:21 +01:00
Tomas Kopecek
0132313f92 replace logging.warn with warning
call is deprected in python 3.7

Fixes: https://pagure.io/koji/issue/2135
2020-04-22 13:47:15 +02:00
Yuming Zhu
cf34706f04 use Exception instead of BaseException for bare expection 2020-03-03 21:38:22 +08:00
Yuming Zhu
f1ba6cefd7 flake8: apply all rest E7 rules 2020-03-03 21:38:22 +08:00
Yuming Zhu
6ed30954b2 flake8: apply E71x rule 2020-03-03 21:38:22 +08:00
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
Yuming Zhu
97cfaa4fcf flake8: follow E265 rule 2020-03-03 21:35:08 +08:00
Yu Ming Zhu
4d29a87e9b sort imports in koji 2019-12-12 11:00:57 +00:00
Tomas Kopecek
7f6b717eb6 python-modernize -f libmodernize.fixes.fix_import 2018-07-11 17:37:39 -04:00
Mike McLean
0c8d4c8f07 implement caching in _fix_cb_args 2017-08-07 12:41:40 -04:00
Mike McLean
842754c2d3 datetime compatibility option for callbacks 2017-08-07 12:41:40 -04:00
Yuming Zhu
e64c57e866 fix StringType and itervalues in plugin and cli 2017-06-22 11:59:28 -04:00
Xibo Ning
9bf49841ad patch2 for issue 288 2017-06-20 09:32:19 -04:00
Tomas Kopecek
c02eb739aa update cli tests 2017-06-13 11:42:04 +02:00
Tomas Kopecek
b5c5756118 log failed plugin
Related: https://pagure.io/koji/issue/433
2017-06-07 14:47:47 -04:00
Tomas Kopecek
cc9fff9840 remove has_key (not working in python3) 2017-03-07 08:15:20 -05:00
Tomas Kopecek
1494301465 use new exception syntax 2017-03-02 10:52:30 -05:00
Mike McLean
b9d6948d81 add postCommit to callbacks list 2016-09-14 14:58:22 -04:00
Pavol Babincak
9e89ebb9a4 Ran reindent.py from cpython tools on all python scripts
Citing from reindent docs:

    Change Python (.py) files to use 4-space indents and no hard tab
    characters. Also trim excess spaces and tabs from ends of lines, and
    remove empty lines at the end of files.  Also ensure the last line
    ends with a newline.

Citing from PEP 8:

    Use 4 spaces per indentation level.

    Python 2 code indented with a mixture of tabs and spaces should be
    converted to using spaces exclusively.

    Don't write string literals that rely on significant trailing
    whitespace. Such trailing whitespace is visually indistinguishable
    and some editors (or more recently, reindent.py) will trim them.

Also PyLint recommends not to have trailing whitespace on any line.
2015-05-13 16:39:53 -04:00
Pavol Babincak
a80ab75b32 Make koji.plugin.export_in() decorator working
Python raised problem with local variable before:

    UnboundLocalError: local variable 'alias' referenced before
    assignment
2015-04-02 15:56:54 -04:00
Ralph Bean
2ce5ac7d39 Add new {pre,post}RPMSign plugin callbacks.
I'd like to use these in Fedora Infrastructure for the fedmsg plugin so
we can see when rawhide rpms get signed by sigul.
2014-12-12 16:23:52 -05:00
Mike Bonnet
ab53d2deb0 update copyright 2014-10-28 23:54:21 -04:00
Mike Bonnet
b5da4d0587 clean up plugin logging 2013-06-11 19:11:43 -04:00
Mike Bonnet
6bc83b6d93 callback hooks for repo events 2009-11-09 17:46:28 -05:00
Mike Bonnet
7d85a79fab remove the delete hooks, they're handled by the build state-change hooks 2009-11-09 15:57:15 -05:00
Mike Bonnet
9cad397b35 typo 2009-11-09 14:10:26 -05:00
Mike Bonnet
8d18ddbf9f callback hooks for package list actions 2009-11-09 11:08:22 -05:00
Mike Bonnet
ae953a7072 - extend the plugin system with an event-based callback infrastructure
- implement callback hooks for task state transitions
 - example echo plugin that logs all callback invocations
2009-11-09 10:13:21 -05:00
Mike McLean
389aa5ff5c basic plugin support for hub and builders 2008-10-27 12:53:01 -04:00