Tomas Kopecek
8cc8b12a9a
remove deprecated koji.util.relpath
...
Fixes: https://pagure.io/koji/issue/834
2019-08-12 17:59:26 -04:00
Tomas Kopecek
dfbe322222
deprecate sha1/md5_constructor from koji.util
...
These functions are now fully provided by hashlib. Commit removes their
usage from koji's codebase and leaves deprecation message in lib.
Final removal from lib is scheduled to 1.21.
Fixes: https://pagure.io/koji/issue/1487
2019-08-12 16:07:55 -04:00
Mike McLean
71bc4106b4
new base64 helper functions
2019-03-04 09:28:39 -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
Yu Ming Zhu
200951c9d6
fix zip for python3
2019-01-28 08:46:11 -05:00
Mike McLean
4fa2901720
cleanup
...
unused var
whitespace
missing import
2019-01-15 10:51:19 -05:00
Tomas Kopecek
4191840bd7
check_sigmd5 for kojivmd
2019-01-15 10:51:19 -05:00
Tomas Kopecek
9963877545
move move_and_symlink to koji.util
2018-11-28 16:27:30 -05:00
Tomas Kopecek
3cc443df97
Fix isinstance with lists
...
Fixes: https://pagure.io/koji/issue/1011
2018-08-08 11:34:39 -04:00
Tomas Kopecek
caae1a0a8b
workaround unnecessary list conversions
2018-07-11 17:37:40 -04:00
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