[Python-modules-team] Bug#947034: Fails to build with python3.8
Package: python-passlib Version: 1.7.1-1 Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu focal ubuntu-patch The package fails to build with python 3.8, the attached patch fixes the issue diff -Nru python-passlib-1.7.1/debian/changelog python-passlib-1.7.1/debian/changelog --- python-passlib-1.7.1/debian/changelog 2017-01-31 17:48:36.0 +0100 +++ python-passlib-1.7.1/debian/changelog 2019-12-19 18:46:11.0 +0100 @@ -1,3 +1,10 @@ +python-passlib (1.7.1-2) UNRELEASED; urgency=medium + + * debian/patches/hg_python38_build.patch: +- backport some python 3.8 fixes from the upstream vcs + + -- Sebastien Bacher Thu, 19 Dec 2019 18:43:51 +0100 + python-passlib (1.7.1-1) unstable; urgency=medium * Team upload. diff -Nru python-passlib-1.7.1/debian/patches/hg_python38_build.patch python-passlib-1.7.1/debian/patches/hg_python38_build.patch --- python-passlib-1.7.1/debian/patches/hg_python38_build.patch 1970-01-01 01:00:00.0 +0100 +++ python-passlib-1.7.1/debian/patches/hg_python38_build.patch 2019-12-19 18:45:41.0 +0100 @@ -0,0 +1,71 @@ +# Description: python3.8 compat fixes +# https://bitbucket.org/ecollins/passlib/commits/844b76a82d5b +# +Index: python-passlib-1.7.1/passlib/utils/__init__.py +=== +--- python-passlib-1.7.1.orig/passlib/utils/__init__.py python-passlib-1.7.1/passlib/utils/__init__.py +@@ -6,7 +6,12 @@ from passlib.utils.compat import JYTHON + # core + from binascii import b2a_base64, a2b_base64, Error as _BinAsciiError + from base64 import b64encode, b64decode +-import collections ++try: ++from collections.abc import Sequence ++from collections.abc import Iterable ++except ImportError: ++from collections import Sequence ++from collections import Iterable + from codecs import lookup as _lookup_codec + from functools import update_wrapper + import itertools +@@ -30,6 +35,7 @@ else: + import time + if stringprep: + import unicodedata ++import timeit + import types + from warnings import warn + # site +@@ -275,14 +281,14 @@ def batch(source, size): + """ + if size < 1: + raise ValueError("size must be positive integer") +-if isinstance(source, collections.Sequence): ++if isinstance(source, Sequence): + end = len(source) + i = 0 + while i < end: + n = i + size + yield source[i:n] + i = n +-elif isinstance(source, collections.Iterable): ++elif isinstance(source, Iterable): + itr = iter(source) + while True: + chunk_itr = itertools.islice(itr, size) +@@ -839,14 +845,7 @@ def test_crypt(secret, hash): + assert secret and hash + return safe_crypt(secret, hash) == hash + +-# pick best timer function to expose as "tick" - lifted from timeit module. +-if sys.platform == "win32": +-# On Windows, the best timer is time.clock() +-from time import clock as timer +-else: +-# On most other platforms the best timer is time.time() +-from time import time as timer +- ++timer = timeit.default_timer + # legacy alias, will be removed in passlib 2.0 + tick = timer + +@@ -903,7 +902,7 @@ def genseed(value=None): + + # the current time, to whatever precision os uses + time.time(), +-time.clock(), ++tick(), + + # if urandom available, might as well mix some bytes in. + os.urandom(32).decode("latin-1") if has_urandom else 0, diff -Nru python-passlib-1.7.1/debian/patches/series python-passlib-1.7.1/debian/patches/series --- python-passlib-1.7.1/debian/patches/series 1970-01-01 01:00:00.0 +0100 +++ python-passlib-1.7.1/debian/patches/series 2019-12-19 18:42:17.0 +0100 @@ -0,0 +1 @@ +hg_python38_build.patch ___ Python-modules-team mailing list Python-modules-team@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team
[Python-modules-team] Bug#945605: python-neovim: autopkgtest needs update for new version of neovim: Invalid option name: 'listchars'
tags 945605 patch user ubuntu-de...@lists.ubuntu.com usertags 945605 origin-ubuntu focal ubuntu-patch thank you The attached patch fixes the issue by backporting 2 commits from upstream diff -Nru python-neovim-0.3.0/debian/changelog python-neovim-0.3.0/debian/changelog --- python-neovim-0.3.0/debian/changelog 2019-01-08 15:27:39.0 +0100 +++ python-neovim-0.3.0/debian/changelog 2019-12-17 16:18:21.0 +0100 @@ -1,3 +1,11 @@ +python-neovim (0.3.0-2) UNRELEASED; urgency=medium + + * debian/patches/git_options_handling.patch: +- backported some upstream patches to make the test work with the + new neovim version (Closes: #945605 ) + + -- Sebastien Bacher Tue, 17 Dec 2019 16:17:10 +0100 + python-neovim (0.3.0-1) unstable; urgency=medium * New upstream version 0.3.0 diff -Nru python-neovim-0.3.0/debian/patches/git_options_handling.patch python-neovim-0.3.0/debian/patches/git_options_handling.patch --- python-neovim-0.3.0/debian/patches/git_options_handling.patch 1970-01-01 01:00:00.0 +0100 +++ python-neovim-0.3.0/debian/patches/git_options_handling.patch 2019-12-17 16:16:24.0 +0100 @@ -0,0 +1,26 @@ +# Description: backport some upstream fixes for the new neovim +# https://github.com/neovim/pynvim/commit/5a329f22 +# https://github.com/neovim/pynvim/commit/1d121e08 +Index: python-neovim-0.3.0/test/test_vim.py +=== +--- python-neovim-0.3.0.orig/test/test_vim.py python-neovim-0.3.0/test/test_vim.py +@@ -81,9 +81,15 @@ def test_vars(vim): + + + def test_options(vim): +-assert vim.options['listchars'] == 'tab:> ,trail:-,nbsp:+' +-vim.options['listchars'] = 'tab:xy' +-assert vim.options['listchars'] == 'tab:xy' ++assert vim.options['background'] == 'dark' ++vim.options['background'] = 'light' ++assert vim.options['background'] == 'light' ++ ++ ++def test_local_options(vim): ++assert vim.windows[0].options['foldmethod'] == 'manual' ++vim.windows[0].options['foldmethod'] = 'syntax' ++assert vim.windows[0].options['foldmethod'] == 'syntax' + + + def test_buffers(vim): diff -Nru python-neovim-0.3.0/debian/patches/series python-neovim-0.3.0/debian/patches/series --- python-neovim-0.3.0/debian/patches/series 2019-01-08 14:50:30.0 +0100 +++ python-neovim-0.3.0/debian/patches/series 2019-12-17 16:15:02.0 +0100 @@ -1 +1,2 @@ 0001-Add-missing-conftest.py-in-sdist.patch +git_options_handling.patch ___ Python-modules-team mailing list Python-modules-team@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team
[Python-modules-team] Bug#946288: Tests are failing
Package: mwic Version: 0.7.7-1 The autopkgtest are currently failing https://ci.debian.net/packages/m/mwic/unstable/amd64/ ___ Python-modules-team mailing list Python-modules-team@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team
[Python-modules-team] Bug#946265: New version available fixing build with python 3.8
Package: pympler Version: 0.7+dfsg1-1 There is a new version available upstream, it would be nice to get in Debian since it fixes a test error without python3.8 https://github.com/pympler/pympler/issues/102 ___ Python-modules-team mailing list Python-modules-team@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team
[Python-modules-team] Bug#945606: testpath: autopkgtest regression
The issue is that 0.4.2+dfsg-2 dropped the debian/tests/control depends on python-nose, but python3-nose is needed for the test which calls nosetests3, the attached debdiff fixes the issue Cheers, diff -Nru testpath-0.4.2+dfsg/debian/changelog testpath-0.4.2+dfsg/debian/changelog --- testpath-0.4.2+dfsg/debian/changelog2019-11-12 23:00:54.0 + +++ testpath-0.4.2+dfsg/debian/changelog2019-12-04 09:05:22.0 + @@ -1,3 +1,10 @@ +testpath (0.4.2+dfsg-3) unstable; urgency=medium + + * debian/tests/control: +- depends on python3-nose (Closes: #945606) + + -- Sebastien Bacher Wed, 04 Dec 2019 10:05:00 +0100 + testpath (0.4.2+dfsg-2) unstable; urgency=medium [ Ondřej Nový ] diff -Nru testpath-0.4.2+dfsg/debian/tests/control testpath-0.4.2+dfsg/debian/tests/control --- testpath-0.4.2+dfsg/debian/tests/control2019-11-12 23:00:54.0 + +++ testpath-0.4.2+dfsg/debian/tests/control2019-12-04 09:04:57.0 + @@ -1,2 +1,2 @@ Tests: runtestsuite -Depends: @ +Depends: @, python3-nose ___ Python-modules-team mailing list Python-modules-team@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team
[Python-modules-team] Bug#946040: Build fails with the new pylint version
Package: pytest-pylint Version: 0.14.1-2 The build is failing with pylint 2.4.4, log example from an Ubuntu build https://launchpadlibrarian.net/454058807/buildlog_ubuntu-focal-amd64.pytest-pylint_0.14.1-2_BUILDING.txt.gz I've reported the issue upstream https://github.com/carsongee/pytest-pylint/issues/105 The debdiff attached should fix the issue Cheers, diff -Nru pytest-pylint-0.14.1/debian/changelog pytest-pylint-0.14.1/debian/changelog --- pytest-pylint-0.14.1/debian/changelog 2019-11-19 08:01:18.0 +0100 +++ pytest-pylint-0.14.1/debian/changelog 2019-12-03 11:06:41.0 +0100 @@ -1,3 +1,10 @@ +pytest-pylint (0.14.1-3) unstable; urgency=medium + + * debian/patches/import_warning_fix.patch: +- reorder imports to fix pylint import-outside-toplevel warnings + + -- Sebastien Bacher Tue, 03 Dec 2019 10:58:36 +0100 + pytest-pylint (0.14.1-2) unstable; urgency=medium [ Ondřej Nový ] diff -Nru pytest-pylint-0.14.1/debian/patches/import_warning_fix.patch pytest-pylint-0.14.1/debian/patches/import_warning_fix.patch --- pytest-pylint-0.14.1/debian/patches/import_warning_fix.patch 1970-01-01 01:00:00.0 +0100 +++ pytest-pylint-0.14.1/debian/patches/import_warning_fix.patch 2019-12-03 11:02:18.0 +0100 @@ -0,0 +1,39 @@ +# Description: build was failing on pylint import-outside-toplevel tests +# Upstream: https://github.com/carsongee/pytest-pylint/issues/105 +# +--- test-pytest/test_pytest_pylint.py 2019-01-15 14:10:38.0 +0100 test-pytest/test_pytest_pylint.py.new 2019-12-03 10:57:27.668814673 +0100 +@@ -3,7 +3,8 @@ + Unit testing module for pytest-pylint plugin + """ + import mock +- ++from pytest_pylint import get_rel_path ++from pytest_pylint import include_file + + pytest_plugins = ('pytester',) # pylint: disable=invalid-name + +@@ -128,7 +129,6 @@ + """ + Verify our relative path function. + """ +-from pytest_pylint import get_rel_path + correct_rel_path = 'How/Are/You/blah.py' + path = '/Hi/How/Are/You/blah.py' + parent_path = '/Hi/' +@@ -168,7 +168,6 @@ + Files should only be included in the list if none of the directories on + it's path, of the filename, match an entry in the ignore list. + """ +-from pytest_pylint import include_file + ignore_list = [ + "first", "second", "third", "part", "base.py" + ] +@@ -191,7 +190,6 @@ + + def test_pylint_ignore_patterns(): + """Test if the ignore-patterns is working""" +-from pytest_pylint import include_file + ignore_patterns = [ + "first.*", + ".*second", diff -Nru pytest-pylint-0.14.1/debian/patches/series pytest-pylint-0.14.1/debian/patches/series --- pytest-pylint-0.14.1/debian/patches/series 2019-07-25 14:03:35.0 +0200 +++ pytest-pylint-0.14.1/debian/patches/series 2019-12-03 10:59:16.0 +0100 @@ -1,2 +1,3 @@ 0001-Removed-PEP8-py.test-plugin.patch 0002-Disable-abstract-method-pylint-check.patch +import_warning_fix.patch ___ Python-modules-team mailing list Python-modules-team@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team