Tomas Kopecek
8e61dc7c56
python-modernize -f libmodernize.fixes.fix_classic_division
2018-07-11 17:37:40 -04:00
Tomas Kopecek
2eff45f763
Drop pre-2.6 compat function koji.util._relpath
...
Fixes: https://pagure.io/koji/issue/818
2018-03-08 10:23:44 -05:00
Mike McLean
8a4c75ee7f
rename fixPrint->_fix_print and add a docstring
2017-12-06 13:32:51 +08:00
Yuming Zhu
3464adae2e
cli: fix changelog encode for PY3
...
relates [issue#577](https://pagure.io/koji/issue/577 )
2017-12-06 13:32:29 +08:00
Mike McLean
af71756fa7
fix exception syntax in apply_argspec
2017-11-09 17:40:52 -05:00
Mike McLean
d8132543c5
move apply_argspec to koji.util
2017-11-09 17:40:52 -05:00
Franz Chih-Ping Hsieh
efe68e54df
- add unit test for koji/util: (coverage 58%->100%)
...
- minor fix: check if input string time is valid
2017-11-07 09:58:21 -05:00
Mike McLean
6bb32b699e
handle DateTime objects in encode_datetime
2017-11-02 15:59:18 -04:00
Mike McLean
80ca9ff294
handle callbacks depth-first in DataWalker
2017-10-11 16:36:40 -04:00
Mike McLean
842754c2d3
datetime compatibility option for callbacks
2017-08-07 12:41:40 -04:00
Tomas Kopecek
709cf93b75
fix adler32 iterations
2017-06-01 09:39:24 +02:00
Tomas Kopecek
7ff24d717d
fix session
2017-06-01 09:39:23 +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
6a0a5a232b
python-modernize -f libmodernize.fixes.fix_basestring
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
7f946b37be
python-modernize -f libmodernize.fixes.fix_xrange_six
2017-06-01 09:39:21 +02: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
ab99443414
Update exception syntax in rmtree()
2016-12-19 12:31:01 -05:00
Mike McLean
d4590637a1
replace old rmtree with the new one
2016-12-19 12:28:10 -05:00
Mike McLean
8f42fda97d
keep going on errors
2016-12-19 12:28:10 -05:00
Mike McLean
949f23dd7b
add a note
2016-12-19 12:28:10 -05:00
Mike McLean
e58850eb05
first stab at rmtree for long filenames
2016-12-19 12:28:10 -05:00
Tomas Kopecek
f4ede5339f
Update http:// to https:// in code
...
Where https is working, code was updated to use it.
2016-12-19 11:49:11 -05:00
Yuming Zhu
de5a34288a
ut: koji.utils - cases for related Maven build utils
2016-11-21 10:52:32 -05:00
Mike McLean
a1c8808544
ImportErrors are uncovered
2016-10-25 17:16:12 -04:00
Tomas Kopecek
c37effcbd7
remove unused variables/methods
2016-10-04 15:48:54 +02:00
Tomas Kopecek
921258749a
removed unused imports
2016-10-04 15:48:54 +02:00
Mohan Boddu
dd82e9cea2
Remove all bad-whitespaces
...
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2016-08-29 14:26:32 -04:00
Mike McLean
0e7c45a544
update raise syntax in safer_move()
2016-07-26 16:20:54 -04:00
Mike McLean
720c647959
just wrap shutil.move for now
2016-07-26 16:20:54 -04:00
Mike McLean
03c3be7125
stub
2016-07-26 16:20:54 -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
Mike Bonnet
ab53d2deb0
update copyright
2014-10-28 23:54:21 -04:00
Mike Bonnet
7a6544a53d
fix a few errors revealed by pylint
2014-10-28 23:54:21 -04:00
Mike Bonnet
1e8b7211ee
add --ini and --section options to maven-build and wrapper-rpm
...
Support use of a .ini file to pass parameters to maven-build and wrapper-rpm.
2014-10-28 23:54:20 -04:00
Mike Bonnet
d60bf0529e
move maven-chain parsing into util so it can be used by other utilities
2014-10-28 23:54:20 -04:00
Mike Bonnet
e626fca4d9
support running a sequence of Maven builds in dependency order
...
The new "koji chainmaven" command allows Maven builds to be run in depdencency order,
without needing to wait for repo regens. A config file specifies the parameters and
dependencies for each build in the sequence. Each build is launched as soon as all
dependent builds are complete, and is able to reference the output of all of its
dependencies. If the build source URL and parameters match the latest build of the
same package in the destination tag, the build will not be re-run.
2014-06-13 11:23:37 -04:00
Mike McLean
9e9549d994
new "fast upload" mechanism
2012-11-06 14:39:49 -05:00
Mike McLean
c2ad66babe
make HiddenValue() idempotent
2012-07-12 14:06:43 -04:00
Mike McLean
227cd057b2
fix bugs in our relpath backport
2012-07-03 17:03:21 -04:00
Mike McLean
6296043fe4
faster argcheck
2012-05-22 14:36:19 -04:00
Mike McLean
51ec9b8b50
call_with_argcheck utility function
2012-05-22 14:36:13 -04:00
Mike McLean
54c0ed8438
Support wsgi in koji-hub and koji-web
...
- mod_python still supported, but deprecated
- mod_wsgi is the default
- koji-web now configured via web.conf
- new wsgi-friendly publisher for koji-web
- koji-web now has logging
2012-05-10 17:27:40 -04:00
Mike McLean
cf83a7b97b
backport relpath
2012-04-02 17:24:35 -04:00
Mike McLean
ef9923a679
allow setting rlimits in kojid
2012-03-28 16:47:19 -04:00
Mike McLean
4e3e65c11f
kojid literal_task_arches option
2012-01-20 11:35:31 -05:00