Hello community, here is the log from the commit of package python-python-ptrace for openSUSE:Factory checked in at 2020-08-06 10:42:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-python-ptrace (Old) and /work/SRC/openSUSE:Factory/.python-python-ptrace.new.3399 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-ptrace" Thu Aug 6 10:42:16 2020 rev:5 rq:824581 version:0.9.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-python-ptrace/python-python-ptrace.changes 2019-09-11 10:36:05.591284034 +0200 +++ /work/SRC/openSUSE:Factory/.python-python-ptrace.new.3399/python-python-ptrace.changes 2020-08-06 10:42:22.834127863 +0200 @@ -1,0 +2,7 @@ +Wed Aug 5 12:47:08 UTC 2020 - Marketa Calabkova <mcalabk...@suse.com> + +- Update to 0.9.5 + * Fix readProcessMappings() for device id on 3 digits. Patch by Cat Stevens. + * Drop Python 2 support. + +------------------------------------------------------------------- Old: ---- python-ptrace-0.9.4.tar.gz New: ---- python-ptrace-0.9.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-python-ptrace.spec ++++++ --- /var/tmp/diff_new_pack.FpdnWU/_old 2020-08-06 10:42:23.838128366 +0200 +++ /var/tmp/diff_new_pack.FpdnWU/_new 2020-08-06 10:42:23.842128368 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-python-ptrace # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,8 +18,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define pkg_name python-ptrace +%define skip_python2 1 Name: python-%{pkg_name} -Version: 0.9.4 +Version: 0.9.5 Release: 0 Summary: Python binding for ptrace License: GPL-2.0-only ++++++ python-ptrace-0.9.4.tar.gz -> python-ptrace-0.9.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ptrace-0.9.4/.travis.yml new/python-ptrace-0.9.5/.travis.yml --- old/python-ptrace-0.9.4/.travis.yml 2019-07-30 17:30:46.000000000 +0200 +++ new/python-ptrace-0.9.5/.travis.yml 2020-04-13 12:43:13.000000000 +0200 @@ -1,7 +1,6 @@ language: python env: - TOXENV=pep8 - - TOXENV=py2 - TOXENV=py3 install: pip install -U tox # SYS_PTRACE capability is not available in default containers, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ptrace-0.9.4/README.rst new/python-ptrace-0.9.5/README.rst --- old/python-ptrace-0.9.4/README.rst 2019-07-30 17:30:46.000000000 +0200 +++ new/python-ptrace-0.9.5/README.rst 2020-04-13 12:43:13.000000000 +0200 @@ -27,4 +27,4 @@ <https://pypi.python.org/pypi/python-ptrace>`_ python-ptrace is an opensource project written in Python under GNU GPLv2 -license. +license. It supports Python 3.6 and newer. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ptrace-0.9.4/doc/changelog.rst new/python-ptrace-0.9.5/doc/changelog.rst --- old/python-ptrace-0.9.4/doc/changelog.rst 2019-07-30 17:30:46.000000000 +0200 +++ new/python-ptrace-0.9.5/doc/changelog.rst 2020-04-13 12:43:13.000000000 +0200 @@ -3,6 +3,12 @@ Changelog ========= +python-ptrace 0.9.5 (2020-04-13) +-------------------------------- + +* Fix readProcessMappings() for device id on 3 digits. Patch by Cat Stevens. +* Drop Python 2 support. + python-ptrace 0.9.4 (2019-07-30) -------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ptrace-0.9.4/doc/conf.py new/python-ptrace-0.9.5/doc/conf.py --- old/python-ptrace-0.9.4/doc/conf.py 2019-07-30 17:30:46.000000000 +0200 +++ new/python-ptrace-0.9.5/doc/conf.py 2020-04-13 12:43:13.000000000 +0200 @@ -11,13 +11,6 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys, os - -# If extensions (or modules to document with autodoc) are in another directory, -# add these directories to sys.path here. If the directory is relative to the -# documentation root, use os.path.abspath to make it absolute, like shown here. -#sys.path.insert(0, os.path.abspath('.')) - # -- General configuration ----------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. @@ -48,7 +41,7 @@ # built documents. # # The short X.Y version. -version = release = '0.9.4' +version = release = '0.9.5' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ptrace-0.9.4/doc/index.rst new/python-ptrace-0.9.5/doc/index.rst --- old/python-ptrace-0.9.4/doc/index.rst 2019-07-30 17:30:46.000000000 +0200 +++ new/python-ptrace-0.9.5/doc/index.rst 2020-04-13 12:43:13.000000000 +0200 @@ -19,7 +19,7 @@ <https://pypi.python.org/pypi/python-ptrace>`_ python-ptrace is an opensource project written in Python under GNU GPLv2 -license. +license. It supports Python 3.6 and newer. Features diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ptrace-0.9.4/doc/install.rst new/python-ptrace-0.9.5/doc/install.rst --- old/python-ptrace-0.9.4/doc/install.rst 2019-07-30 17:30:46.000000000 +0200 +++ new/python-ptrace-0.9.5/doc/install.rst 2020-04-13 12:43:13.000000000 +0200 @@ -2,6 +2,8 @@ Install python-ptrace +++++++++++++++++++++ +python-ptrace supports Python 3.6 and newer. + Linux packages ============== @@ -33,25 +35,24 @@ <https://github.com/vstinner/python-ptrace>`_. -python-ptrace dependencies --------------------------- +Option dependency +----------------- -* Python 2.6+/3.3+: - http://python.org/ * distorm disassembler (optional) http://www.ragestorm.net/distorm/ - Installation ------------ +Note: pip is strongly recommanded. + Type as root:: - python setup.py install + python3 setup.py install Or using sudo program:: - sudo python setup.py install + sudo python3 setup.py install cptrace @@ -60,7 +61,7 @@ For faster debug and to avoid ctypes, you can also install cptrace: Python binding of the ptrace() function written in C:: - python setup_cptrace.py install + python3 setup_cptrace.py install Run tests @@ -69,22 +70,12 @@ Run tests with tox ------------------ -The `tox project <https://testrun.org/tox/latest/>`_ can be used to build a -virtual environment run tests against different Python versions (Python 2 and -Python 3). - -To run all tests on Python 2 and Python 3, just type:: +To run all tests, just type:: tox -To only run tests on Python 2.7, type:: - - tox -e py2 - -Available environments: - -* ``py2``: Python 2 -* ``py3``: Python 3 +The `tox project <https://testrun.org/tox/latest/>`_ creates a clean virtual +environment to run tests. Run tests manually @@ -92,9 +83,9 @@ Type:: - python runtests.py - python test_doc.py + python3 runtests.py + python3 test_doc.py It's also possible to run a specific test:: - PYTHONPATH=$PWD python tests/test_strace.py + PYTHONPATH=$PWD python3 tests/test_strace.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ptrace-0.9.4/gdb.py new/python-ptrace-0.9.5/gdb.py --- old/python-ptrace-0.9.4/gdb.py 2019-07-30 17:30:46.000000000 +0200 +++ new/python-ptrace-0.9.5/gdb.py 2020-04-13 12:43:13.000000000 +0200 @@ -8,7 +8,7 @@ from os import getpid from sys import stdout, stderr, exit from logging import getLogger, info, warning, error -from ptrace.version import VERSION, WEBSITE +from ptrace.version import __version__ as VERSION, WEBSITE from ptrace.error import PTRACE_ERRORS, writeError from ptrace.binding import HAS_PTRACE_SINGLESTEP from ptrace.disasm import HAS_DISASSEMBLER diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ptrace-0.9.4/ptrace/__init__.py new/python-ptrace-0.9.5/ptrace/__init__.py --- old/python-ptrace-0.9.4/ptrace/__init__.py 2019-07-30 17:30:46.000000000 +0200 +++ new/python-ptrace-0.9.5/ptrace/__init__.py 2020-04-13 12:43:13.000000000 +0200 @@ -1,2 +1,3 @@ from ptrace.signames import SIGNAMES, signalName # noqa from ptrace.error import PtraceError # noqa +from ptrace.version import VERSION, __version__ # noqa diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ptrace-0.9.4/ptrace/debugger/memory_mapping.py new/python-ptrace-0.9.5/ptrace/debugger/memory_mapping.py --- old/python-ptrace-0.9.4/ptrace/debugger/memory_mapping.py 2019-07-30 17:30:46.000000000 +0200 +++ new/python-ptrace-0.9.5/ptrace/debugger/memory_mapping.py 2020-04-13 12:43:13.000000000 +0200 @@ -15,7 +15,7 @@ # Offset: '0804d000' r'([0-9a-f]+) ' # Device (major:minor): 'fe:01 ' - r'([0-9a-f]{2}):([0-9a-f]{2}) ' + r'([0-9a-f]{2,3}):([0-9a-f]{2}) ' # Inode: '3334030' r'([0-9]+)' # Filename: ' /usr/bin/synergyc' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ptrace-0.9.4/ptrace/version.py new/python-ptrace-0.9.5/ptrace/version.py --- old/python-ptrace-0.9.4/ptrace/version.py 2019-07-30 17:30:46.000000000 +0200 +++ new/python-ptrace-0.9.5/ptrace/version.py 2020-04-13 12:43:13.000000000 +0200 @@ -1,4 +1,5 @@ PACKAGE = "python-ptrace" -VERSION = "0.9.4" +VERSION = (0, 9, 5) +__version__ = '.'.join(map(str, VERSION)) WEBSITE = "http://python-ptrace.readthedocs.io/" LICENSE = "GNU GPL v2" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ptrace-0.9.4/pyflakes.sh new/python-ptrace-0.9.5/pyflakes.sh --- old/python-ptrace-0.9.4/pyflakes.sh 2019-07-30 17:30:46.000000000 +0200 +++ new/python-ptrace-0.9.5/pyflakes.sh 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -pyflakes $(find -name "*.py")|grep -v "redefinition of unused"|grep -v "__init__.*imported but unused" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ptrace-0.9.4/setup.py new/python-ptrace-0.9.5/setup.py --- old/python-ptrace-0.9.4/setup.py 2019-07-30 17:30:46.000000000 +0200 +++ new/python-ptrace-0.9.5/setup.py 2020-04-13 12:43:13.000000000 +0200 @@ -5,18 +5,18 @@ # - git pull --rebase # check that there is no incoming changesets # - check version in ptrace/version.py and doc/conf.py # - set release date in doc/changelog.rst -# - check that "python setup.py sdist" contains all files tracked by +# - check that "python3 setup.py sdist" contains all files tracked by # the SCM (Git): update MANIFEST.in if needed # - git commit -a -m "prepare release VERSION" # - Remove untracked files/dirs: git clean -fdx -# - run tests, type: tox +# - run tests, type: tox --parallel auto # - git push # - check Travis status: # https://travis-ci.org/vstinner/python-ptrace # # Release a new version: # -# - git tag python-ptrace-VERSION +# - git tag VERSION # - git push --tags # - Remove untracked files/dirs: git clean -fdx # - python3 setup.py sdist bdist_wheel @@ -64,7 +64,7 @@ install_options = { "name": ptrace.PACKAGE, - "version": ptrace.VERSION, + "version": ptrace.__version__, "url": ptrace.WEBSITE, "download_url": ptrace.WEBSITE, "author": "Victor Stinner", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ptrace-0.9.4/tox.ini new/python-ptrace-0.9.5/tox.ini --- old/python-ptrace-0.9.4/tox.ini 2019-07-30 17:30:46.000000000 +0200 +++ new/python-ptrace-0.9.5/tox.ini 2020-04-13 12:43:13.000000000 +0200 @@ -1,5 +1,5 @@ [tox] -envlist = py2, py3, pep8 +envlist = py3, pep8 [testenv] basepython = python3 @@ -7,9 +7,6 @@ python test_doc.py python runtests.py -[testenv:py2] -basepython = python2 - [testenv:py3] basepython = python3