From https://github.com/archlinux/svntogit-community * branch packages/python-tempita -> FETCH_HEAD * [new branch] packages/python-tempita -> community/packages/python-tempita Cloning into 'python-tempita'... done. :: Synchronizing package databases... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 132k 100 132k 0 0 383k 0 --:--:-- --:--:-- --:--:-- 383k % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 8544k 100 8544k 0 0 20.8M 0 --:--:-- --:--:-- --:--:-- 20.8M % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 143k 100 143k 0 0 420k 0 --:--:-- --:--:-- --:--:-- 419k :: Starting full system upgrade... there is nothing to do PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp/archlinux-ci/ SOURCE_DATE_EPOCH=1690534862 SHELL=/bin/bash SCHROOT_CHROOT_NAME=jenkins-reproducible-archlinux no_proxy=localhost,127.0.0.1 SCHROOT_COMMAND=bash -l -c SOURCE_DATE_EPOCH='1690534862' PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' TMPDIR='/tmp/archlinux-ci/' printenv 2>&1 SCHROOT_SESSION_ID=archlinux-python-tempita-archlinuxrb-build-9kjjmUEC PWD=/tmp/archlinux-ci/python-tempita-archlinuxrb-build-9kjjmUEC/python-tempita/trunk LOGNAME=jenkins SCHROOT_ALIAS_NAME=jenkins-reproducible-archlinux SCHROOT_GROUP=jenkins SCHROOT_USER=jenkins ftp_proxy=http://127.0.0.1:3128 HOME=/var/lib/jenkins LANG=C https_proxy=http://127.0.0.1:3128 USER=jenkins FTP_PROXY=http://127.0.0.1:3128 SHLVL=1 HTTPS_PROXY=http://127.0.0.1:3128 HTTP_PROXY=http://127.0.0.1:3128 SCHROOT_GID=116 http_proxy=http://127.0.0.1:3128 DEBUGINFOD_URLS=https://debuginfod.archlinux.org SCHROOT_UID=108 HG=/usr/bin/hg _=/usr/sbin/printenv ==> Making package: python-tempita 1:0.5.2-6 (Fri Jul 28 09:01:27 2023) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Installing missing dependencies... resolving dependencies... looking for conflicting packages... Packages (16) python-autocommand-2.2.2-4 python-fastjsonschema-2.18.0-1 python-inflect-7.0.0-1 python-jaraco.context-4.3.0-3 python-jaraco.functools-3.8.0-1 python-jaraco.text-3.11.1-3 python-more-itertools-9.1.1-4 python-ordered-set-4.1.0-4 python-packaging-23.1-1 python-platformdirs-3.9.1-1 python-pydantic-1.10.9-1 python-tomli-2.0.1-3 python-trove-classifiers-2023.7.6-1 python-typing_extensions-4.7.1-1 python-validate-pyproject-0.13-1 python-setuptools-1:68.0.0-1 Total Download Size: 3.27 MiB Total Installed Size: 15.66 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 97506 100 97506 0 0 35.5M 0 --:--:-- --:--:-- --:--:-- 46.4M % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 16619 100 16619 0 0 18.6M 0 --:--:-- --:--:-- --:--:-- 15.8M % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11682 100 11682 0 0 13.8M 0 --:--:-- --:--:-- --:--:-- 11.1M % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 22922 100 22922 0 0 25.8M 0 --:--:-- --:--:-- --:--:-- 21.8M % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 69151 100 69151 0 0 61.1M 0 --:--:-- --:--:-- --:--:-- 65.9M % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1968k 100 1968k 0 0 156M 0 --:--:-- --:--:-- --:--:-- 160M % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 78871 100 78871 0 0 68.8M 0 --:--:-- --:--:-- --:--:-- 75.2M % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 21013 100 21013 0 0 22.0M 0 --:--:-- --:--:-- --:--:-- 20.0M % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 16181 100 16181 0 0 17.7M 0 --:--:-- --:--:-- --:--:-- 15.4M % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 95467 100 95467 0 0 40.5M 0 --:--:-- --:--:-- --:--:-- 45.5M % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 31703 100 31703 0 0 31.5M 0 --:--:-- --:--:-- --:--:-- 30.2M % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 28235 100 28235 0 0 32.5M 0 --:--:-- --:--:-- --:--:-- 26.9M % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 51142 100 51142 0 0 49.1M 0 --:--:-- --:--:-- --:--:-- 48.7M % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 15210 100 15210 0 0 16.3M 0 --:--:-- --:--:-- --:--:-- 14.5M % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 73796 100 73796 0 0 69.1M 0 --:--:-- --:--:-- --:--:-- 70.3M % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 86 767k 86 663k 0 0 144M 0 --:--:-- --:--:-- --:--:-- 129M 100 767k 100 767k 0 0 146M 0 --:--:-- --:--:-- --:--:-- 124M checking keyring... checking package integrity... loading package files... checking for file conflicts... checking available disk space... :: Processing package changes... installing python-more-itertools... installing python-jaraco.functools... installing python-jaraco.context... installing python-autocommand... installing python-typing_extensions... installing python-pydantic... Optional dependencies for python-pydantic python-dotenv: for .env file support python-email-validator: for email validation installing python-inflect... installing python-jaraco.text... installing python-ordered-set... installing python-packaging... installing python-platformdirs... installing python-tomli... installing python-fastjsonschema... installing python-trove-classifiers... installing python-validate-pyproject... installing python-setuptools... :: Running post-transaction hooks... (1/1) Arming ConditionNeedsUpdate... ==> Retrieving sources... -> Downloading Tempita-0.5.2.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 122 100 122 0 0 3084 0 --:--:-- --:--:-- --:--:-- 3128 100 274 100 274 0 0 1703 0 --:--:-- --:--:-- --:--:-- 1703 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12648 100 12648 0 0 30807 0 --:--:-- --:--:-- --:--:-- 30807 ==> Validating source files with sha256sums... Tempita-0.5.2.tar.gz ... Passed ==> Extracting sources... -> Extracting Tempita-0.5.2.tar.gz with bsdtar ==> Starting prepare()... ==> Starting build()... /usr/sbin/2to3:3: DeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+ from lib2to3.main import main RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored tempita/__init__.py RefactoringTool: No changes to tempita/_looper.py RefactoringTool: Refactored tempita/compat3.py RefactoringTool: Files that were modified: RefactoringTool: tempita/__init__.py RefactoringTool: tempita/_looper.py RefactoringTool: tempita/compat3.py RefactoringTool: Warnings/messages while refactoring: RefactoringTool: ### In file tempita/__init__.py ### RefactoringTool: Line 40: Calls to builtin next() possibly shadowed by global binding RefactoringTool: ### In file tempita/compat3.py ### RefactoringTool: Line 23: Calls to builtin next() possibly shadowed by global binding --- tempita/__init__.py (original) +++ tempita/__init__.py (refactored) @@ -32,10 +32,10 @@ import re import sys import cgi -from urllib import quote as url_quote +from urllib.parse import quote as url_quote import os import tokenize -from cStringIO import StringIO +from io import StringIO from tempita._looper import looper from tempita.compat3 import bytes, basestring_, next, is_unicode, coerce_text @@ -101,7 +101,7 @@ delimiters = (self.default_namespace['start_braces'], self.default_namespace['end_braces']) else: - assert len(delimiters) == 2 and all([isinstance(delimeter, basestring) + assert len(delimiters) == 2 and all([isinstance(delimeter, str) for delimeter in delimiters]) self.default_namespace = self.__class__.default_namespace.copy() self.default_namespace['start_braces'] = delimiters[0] @@ -196,7 +196,7 @@ position=None, name=self.name) templ = self.get_template(inherit_template, self) self_ = TemplateObject(self.name) - for name, value in defs.iteritems(): + for name, value in defs.items(): setattr(self_, name, value) self_.body = body ns = ns.copy() @@ -292,7 +292,7 @@ try: try: value = eval(code, self.default_namespace, ns) - except SyntaxError, e: + except SyntaxError as e: raise SyntaxError( 'invalid syntax in expression: %s' % code) return value @@ -304,12 +304,12 @@ else: arg0 = coerce_text(e) e.args = (self._add_line_info(arg0, pos),) - raise exc_info[0], e, exc_info[2] + raise exc_info[0](e).with_traceback(exc_info[2]) def _exec(self, code, ns, pos): __traceback_hide__ = True try: - exec code in self.default_namespace, ns + exec(code, self.default_namespace, ns) except: exc_info = sys.exc_info() e = exc_info[1] @@ -317,7 +317,7 @@ e.args = (self._add_line_info(e.args[0], pos),) else: e.args = (self._add_line_info(None, pos),) - raise exc_info[0], e, exc_info[2] + raise exc_info[0](e).with_traceback(exc_info[2]) def _repr(self, value, pos): __traceback_hide__ = True @@ -326,7 +326,7 @@ return '' if self._unicode: try: - value = unicode(value) + value = str(value) except UnicodeDecodeError: value = bytes(value) else: @@ -339,7 +339,7 @@ exc_info = sys.exc_info() e = exc_info[1] e.args = (self._add_line_info(e.args[0], pos),) - raise exc_info[0], e, exc_info[2] + raise exc_info[0](e).with_traceback(exc_info[2]) else: if self._unicode and isinstance(value, bytes): if not self.default_encoding: @@ -348,7 +348,7 @@ '(no default_encoding provided)' % value) try: value = value.decode(self.default_encoding) - except UnicodeDecodeError, e: + except UnicodeDecodeError as e: raise UnicodeDecodeError( e.encoding, e.object, @@ -385,7 +385,7 @@ class bunch(dict): def __init__(self, **kw): - for name, value in kw.iteritems(): + for name, value in kw.items(): setattr(self, name, value) def __setattr__(self, name, value): @@ -408,7 +408,7 @@ def __repr__(self): items = [ - (k, v) for k, v in self.iteritems()] + (k, v) for k, v in self.items()] items.sort() return '<%s %s>' % ( self.__class__.__name__, @@ -461,7 +461,7 @@ def attr(**kw): - kw = list(kw.iteritems()) + kw = list(kw.items()) kw.sort() parts = [] for name, value in kw: @@ -543,7 +543,7 @@ values = {} sig_args, var_args, var_kw, defaults = self._func_signature extra_kw = {} - for name, value in kw.iteritems(): + for name, value in kw.items(): if not var_kw and name not in sig_args: raise TypeError( 'Unexpected argument %s' % name) @@ -566,7 +566,7 @@ raise TypeError( 'Extra position arguments: %s' % ', '.join(repr(v) for v in args)) - for name, value_expr in defaults.iteritems(): + for name, value_expr in defaults.items(): if name not in values: values[name] = self._template._eval( value_expr, self._ns, self._pos) @@ -612,7 +612,7 @@ return 'Empty' def __unicode__(self): - return u'' + return '' def __iter__(self): return iter(()) @@ -1156,7 +1156,7 @@ vars.update(os.environ) for value in args: if '=' not in value: - print('Bad argument: %r' % value) + print(('Bad argument: %r' % value)) sys.exit(2) name, value = value.split('=', 1) if name.startswith('py:'): --- tempita/compat3.py (original) +++ tempita/compat3.py (refactored) @@ -4,7 +4,7 @@ if sys.version < "3": b = bytes = str - basestring_ = basestring + basestring_ = str else: def b(s): @@ -18,14 +18,14 @@ if sys.version < "3": def next(obj): - return obj.next() + return obj.__next__() else: next = next if sys.version < "3": def is_unicode(obj): - return isinstance(obj, unicode) + return isinstance(obj, str) else: def is_unicode(obj): @@ -39,7 +39,7 @@ else: attr = '__str__' if hasattr(v, attr): - return unicode(v) + return str(v) else: return bytes(v) return v running build running build_py creating build creating build/lib creating build/lib/tempita copying tempita/_looper.py -> build/lib/tempita copying tempita/compat3.py -> build/lib/tempita copying tempita/__main__.py -> build/lib/tempita copying tempita/__init__.py -> build/lib/tempita running egg_info writing Tempita.egg-info/PKG-INFO writing dependency_links to Tempita.egg-info/dependency_links.txt writing top-level names to Tempita.egg-info/top_level.txt reading manifest file 'Tempita.egg-info/SOURCES.txt' writing manifest file 'Tempita.egg-info/SOURCES.txt' ==> Entering fakeroot environment... ==> Starting package()... running install /usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() running build running build_py running egg_info writing Tempita.egg-info/PKG-INFO writing dependency_links to Tempita.egg-info/dependency_links.txt writing top-level names to Tempita.egg-info/top_level.txt reading manifest file 'Tempita.egg-info/SOURCES.txt' writing manifest file 'Tempita.egg-info/SOURCES.txt' running install_lib creating /tmp/archlinux-ci/python-tempita-archlinuxrb-build-9kjjmUEC/python-tempita/trunk/pkg/python-tempita/usr creating /tmp/archlinux-ci/python-tempita-archlinuxrb-build-9kjjmUEC/python-tempita/trunk/pkg/python-tempita/usr/lib creating /tmp/archlinux-ci/python-tempita-archlinuxrb-build-9kjjmUEC/python-tempita/trunk/pkg/python-tempita/usr/lib/python3.11 creating /tmp/archlinux-ci/python-tempita-archlinuxrb-build-9kjjmUEC/python-tempita/trunk/pkg/python-tempita/usr/lib/python3.11/site-packages creating /tmp/archlinux-ci/python-tempita-archlinuxrb-build-9kjjmUEC/python-tempita/trunk/pkg/python-tempita/usr/lib/python3.11/site-packages/tempita copying build/lib/tempita/__init__.py -> /tmp/archlinux-ci/python-tempita-archlinuxrb-build-9kjjmUEC/python-tempita/trunk/pkg/python-tempita/usr/lib/python3.11/site-packages/tempita copying build/lib/tempita/__main__.py -> /tmp/archlinux-ci/python-tempita-archlinuxrb-build-9kjjmUEC/python-tempita/trunk/pkg/python-tempita/usr/lib/python3.11/site-packages/tempita copying build/lib/tempita/compat3.py -> /tmp/archlinux-ci/python-tempita-archlinuxrb-build-9kjjmUEC/python-tempita/trunk/pkg/python-tempita/usr/lib/python3.11/site-packages/tempita copying build/lib/tempita/_looper.py -> /tmp/archlinux-ci/python-tempita-archlinuxrb-build-9kjjmUEC/python-tempita/trunk/pkg/python-tempita/usr/lib/python3.11/site-packages/tempita byte-compiling /tmp/archlinux-ci/python-tempita-archlinuxrb-build-9kjjmUEC/python-tempita/trunk/pkg/python-tempita/usr/lib/python3.11/site-packages/tempita/__init__.py to __init__.cpython-311.pyc byte-compiling /tmp/archlinux-ci/python-tempita-archlinuxrb-build-9kjjmUEC/python-tempita/trunk/pkg/python-tempita/usr/lib/python3.11/site-packages/tempita/__main__.py to __main__.cpython-311.pyc byte-compiling /tmp/archlinux-ci/python-tempita-archlinuxrb-build-9kjjmUEC/python-tempita/trunk/pkg/python-tempita/usr/lib/python3.11/site-packages/tempita/compat3.py to compat3.cpython-311.pyc byte-compiling /tmp/archlinux-ci/python-tempita-archlinuxrb-build-9kjjmUEC/python-tempita/trunk/pkg/python-tempita/usr/lib/python3.11/site-packages/tempita/_looper.py to _looper.cpython-311.pyc writing byte-compilation script '/tmp/archlinux-ci/tmp05d39xap.py' /usr/sbin/python /tmp/archlinux-ci/tmp05d39xap.py removing /tmp/archlinux-ci/tmp05d39xap.py running install_egg_info Copying Tempita.egg-info to /tmp/archlinux-ci/python-tempita-archlinuxrb-build-9kjjmUEC/python-tempita/trunk/pkg/python-tempita/usr/lib/python3.11/site-packages/Tempita-0.5.2-py3.11.egg-info running install_scripts ==> Tidying install... -> Removing libtool files... -> Purging unwanted files... -> Removing static library files... -> Stripping unneeded symbols from binaries and libraries... -> Compressing man and info pages... ==> Checking for packaging issues... ==> Creating package "python-tempita"... -> Generating .PKGINFO file... -> Generating .BUILDINFO file... -> Generating .MTREE file... -> Compressing package... ==> Leaving fakeroot environment. ==> Finished making: python-tempita 1:0.5.2-6 (Fri Jul 28 09:01:33 2023)