Yuming Zhu
cf34706f04
use Exception instead of BaseException for bare expection
2020-03-03 21:38:22 +08:00
Yuming Zhu
c5db34a8e1
flake8: apply E501 with max-line-length=99
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
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
5b83c682e4
remove unused imports
2019-12-12 11:00:58 +00:00
Yu Ming Zhu
8c21aa7e6d
sort imports in cli
2019-12-12 11:00:57 +00:00
Pat Riehecky
0c15978110
cli: add option for custom cert location
2019-07-11 17:54:01 -04:00
Mike McLean
8834bb6d6b
shorten help text
2019-07-11 15:18:15 -04:00
Yu Ming Zhu
1ec14ec5dc
adjust cli plugin config description
2019-07-11 15:18:15 -04:00
Yuming Zhu
ded43dec53
cli: also load plugins from ~/.koji/plugins
...
- add plugin_path in koji.conf
- add `--plugin-paths` in cli arguments
fixes : #887
2019-07-11 15:18:15 -04:00
Tomas Kopecek
15421a5637
put fix_pyver before printing command help
...
If pyver forces koji to reload under different interpreter, it could
happen, that different set of plugins is available. In such case help
printed under original interpreter can be misleading.
Fixes: https://pagure.io/koji/issue/1276
2019-06-14 16:15:08 -04:00
Daniel Rodríguez
2f503070c3
Replace references to latest-pkg with latest-build
...
Replace latest-pkg with latest-build in common commands and
documentation. References to latest-pkg are removed where
latest-build is also present. Also, command description for
latest-build is updated to match the current one.
2019-04-10 17:23:18 -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
Franz Chih-Ping Hsieh
f356ac4f17
force using python2 to run script
...
Fixes #945
2018-05-24 00:01:30 -04:00
Tomas Kopecek
1b07d95ccf
print debug and error messages to stderr
...
Fixes: https://pagure.io/koji/issue/671
2018-04-24 17:01:51 -04:00
Tomas Kopecek
64202285b2
don't fail on CLI plugins without docstrings
...
Related: https://pagure.io/koji/issue/644
2017-10-30 21:36:18 -04:00
Mike McLean
ea89245352
allow profiles to request a specific python version
2017-09-18 16:26:55 -04:00
Ville Skyttä
10bc242c32
Spelling fixes
2017-07-30 12:49:19 +03:00
Tomas Kopecek
2f42c28286
python 2.6 doesn't know named components
2017-06-27 15:45:20 +02:00
Yuming Zhu
6fe90a170d
unit tests for cli.load_plugins
2017-06-22 11:59:28 -04:00
Yuming Zhu
617241bcc1
use six.class_types instead of ClassType, TypeType in cli
2017-06-22 11:59:28 -04:00
Yuming Zhu
e64c57e866
fix StringType and itervalues in plugin and cli
2017-06-22 11:59:28 -04:00
Tomas Kopecek
519f792ce2
strip .py from module name
2017-06-16 10:55:08 +02:00
Tomas Kopecek
df6aadec59
remove CLI plugins config options
2017-06-13 14:53:39 +02:00
Tomas Kopecek
c15c553048
fix entry path
2017-06-13 11:42:04 +02:00
Tomas Kopecek
37bcef025c
cleanup after automatic split
2017-06-13 11:42:04 +02:00
Tomas Kopecek
81b2b36d07
apply split
2017-06-13 11:20:38 +02:00
Tomas Kopecek
c5f910ffd9
list-channels CLI command
...
Related: https://pagure.io/koji/issue/437
2017-06-07 14:51:28 -04:00
Tomas Kopecek
e5ac8557e9
Fix traceback for missing update
2017-06-06 10:41:13 -04:00
Tomas Kopecek
0f6a9fdcf3
honor --quiet in list-tagged
...
Related: https://pagure.io/koji/issue/452
2017-06-06 10:38:46 -04:00
Tomas Kopecek
c0fccab2b7
correct sort() usage
2017-06-01 09:39:24 +02:00
Tomas Kopecek
d625c0aa4d
remove changes not relevant to cli
2017-06-01 09:39:24 +02:00
Tomas Kopecek
d2ab86584a
explicit unicode in cli
2017-06-01 09:39:24 +02:00
Tomas Kopecek
449390cff9
cli-related test fixes
2017-06-01 09:39:23 +02:00
Tomas Kopecek
644792ff76
replace urlgrabber with pycurl
2017-06-01 09:39:23 +02:00
Tomas Kopecek
5abd334e85
python-modernize -f libmodernize.fixes.fix_map
2017-06-01 09:39:23 +02:00
Tomas Kopecek
62288597f1
python-modernize -f libmodernize.fixes.fix_filter
2017-06-01 09:39:22 +02:00
Tomas Kopecek
a4a1536a03
python-modernize -f libmodernize.fixes.fix_file
2017-06-01 09:39:22 +02:00
Tomas Kopecek
68bf19c739
python-modernize -f libmodernize.fixes.fix_dict_six
2017-06-01 09:39:22 +02:00
Tomas Kopecek
8567044a20
python-modernize -f libmodernize.fixes.fix_classic_division
2017-06-01 09:39:22 +02:00
Tomas Kopecek
f6e5bd11f3
python-modernize -f lib2to3.fixes.fix_numliterals
2017-06-01 09:39:22 +02:00
Tomas Kopecek
1220008f8f
python-modernize -f lib2to3.fixes.fix_except
2017-06-01 09:39:22 +02:00
Tomas Kopecek
b1da150c01
python-modernize -f libmodernize.fixes.fix_imports_six
2017-06-01 09:39:21 +02:00
Tomas Kopecek
0eaf3349c4
python-modernize -f libmodernize.fixes.fix_zip
2017-06-01 09:39:21 +02:00
Tomas Kopecek
7f946b37be
python-modernize -f libmodernize.fixes.fix_xrange_six
2017-06-01 09:39:21 +02:00
Mike McLean
d01346796b
handle task fault results in download-logs
...
Fixes #423
https://pagure.io/koji/issue/423
2017-05-19 10:14:23 -04:00
Brendan Reilly
6c69a6f5cb
Added hostinfo command to cli
2017-05-01 14:30:54 -04:00
Andrew Jorgensen
619a101e73
Optional JSON output for 'koji call'
...
Python pprint is easy enough for a developer to read, but harder to parse.
2017-04-25 11:29:24 -04:00