Hello community,
here is the log from the commit of package python-python-afl for
openSUSE:Factory checked in at 2020-10-15 13:51:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-afl (Old)
and /work/SRC/openSUSE:Factory/.python-python-afl.new.3486 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-afl"
Thu Oct 15 13:51:03 2020 rev:6 rq:841818 version:0.7.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-python-afl/python-python-afl.changes
2020-05-23 17:28:13.115509000 +0200
+++
/work/SRC/openSUSE:Factory/.python-python-afl.new.3486/python-python-afl.changes
2020-10-15 13:51:13.301319982 +0200
@@ -1,0 +2,8 @@
+Wed Oct 7 19:44:11 UTC 2020 - Sebastian Wagner <[email protected]>
+
+- update to version 0.7.3:
+ * Improve the build system:
+ + Declare build-dependencies (as per PEP-518).
+ * Improve the test suite.
+
+-------------------------------------------------------------------
Old:
----
python-afl-0.7.2.tar.gz
New:
----
python-afl-0.7.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-python-afl.spec ++++++
--- /var/tmp/diff_new_pack.xzPd9K/_old 2020-10-15 13:51:14.121320325 +0200
+++ /var/tmp/diff_new_pack.xzPd9K/_new 2020-10-15 13:51:14.121320325 +0200
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-python-afl
-Version: 0.7.2
+Version: 0.7.3
Release: 0
Summary: American fuzzy lop fork server and instrumentation for
pure-Python code
License: MIT
@@ -27,7 +27,7 @@
URL: https://jwilk.net/software/python-afl
Source:
https://files.pythonhosted.org/packages/source/p/python-afl/python-afl-%{version}.tar.gz
# PATCH-FIX-OPENSUSE
-Patch0:
https://github.com/jwilk/python-afl/compare/%{version}...sebix:%{version}-fix-setup-tests.patch#/Use-setuptools-and-use-test-command-for-setup.patch
+Patch0:
https://github.com/jwilk/python-afl/compare/%{version}...sebix:0.7.2-fix-setup-tests.patch#/Use-setuptools-and-use-test-command-for-setup.patch
BuildRequires: %{python_module Cython >= 0.19}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
++++++ python-afl-0.7.2.tar.gz -> python-afl-0.7.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-afl-0.7.2/MANIFEST.in
new/python-afl-0.7.3/MANIFEST.in
--- old/python-afl-0.7.2/MANIFEST.in 2018-11-27 23:26:46.000000000 +0100
+++ new/python-afl-0.7.3/MANIFEST.in 2020-10-03 18:04:24.000000000 +0200
@@ -6,4 +6,5 @@
include doc/*
include private/*
include py-afl-*
+include pyproject.toml
recursive-include tests *.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-afl-0.7.2/PKG-INFO
new/python-afl-0.7.3/PKG-INFO
--- old/python-afl-0.7.2/PKG-INFO 2019-02-15 15:38:22.000000000 +0100
+++ new/python-afl-0.7.3/PKG-INFO 2020-10-06 20:22:16.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: python-afl
-Version: 0.7.2
+Version: 0.7.3
Summary: American Fuzzy Lop fork server and instrumentation for pure-Python
code
Home-page: http://jwilk.net/software/python-afl
Author: Jakub Wilk
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-afl-0.7.2/afl.pyx new/python-afl-0.7.3/afl.pyx
--- old/python-afl-0.7.2/afl.pyx 2018-11-27 23:26:46.000000000 +0100
+++ new/python-afl-0.7.3/afl.pyx 2019-03-23 16:55:51.000000000 +0100
@@ -27,7 +27,7 @@
American Fuzzy Lop fork server and instrumentation for pure-Python code
'''
-__version__ = '0.7.2'
+__version__ = '0.7.3'
cdef object os, signal, struct, sys, warnings
import os
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-afl-0.7.2/doc/LICENSE
new/python-afl-0.7.3/doc/LICENSE
--- old/python-afl-0.7.2/doc/LICENSE 2019-01-29 17:05:37.000000000 +0100
+++ new/python-afl-0.7.3/doc/LICENSE 2020-08-13 10:19:59.000000000 +0200
@@ -1,4 +1,4 @@
-Copyright © 2013-2019 Jakub Wilk <[email protected]>
+Copyright © 2013-2020 Jakub Wilk <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-afl-0.7.2/doc/README
new/python-afl-0.7.3/doc/README
--- old/python-afl-0.7.2/doc/README 2019-02-13 17:48:59.000000000 +0100
+++ new/python-afl-0.7.3/doc/README 2020-02-17 16:25:12.000000000 +0100
@@ -53,7 +53,7 @@
* Use *py-afl-fuzz* instead of *afl-fuzz*::
- $ py-afl-fuzz [options] -- /path/to/fuzzed/python/script [...]
+ $ py-afl-fuzz [options] -- /path/to/fuzzed/python/script [...]
* The instrumentation is a bit slow at the moment,
so you might want to enable the dumb mode (``-n``),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-afl-0.7.2/doc/changelog
new/python-afl-0.7.3/doc/changelog
--- old/python-afl-0.7.2/doc/changelog 2019-02-15 15:31:24.000000000 +0100
+++ new/python-afl-0.7.3/doc/changelog 2020-10-06 20:12:40.000000000 +0200
@@ -1,3 +1,11 @@
+python-afl (0.7.3) unstable; urgency=low
+
+ * Improve the build system:
+ + Declare build-dependencies (as per PEP-518).
+ * Improve the test suite.
+
+ -- Jakub Wilk <[email protected]> Tue, 06 Oct 2020 20:12:39 +0200
+
python-afl (0.7.2) unstable; urgency=low
* Document that multi-threaded code is not supported.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-afl-0.7.2/private/build-and-test
new/python-afl-0.7.3/private/build-and-test
--- old/python-afl-0.7.2/private/build-and-test 2018-11-27 23:26:46.000000000
+0100
+++ new/python-afl-0.7.3/private/build-and-test 2020-08-13 10:19:59.000000000
+0200
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright © 2015-2018 Jakub Wilk <[email protected]>
+# Copyright © 2015-2020 Jakub Wilk <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the “Software”), to deal
@@ -50,7 +50,7 @@
[ -z $opt_build ] ||
printf '%s\n' "$@" \
| xargs -P"$opt_jobs" -t -I'{python}' env '{python}' setup.py build
--build-lib 'build/{python}'
-cd tests
+cd ./tests
export PATH="$PWD/..:$PATH"
printf '%s\n' "$@" \
| xargs -t -I'{python}' env PYTHONPATH="$PWD/../build/{python}" '{python}' -c
'import nose; nose.main()' --verbose
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-afl-0.7.2/private/check-rst
new/python-afl-0.7.3/private/check-rst
--- old/python-afl-0.7.2/private/check-rst 2018-11-27 23:26:46.000000000
+0100
+++ new/python-afl-0.7.3/private/check-rst 2019-03-23 15:59:54.000000000
+0100
@@ -1,6 +1,6 @@
-#!/bin/sh
+#!/usr/bin/env bash
-# Copyright © 2016-2018 Jakub Wilk <[email protected]>
+# Copyright © 2016-2019 Jakub Wilk <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the “Software”), to deal
@@ -21,6 +21,7 @@
# SOFTWARE.
set -e -u
+set -o pipefail
here=${0%/*}
here=${here#./}
root="$here/../"
@@ -34,7 +35,7 @@
then
print_desc='python setup.py --long-description'
echo "(cd ${root:-.} && $print_desc) | $rst2xml $options - /dev/null" >&2
- (cd "${root:-.}" && $print_desc) | "$rst2xml" $options - /dev/null || exit
1
+ (cd "${root:-.}" && $print_desc) | "$rst2xml" $options - /dev/null
fi
if [ $# -eq 0 ]
then
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-afl-0.7.2/private/update-version
new/python-afl-0.7.3/private/update-version
--- old/python-afl-0.7.2/private/update-version 2018-11-27 23:26:46.000000000
+0100
+++ new/python-afl-0.7.3/private/update-version 2019-03-23 15:09:24.000000000
+0100
@@ -1,6 +1,6 @@
#!/bin/sh
export version=${1:?"no version number provided"}
-set -e
+set -e -u
set -x
dch -m -v "$version" -u low -c doc/changelog
perl -pi -e 's/^__version__ = '"'"'\K[\w.]+/$ENV{version}/' afl.pyx
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-afl-0.7.2/pyproject.toml
new/python-afl-0.7.3/pyproject.toml
--- old/python-afl-0.7.2/pyproject.toml 1970-01-01 01:00:00.000000000 +0100
+++ new/python-afl-0.7.3/pyproject.toml 2018-11-27 23:26:46.000000000 +0100
@@ -0,0 +1,7 @@
+[build-system]
+requires = [
+ 'setuptools', 'wheel', # needed only to make pip happy
+ 'Cython>=0.19',
+]
+
+# vim:ts=4 sts=4 sw=4 et
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-afl-0.7.2/tests/test_fuzz.py
new/python-afl-0.7.3/tests/test_fuzz.py
--- old/python-afl-0.7.2/tests/test_fuzz.py 2018-11-27 23:26:46.000000000
+0100
+++ new/python-afl-0.7.3/tests/test_fuzz.py 2020-10-06 19:58:34.000000000
+0200
@@ -1,6 +1,6 @@
# encoding=UTF-8
-# Copyright © 2015-2018 Jakub Wilk <[email protected]>
+# Copyright © 2015-2020 Jakub Wilk <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the “Software”), to deal
@@ -65,6 +65,8 @@
version = version.decode('ASCII')
version = re.sub(r'\x1B\[[^m]+m', '', version)
match = re.match(r'^afl-fuzz\s+([0-9.]+)b?\b', version)
+ if match is None:
+ raise RuntimeError('could not parse AFL version')
version = match.group(1)
return distutils.version.StrictVersion(version)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-afl-0.7.2/tests/test_version.py
new/python-afl-0.7.3/tests/test_version.py
--- old/python-afl-0.7.2/tests/test_version.py 2018-11-27 23:26:46.000000000
+0100
+++ new/python-afl-0.7.3/tests/test_version.py 2019-03-22 22:14:52.000000000
+0100
@@ -1,6 +1,6 @@
# encoding=UTF-8
-# Copyright © 2015-2017 Jakub Wilk <[email protected]>
+# Copyright © 2015-2019 Jakub Wilk <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the “Software”), to deal
@@ -20,6 +20,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
+import io
import os
import afl
@@ -31,15 +32,9 @@
here = os.path.dirname(__file__)
docdir = here + '/../doc'
-def uopen(path):
- if str is not bytes:
- return open(path, 'rt', encoding='UTF-8')
- else:
- return open(path, 'rt')
-
def test_changelog():
path = docdir + '/changelog'
- with uopen(path) as file:
+ with io.open(path, 'rt', encoding='UTF-8') as file:
line = file.readline()
changelog_version = line.split()[1].strip('()')
assert_equal(changelog_version, afl.__version__)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-afl-0.7.2/tests/tools.py
new/python-afl-0.7.3/tests/tools.py
--- old/python-afl-0.7.2/tests/tools.py 2019-01-29 16:37:17.000000000 +0100
+++ new/python-afl-0.7.3/tests/tools.py 2019-09-30 08:55:33.000000000 +0200
@@ -180,6 +180,8 @@
# sys.exit() can't be used here, because nose catches all exceptions,
# including SystemExit
+ # pylint:disable=consider-using-sys-exit
+
@functools.wraps(f)
def wrapper(*args, **kwargs):
readfd, writefd = os.pipe()
@@ -212,7 +214,6 @@
os.close(writefd)
with os.fdopen(readfd, 'rb') as fp:
msg = fp.read()
- msg = msg
if not isinstance(msg, str):
msg = msg.decode('UTF-8')
msg = msg.rstrip('\n')
@@ -226,6 +227,8 @@
else:
raise RuntimeError('unexpected isolated process status
{0}'.format(status))
+ # pylint:enable=consider-using-sys-exit
+
return wrapper
@contextlib.contextmanager