<86>Jan 27 00:42:07 userdel[31506]: delete user 'rooter' <86>Jan 27 00:42:07 userdel[31506]: removed shadow group 'rooter' owned by 'rooter' <86>Jan 27 00:42:07 groupadd[31515]: group added to /etc/group: name=rooter, GID=582 <86>Jan 27 00:42:07 groupadd[31515]: group added to /etc/gshadow: name=rooter <86>Jan 27 00:42:07 groupadd[31515]: new group: name=rooter, GID=582 <86>Jan 27 00:42:07 useradd[31519]: new user: name=rooter, UID=582, GID=582, home=/root, shell=/bin/bash <86>Jan 27 00:42:07 userdel[31528]: delete user 'builder' <86>Jan 27 00:42:07 userdel[31528]: removed group 'builder' owned by 'builder' <86>Jan 27 00:42:07 userdel[31528]: removed shadow group 'builder' owned by 'builder' <86>Jan 27 00:42:07 groupadd[31540]: group added to /etc/group: name=builder, GID=583 <86>Jan 27 00:42:07 groupadd[31540]: group added to /etc/gshadow: name=builder <86>Jan 27 00:42:07 groupadd[31540]: new group: name=builder, GID=583 <86>Jan 27 00:42:07 useradd[31546]: new user: name=builder, UID=583, GID=583, home=/usr/src, shell=/bin/bash <13>Jan 27 00:42:12 rpmi: libexpat-2.1.0-alt1 1347469765 installed <13>Jan 27 00:42:12 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Jan 27 00:42:12 rpmi: rpm-macros-sphinx-1:1.4.1-alt2 1461380581 installed <13>Jan 27 00:42:12 rpmi: python-module-sphinx-pickles-1:1.4.1-alt2 1461380581 installed <13>Jan 27 00:42:12 rpmi: python-module-z3c-3.0.0-alt2.a2.dev0.git20130313.1.1.1 1460417103 installed <13>Jan 27 00:42:12 rpmi: python-module-repoze-2.2-alt3.git20140327 1477913181 installed <13>Jan 27 00:42:12 rpmi: python-module-repoze.sphinx-0.8-alt1 1484331699 installed <13>Jan 27 00:42:12 rpmi: python-module-google-0.4.2-alt2 1484663739 installed <13>Jan 27 00:42:12 rpmi: python-module-imagesize-0.7.1-alt1 1461387704 installed <13>Jan 27 00:42:12 rpmi: python-sphinx-objects.inv-1:2.3.7.20170125-alt1 1485398097 installed <13>Jan 27 00:42:12 rpmi: libxapian-1.2.23-alt1 1459318465 installed <13>Jan 27 00:42:12 rpmi: python-module-xapian-1.2.23-alt2 1475504923 installed <13>Jan 27 00:42:12 rpmi: libsqlite3-3.15.2-alt1 1480432212 installed <13>Jan 27 00:42:12 rpmi: libgpg-error-1.20-alt1.1 1449204243 installed <13>Jan 27 00:42:12 rpmi: libgcrypt20-1.6.6-alt1 1471552709 installed <13>Jan 27 00:42:12 rpmi: libxslt-1.1.28-alt4 1448210404 installed <13>Jan 27 00:42:12 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Jan 27 00:42:12 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Jan 27 00:42:12 rpmi: python-modules-curses-2.7.11-alt3 1460726088 installed <13>Jan 27 00:42:12 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Jan 27 00:42:12 rpmi: libkeyutils-1.5.9-alt2 1464351238 installed <13>Jan 27 00:42:12 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Jan 27 00:42:12 rpmi: ca-certificates-2016.09.28-alt1 1475233825 installed <13>Jan 27 00:42:13 rpmi: libcrypto10-1.0.2j-alt1 1474897978 installed <13>Jan 27 00:42:13 rpmi: libkrb5-1.14.2-alt2 1465464078 installed <13>Jan 27 00:42:13 rpmi: libssl10-1.0.2j-alt1 1474897978 installed <13>Jan 27 00:42:13 rpmi: python-modules-compiler-2.7.11-alt3 1460726088 installed <13>Jan 27 00:42:13 rpmi: python-modules-email-2.7.11-alt3 1460726088 installed <13>Jan 27 00:42:13 rpmi: python-modules-unittest-2.7.11-alt3 1460726088 installed <13>Jan 27 00:42:13 rpmi: python-modules-encodings-2.7.11-alt3 1460726088 installed <13>Jan 27 00:42:13 rpmi: python-modules-2.7.11-alt3 1460726088 installed <13>Jan 27 00:42:13 rpmi: rpm-build-python3-0.1.11-alt1 1484131403 installed <13>Jan 27 00:42:13 rpmi: python3-3.5.1-alt7 1462447869 installed <13>Jan 27 00:42:14 rpmi: python3-base-3.5.1-alt7 1462447869 installed <13>Jan 27 00:42:14 rpmi: python3-module-setuptools-1:18.1-alt4 1469693421 installed <13>Jan 27 00:42:14 rpmi: python-modules-xml-2.7.11-alt3 1460726088 installed <13>Jan 27 00:42:14 rpmi: python-modules-json-2.7.11-alt3 1460726088 installed <13>Jan 27 00:42:14 rpmi: python3-module-coverage-4.0-alt1.a7.git20150730.1.3 1483382956 installed <13>Jan 27 00:42:14 rpmi: python-modules-hotshot-2.7.11-alt3 1460726088 installed <13>Jan 27 00:42:14 rpmi: python-modules-ctypes-2.7.11-alt3 1460726088 installed <13>Jan 27 00:42:14 rpmi: python-modules-multiprocessing-2.7.11-alt3 1460726088 installed <13>Jan 27 00:42:14 rpmi: python-modules-logging-2.7.11-alt3 1460726088 installed <13>Jan 27 00:42:14 rpmi: python-module-six-1.10.0-alt1 1483422782 installed <13>Jan 27 00:42:14 rpmi: python-tools-2to3-2.7.11-alt3 1460726088 installed <13>Jan 27 00:42:14 rpmi: python-module-whoosh-2.7.0-alt1.hg20150805.1.1 1457859779 installed <13>Jan 27 00:42:14 rpmi: python3-module-cov-core-1.15.0-alt1.git20141122.1 1457911023 installed <13>Jan 27 00:42:14 rpmi: python3-tools-pep8-1.6.2-alt1.1.1 1460077570 installed <13>Jan 27 00:42:14 rpmi: libpython3-3.5.1-alt7 1462447869 installed <13>Jan 27 00:42:14 rpmi: python3-module-mccabe-0.3.1-alt1.1.1.1 1460077231 installed <13>Jan 27 00:42:14 rpmi: python3-module-py-1.4.32-alt1 1484069457 installed <13>Jan 27 00:42:14 rpmi: python3-module-pytest-3.0.5-alt3 1485428186 installed <13>Jan 27 00:42:14 rpmi: python-modules-bsddb-2.7.11-alt3 1460726088 installed <13>Jan 27 00:42:14 rpmi: python-2.7.11-alt3 1460726088 installed <13>Jan 27 00:42:14 rpmi: python-strict-2.7.11-alt3 1460726037 installed <13>Jan 27 00:42:15 rpmi: python-dev-2.7.11-alt3 1460726088 installed <13>Jan 27 00:42:15 rpmi: python-module-setuptools-1:18.1-alt4 1469693421 installed <13>Jan 27 00:42:15 rpmi: pyflakes-0.9.2-alt1.1 1457876105 installed <13>Jan 27 00:42:15 rpmi: python-module-coverage-4.0-alt1.a7.git20150730.1.3 1483382956 installed <13>Jan 27 00:42:15 rpmi: python-module-cov-core-1.15.0-alt1.git20141122.1 1457911023 installed <13>Jan 27 00:42:15 rpmi: python3-pyflakes-0.9.2-alt1.1 1457876105 installed <13>Jan 27 00:42:15 rpmi: python-tools-pep8-1.6.2-alt1.1.1 1460077570 installed <13>Jan 27 00:42:15 rpmi: python-module-PyStemmer-1.0.1-alt1.2.1 1321387369 installed <13>Jan 27 00:42:15 rpmi: python-module-snowballstemmer-1.2.0-alt2.1 1457859319 installed <13>Jan 27 00:42:15 rpmi: python-module-genshi-0.7-alt1.1.1.1 1460400303 installed <13>Jan 27 00:42:15 rpmi: python-module-cssselect-0.9.1-alt1.1 1457858257 installed <13>Jan 27 00:42:15 rpmi: python-module-html5lib-1:0.999999-alt1.1.1.1 1460400556 installed <13>Jan 27 00:42:15 rpmi: python-module-lxml-3.5.0-alt2.beta1.git20150727 1462232454 installed <13>Jan 27 00:42:15 rpmi: python-module-docutils-0.13.1-alt1 1484230885 installed <13>Jan 27 00:42:15 rpmi: python-module-pytz-1:2016.10-alt1 1484291011 installed <13>Jan 27 00:42:16 rpmi: python-module-babel-1:2.3.4-alt1 1477346033 installed <13>Jan 27 00:42:16 rpmi: python-module-zc-1.0.0-alt6.2 1458024144 installed <13>Jan 27 00:42:16 rpmi: python-module-zope-3.3.0-alt8.4 1458261152 installed <13>Jan 27 00:42:16 rpmi: python-module-zope.interface-4.3.3-alt1 1484368229 installed <13>Jan 27 00:42:16 rpmi: python-module-simplejson-3.10.0-alt1 1484334603 installed <13>Jan 27 00:42:16 rpmi: python-module-markupsafe-0.23-alt1.2.1 1459593526 installed <13>Jan 27 00:42:16 rpmi: python-module-jinja2-tests-2.9-alt1.dev.git20150726.1.1.1.1 1484417882 installed <13>Jan 27 00:42:16 rpmi: python-module-jinja2-2.9-alt1.dev.git20150726.1.1.1.1 1484417882 installed <13>Jan 27 00:42:16 rpmi: python-modules-sqlite3-2.7.11-alt3 1460726088 installed <13>Jan 27 00:42:16 rpmi: python-module-SQLAlchemy-1.0.12-alt1 1461160345 installed <13>Jan 27 00:42:16 rpmi: python-module-alabaster-0.7.6-alt2.git20150703 1461344248 installed <13>Jan 27 00:42:16 rpmi: python-module-sphinx-1:1.4.1-alt2 1461380581 installed <13>Jan 27 00:42:16 rpmi: python-module-Pygments-2.1.3-alt1 1461350990 installed <13>Jan 27 00:42:16 rpmi: python-module-mccabe-0.3.1-alt1.1.1.1 1460077231 installed <13>Jan 27 00:42:16 rpmi: python-module-py-1.4.32-alt1 1484069457 installed <13>Jan 27 00:42:16 rpmi: python-module-pytest-3.0.5-alt3 1485428186 installed <13>Jan 27 00:42:16 rpmi: python-module-pytest-cov-2.4.0-alt1 1484288516 installed <13>Jan 27 00:42:16 rpmi: python-module-setuptools-tests-1:18.1-alt4 1469693421 installed <13>Jan 27 00:42:16 rpmi: python-module-flake8-2.4.1-alt1.git20150710.1.1 1457958009 installed <13>Jan 27 00:42:16 rpmi: python-module-repoze.sphinx.autointerface-0.8-alt1 1484331699 installed <13>Jan 27 00:42:16 rpmi: python-module-sphinx-devel-1:1.4.1-alt2 1461380581 installed <13>Jan 27 00:42:16 rpmi: python3-module-flake8-2.4.1-alt1.git20150710.1.1 1457958009 installed <13>Jan 27 00:42:16 rpmi: python3-module-pytest-cov-2.4.0-alt1 1484288516 installed <13>Jan 27 00:42:16 rpmi: python3-module-setuptools-tests-1:18.1-alt4 1469693421 installed <13>Jan 27 00:42:17 rpmi: python3-dev-3.5.1-alt7 1462447869 installed <13>Jan 27 00:42:17 rpmi: python3-module-six-1.10.0-alt1 1483422782 installed <13>Jan 27 00:42:17 rpmi: python3-module-zope.interface-4.3.3-alt1 1484368229 installed <13>Jan 27 00:42:17 rpmi: python-module-sphinx_rtd_theme-0.1.8-alt1.git20150730.1 1457859644 installed Installing python-module-confmodel-0.2.0.1-alt3.git20140605.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.88528 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-confmodel-0.2.0.1 + echo 'Source #0 (python-module-confmodel-0.2.0.1.tar):' Source #0 (python-module-confmodel-0.2.0.1.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-confmodel-0.2.0.1.tar + cd python-module-confmodel-0.2.0.1 + /bin/chmod -c -Rf u+rwX,go-w . + cp -fR . ../python3 + find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ../python3/versioneer.py --- ../python3/versioneer.py (original) +++ ../python3/versioneer.py (refactored) @@ -466,19 +466,19 @@ if e.errno == errno.ENOENT: continue if verbose: - print("unable to run %s" % args[0]) + print(("unable to run %s" % args[0])) print(e) return None else: if verbose: - print("unable to find command, tried %s" % (commands,)) + print(("unable to find command, tried %s" % (commands,))) return None stdout = p.communicate()[0].strip() if sys.version >= '3': stdout = stdout.decode() if p.returncode != 0: if verbose: - print("unable to run %s (error)" % args[0]) + print(("unable to run %s (error)" % args[0])) return None return stdout @@ -530,15 +530,15 @@ # "stabilization", as well as "HEAD" and "master". tags = set([r for r in refs if re.search(r'\d', r)]) if verbose: - print("discarding '%s', no digits" % ",".join(refs-tags)) + print(("discarding '%s', no digits" % ",".join(refs-tags))) if verbose: - print("likely tags: %s" % ",".join(sorted(tags))) + print(("likely tags: %s" % ",".join(sorted(tags)))) for ref in sorted(tags): # sorting will prefer e.g. "2.0" over "2.0rc1" if ref.startswith(tag_prefix): r = ref[len(tag_prefix):] if verbose: - print("picking %s" % r) + print(("picking %s" % r)) return { "version": r, "full": variables["full"].strip() } # no suitable tags, so we use the full revision id @@ -555,7 +555,7 @@ if not os.path.exists(os.path.join(root, ".git")): if verbose: - print("no .git in %s" % root) + print(("no .git in %s" % root)) return {} GITS = ["git"] @@ -567,7 +567,7 @@ return {} if not stdout.startswith(tag_prefix): if verbose: - print("tag '%s' doesn't start with prefix '%s'" % (stdout, tag_prefix)) + print(("tag '%s' doesn't start with prefix '%s'" % (stdout, tag_prefix))) return {} tag = stdout[len(tag_prefix):] stdout = run_command(GITS, ["rev-parse", "HEAD"], cwd=root) @@ -585,8 +585,8 @@ dirname = os.path.basename(root) if not dirname.startswith(parentdir_prefix): if verbose: - print("guessing rootdir is '%s', but '%s' doesn't start with prefix '%s'" % - (root, dirname, parentdir_prefix)) + print(("guessing rootdir is '%s', but '%s' doesn't start with prefix '%s'" % + (root, dirname, parentdir_prefix))) return None return {"version": dirname[len(parentdir_prefix):], "full": ""} import os.path @@ -675,7 +675,7 @@ f = open(filename, "w") f.write(SHORT_VERSION_PY % versions) f.close() - print("set %s to '%s'" % (filename, versions["version"])) + print(("set %s to '%s'" % (filename, versions["version"]))) def get_root(): try: @@ -706,25 +706,25 @@ if variables: ver = versions_from_expanded_variables(variables, tag_prefix) if ver: - if verbose: print("got version from expanded variable %s" % ver) + if verbose: print(("got version from expanded variable %s" % ver)) return ver ver = versions_from_file(versionfile_abs) if ver: - if verbose: print("got version from file %s %s" % (versionfile_abs,ver)) + if verbose: print(("got version from file %s %s" % (versionfile_abs,ver))) return ver ver = versions_from_vcs(tag_prefix, root, verbose) if ver: - if verbose: print("got version from git %s" % ver) + if verbose: print(("got version from git %s" % ver)) return ver ver = versions_from_parentdir(parentdir_prefix, root, verbose) if ver: - if verbose: print("got version from parentdir %s" % ver) + if verbose: print(("got versioRefactoringTool: No changes to ../python3/setup.py RefactoringTool: Refactored ../python3/docs/conf.py n from parentdir %s" % ver)) return ver - if verbose: print("got version from default %s" % ver) + if verbose: print(("got version from default %s" % ver)) return default def get_version(verbose=False): @@ -740,7 +740,7 @@ pass def run(self): ver = get_version(verbose=True) - print("Version is currently: %s" % ver) + print(("Version is currently: %s" % ver)) class cmd_build(_build): @@ -750,7 +750,7 @@ # now locate _version.py in the new build/ directory and replace it # with an updated value target_versionfile = os.path.join(self.build_lib, versionfile_build) - print("UPDATING %s" % target_versionfile) + print(("UPDATING %s" % target_versionfile)) os.unlink(target_versionfile) f = open(target_versionfile, "w") f.write(SHORT_VERSION_PY % versions) @@ -763,7 +763,7 @@ def run(self): versions = get_versions(verbose=True) target_versionfile = versionfile_source - print("UPDATING %s" % target_versionfile) + print(("UPDATING %s" % target_versionfile)) os.unlink(target_versionfile) f = open(target_versionfile, "w") f.write(SHORT_VERSION_PY % versions) @@ -791,7 +791,7 @@ # now locate _version.py in the new base_dir directory (remembering # that it may be a hardlink) and replace it with an updated value target_versionfile = os.path.join(base_dir, versionfile_source) - print("UPDATING %s" % target_versionfile) + print(("UPDATING %s" % target_versionfile)) os.unlink(target_versionfile) f = open(target_versionfile, "w") f.write(SHORT_VERSION_PY % self._versioneer_generated_versions) @@ -812,7 +812,7 @@ def finalize_options(self): pass def run(self): - print(" creating %s" % versionfile_source) + print((" creating %s" % versionfile_source)) f = open(versionfile_source, "w") f.write(LONG_VERSION_PY % {"DOLLAR": "$", "TAG_PREFIX": tag_prefix, @@ -827,12 +827,12 @@ except EnvironmentError: old = "" if INIT_PY_SNIPPET not in old: - print(" appending to %s" % ipy) + print((" appending to %s" % ipy)) f = open(ipy, "a") f.write(INIT_PY_SNIPPET) f.close() else: - print(" %s unmodified" % ipy) + print((" %s unmodified" % ipy)) # Make sure both the top-level "versioneer.py" and versionfile_source # (PKG/_version.py, used by runtime code) are in MANIFEST.in, so @@ -859,8 +859,8 @@ else: print(" 'versioneer.py' already in MANIFEST.in") if versionfile_source not in simple_includes: - print(" appending versionfile_source ('%s') to MANIFEST.in" % - versionfile_source) + print((" appending versionfile_source ('%s') to MANIFEST.in" % + versionfile_source)) f = open(manifest_in, "a") f.write("include %s\n" % versionfile_source) f.close() --- ../python3/docs/conf.py (original) +++ ../python3/docs/conf.py (refactored) @@ -53,8 +53,8 @@ master_doc = 'index' # General information about the project. -project = u'confmodel' -copyright = u'2014, Praekelt Foundation' +project = 'confmodel' +copyright = '2014, Praekelt Foundation' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -206,8 +206,8 @@ # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - ('index', 'confmodel.tex', u'confmodel Documentation', - u'Praekelt Foundation', 'manual'), + ('index', 'confmodel.tex', 'confmodel Documentation', + 'Praekelt Foundation', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -236,8 +23RefactoringTool: Refactored ../python3/confmodel/tests/test_fields.py 6,8 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'confmodel', u'confmodel Documentation', - [u'Praekelt Foundation'], 1) + ('index', 'confmodel', 'confmodel Documentation', + ['Praekelt Foundation'], 1) ] # If true, show URL addresses after external links. @@ -250,8 +250,8 @@ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - ('index', 'confmodel', u'confmodel Documentation', - u'Praekelt Foundation', 'confmodel', 'One line description of project.', + ('index', 'confmodel', 'confmodel Documentation', + 'Praekelt Foundation', 'confmodel', 'One line description of project.', 'Miscellaneous'), ] --- ../python3/confmodel/tests/test_fields.py (original) +++ ../python3/confmodel/tests/test_fields.py (refactored) @@ -39,8 +39,8 @@ def test_text_field(self): field = self.make_field(ConfigText) self.assertEqual('foo', self.field_value(field, 'foo')) - self.assertEqual(u'foo', self.field_value(field, u'foo')) - self.assertEqual(u'foo\u1234', self.field_value(field, u'foo\u1234')) + self.assertEqual('foo', self.field_value(field, 'foo')) + self.assertEqual('foo\u1234', self.field_value(field, 'foo\u1234')) self.assertEqual(None, self.field_value(field, None)) self.assertEqual(None, self.field_value(field)) self.assert_field_invalid(field, object()) @@ -58,13 +58,13 @@ self.assertEqual(0, self.field_value(field, 0)) self.assertEqual(1, self.field_value(field, 1)) self.assertEqual(100, self.field_value(field, "100")) - self.assertEqual(100, self.field_value(field, u"100")) + self.assertEqual(100, self.field_value(field, "100")) self.assertEqual(None, self.field_value(field, None)) self.assertEqual(None, self.field_value(field)) self.assert_field_invalid(field, object()) self.assert_field_invalid(field, 2.3) self.assert_field_invalid(field, "foo") - self.assert_field_invalid(field, u"foo\u1234") + self.assert_field_invalid(field, "foo\u1234") def test_float_field(self): field = self.make_field(ConfigFloat) @@ -73,12 +73,12 @@ self.assertEqual(0.5, self.field_value(field, 0.5)) self.assertEqual(0.5, self.field_value(field, "0.5")) self.assertEqual(100, self.field_value(field, "100")) - self.assertEqual(100, self.field_value(field, u"100")) + self.assertEqual(100, self.field_value(field, "100")) self.assertEqual(None, self.field_value(field, None)) self.assertEqual(None, self.field_value(field)) self.assert_field_invalid(field, object()) self.assert_field_invalid(field, "foo") - self.assert_field_invalid(field, u"foo\u1234") + self.assert_field_invalid(field, "foo\u1234") def test_bool_field(self): field = self.make_field(ConfigBool) @@ -87,7 +87,7 @@ self.assertEqual(False, self.field_value(field, "0")) self.assertEqual(True, self.field_value(field, "true")) self.assertEqual(True, self.field_value(field, "TrUe")) - self.assertEqual(False, self.field_value(field, u"false")) + self.assertEqual(False, self.field_value(field, "false")) self.assertEqual(False, self.field_value(field, "")) self.assertEqual(True, self.field_value(field, True)) self.assertEqual(False, self.field_value(field, False)) @@ -147,9 +147,9 @@ field = self.make_field(ConfigUrl) assert_url(self.field_value(field, 'foo'), path='foo') - assert_url(self.field_value(field, u'foo'), path='foo') + assert_url(self.field_value(field, 'foo'), path='foo') if (six.PY2): - assert_url(self.field_value(field, u'foo\u1234'), + assert_url(self.field_value(field, 'foo\u1234'), path='foo\xe1\x88\xb4') self.assertEqual(None, self.field_value(fiRefactoringTool: No changes to ../python3/confmodel/tests/test_fallbacks.py RefactoringTool: No changes to ../python3/confmodel/tests/test_config.py RefactoringTool: No changes to ../python3/confmodel/interfaces.py RefactoringTool: Refactored ../python3/confmodel/fields.py RefactoringTool: No changes to ../python3/confmodel/errors.py RefactoringTool: Refactored ../python3/confmodel/config.py RefactoringTool: Refactored ../python3/confmodel/_version.py eld, None)) self.assertEqual(None, self.field_value(field)) --- ../python3/confmodel/fields.py (original) +++ ../python3/confmodel/fields.py (refactored) @@ -15,7 +15,7 @@ # XXX: We should really differentiate between "unicode" and "bytes". # However, yaml.load() gives us bytestrings or unicode depending # on the content. - if not isinstance(value, basestring): + if not isinstance(value, str): self.raise_config_error("is not unicode.") return value @@ -46,7 +46,7 @@ field_type = 'bool' def clean(self, value): - if isinstance(value, basestring): + if isinstance(value, str): return value.strip().lower() not in ('false', '0', '') return bool(value) @@ -75,10 +75,10 @@ field_type = 'URL' def clean(self, value): - if not isinstance(value, basestring): + if not isinstance(value, str): self.raise_config_error("is not a URL string.") # URLs must be bytes, not unicode. - if isinstance(value, unicode): + if isinstance(value, str): value = value.encode('utf-8') return urlparse.urlparse(value) --- ../python3/confmodel/config.py (original) +++ ../python3/confmodel/config.py (refactored) @@ -300,7 +300,7 @@ unified_class_dict.update(inspect.getmembers(base)) unified_class_dict.update(class_dict) - for key, possible_field in unified_class_dict.items(): + for key, possible_field in list(unified_class_dict.items()): if isinstance(possible_field, ConfigField): fields.append(possible_field) possible_field.setup(key) @@ -313,12 +313,10 @@ return cls -class Config(object): +class Config(object, metaclass=ConfigMetaClass): """ Config object. """ - - __metaclass__ = ConfigMetaClass def __init__(self, config_data, static=False): self._config_data = IConfigData(config_data) --- ../python3/confmodel/_version.py (original) +++ ../python3/confmodel/_version.py (refactored) @@ -33,19 +33,19 @@ if e.errno == errno.ENOENT: continue if verbose: - print("unable to run %s" % args[0]) + print(("unable to run %s" % args[0])) print(e) return None else: if verbose: - print("unable to find command, tried %s" % (commands,)) + print(("unable to find command, tried %s" % (commands,))) return None stdout = p.communicate()[0].strip() if sys.version >= '3': stdout = stdout.decode() if p.returncode != 0: if verbose: - print("unable to run %s (error)" % args[0]) + print(("unable to run %s (error)" % args[0])) return None return stdout @@ -97,15 +97,15 @@ # "stabilization", as well as "HEAD" and "master". tags = set([r for r in refs if re.search(r'\d', r)]) if verbose: - print("discarding '%s', no digits" % ",".join(refs-tags)) + print(("discarding '%s', no digits" % ",".join(refs-tags))) if verbose: - print("likely tags: %s" % ",".join(sorted(tags))) + print(("likely tags: %s" % ",".join(sorted(tags)))) for ref in sorted(tags): # sorting will prefer e.g. "2.0" over "2.0rc1" if ref.startswith(tag_prefix): r = ref[len(tag_prefix):] if verbose: - print("picking %s" % r) + print(("picking %s" % r)) return { "version": r, "full": variables["full"].strip() } # no suitable tags, so we use the full revision id @@ -122,7 +122,7 @@ if not os.path.exists(os.path.join(root, ".git")): if verbose: - print("no .git in %s" % root) + print(("no .git in %s" % root)) return {} GITS = ["git"] @@ -134,7 +134,7 @@ return {} if not stdout.startswith(tag_prefix): if verboRefactoringTool: No changes to ../python3/confmodel/__init__.py RefactoringTool: Files that were modified: RefactoringTool: ../python3/versioneer.py RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/docs/conf.py RefactoringTool: ../python3/confmodel/tests/test_fields.py RefactoringTool: ../python3/confmodel/tests/test_fallbacks.py RefactoringTool: ../python3/confmodel/tests/test_config.py RefactoringTool: ../python3/confmodel/interfaces.py RefactoringTool: ../python3/confmodel/fields.py RefactoringTool: ../python3/confmodel/errors.py RefactoringTool: ../python3/confmodel/config.py RefactoringTool: ../python3/confmodel/_version.py RefactoringTool: ../python3/confmodel/__init__.py se: - print("tag '%s' doesn't start with prefix '%s'" % (stdout, tag_prefix)) + print(("tag '%s' doesn't start with prefix '%s'" % (stdout, tag_prefix))) return {} tag = stdout[len(tag_prefix):] stdout = run_command(GITS, ["rev-parse", "HEAD"], cwd=root) @@ -152,8 +152,8 @@ dirname = os.path.basename(root) if not dirname.startswith(parentdir_prefix): if verbose: - print("guessing rootdir is '%s', but '%s' doesn't start with prefix '%s'" % - (root, dirname, parentdir_prefix)) + print(("guessing rootdir is '%s', but '%s' doesn't start with prefix '%s'" % + (root, dirname, parentdir_prefix))) return None return {"version": dirname[len(parentdir_prefix):], "full": ""} + install -pm644 /usr/share/python-sphinx/objects.inv ./ + '[' -e ./conf.py ']' + cp -u /usr/lib/python2.7/site-packages/sphinx/conf.py.template ./conf.py + ln -s ../objects.inv docs/ + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.3776 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-confmodel-0.2.0.1 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + /usr/bin/python setup.py build --debug /usr/lib/python2.7/site-packages/setuptools/dist.py:295: UserWarning: The version specified ('f1b5adbf40a3d15f31d28552c7acc6b0c433126b') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details. "details." % self.metadata.version running build got version from expanded variable {'version': 'f1b5adbf40a3d15f31d28552c7acc6b0c433126b', 'full': 'f1b5adbf40a3d15f31d28552c7acc6b0c433126b'} running build_py creating build creating build/lib creating build/lib/confmodel copying confmodel/interfaces.py -> build/lib/confmodel copying confmodel/fields.py -> build/lib/confmodel copying confmodel/fallbacks.py -> build/lib/confmodel copying confmodel/errors.py -> build/lib/confmodel copying confmodel/config.py -> build/lib/confmodel copying confmodel/_version.py -> build/lib/confmodel copying confmodel/__init__.py -> build/lib/confmodel creating build/lib/confmodel/tests copying confmodel/tests/test_fields.py -> build/lib/confmodel/tests copying confmodel/tests/test_fallbacks.py -> build/lib/confmodel/tests copying confmodel/tests/test_config.py -> build/lib/confmodel/tests copying confmodel/tests/__init__.py -> build/lib/confmodel/tests UPDATING build/lib/confmodel/_version.py + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-confmodel-0.2.0.1 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + python3 setup.py build --debug running build got version from expanded variable {'full': 'f1b5adbf40a3d15f31d28552c7acc6b0c433126b', 'version': 'f1b5adbf40a3d15f31d28552c7acc6b0c433126b'} running build_py creating build creating build/lib creating build/lib/confmodel copying confmodel/interfaces.py -> build/lib/confmodel copying confmodel/fields.py -> build/lib/confmodel copying confmodel/fallbacks.py -> build/lib/confmodel copying confmodel/errors.py -> build/lib/confmodel copying confmodel/config.py -> build/lib/confmodel copying confmodel/_version.py -> build/lib/confmodel copying confmodel/__init__.py -> build/lib/confmodel creating build/lib/confmodel/tests copying confmodel/tests/test_fields.py -> build/lib/confmodel/tests copying confmodel/tests/test_fallbacks.py -> build/lib/confmodel/tests copying confmodel/tests/test_config.py -> build/lib/confmodel/tests copying confmodel/tests/__init__.py -> build/lib/confmodel/tests /usr/lib/python3/site-packages/setuptools/dist.py:295: UserWarning: The version specified ('f1b5adbf40a3d15f31d28552c7acc6b0c433126b') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details. "details." % self.metadata.version UPDATING build/lib/confmodel/_version.py + popd ~/RPM/BUILD/python-module-confmodel-0.2.0.1 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.29086 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-confmodel-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-confmodel-buildroot + cd python-module-confmodel-0.2.0.1 + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-confmodel-buildroot --force /usr/lib/python2.7/site-packages/setuptools/dist.py:295: UserWarning: The version specified ('f1b5adbf40a3d15f31d28552c7acc6b0c433126b') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details. "details." % self.metadata.version running install running install_lib creating /usr/src/tmp/python-module-confmodel-buildroot creating /usr/src/tmp/python-module-confmodel-buildroot/usr creating /usr/src/tmp/python-module-confmodel-buildroot/usr/lib creating /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages creating /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel copying build/lib/confmodel/_version.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel creating /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/tests copying build/lib/confmodel/tests/__init__.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/tests copying build/lib/confmodel/tests/test_config.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/tests copying build/lib/confmodel/tests/test_fallbacks.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/tests copying build/lib/confmodel/tests/test_fields.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/tests copying build/lib/confmodel/__init__.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel copying build/lib/confmodel/config.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel copying build/lib/confmodel/errors.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel copying build/lib/confmodel/fallbacks.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel copying build/lib/confmodel/fields.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel copying build/lib/confmodel/interfaces.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/_version.py to _version.pyc byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/tests/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/tests/test_config.py to test_config.pyc byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/tests/test_fallbacks.py to test_fallbacks.pyc byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/tests/test_fields.py to test_fields.pyc byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/config.py to config.pyc byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/errors.py to errors.pyc byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/fallbacks.py to fallbacks.pyc byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/fields.py to fields.pyc byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/interfaces.py to interfaces.pyc running install_egg_info running egg_info creating confmodel.egg-info writing requirements to confmodel.egg-info/requires.txt writing confmodel.egg-info/PKG-INFO writing top-level names to confmodel.egg-info/top_level.txt writing dependency_links to confmodel.egg-info/dependency_links.txt writing manifest file 'confmodel.egg-info/SOURCES.txt' reading manifest file 'confmodel.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'confmodel.egg-info/SOURCES.txt' Copying confmodel.egg-info to /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel-f1b5adbf40a3d15f31d28552c7acc6b0c433126b-py2.7.egg-info running install_scripts + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-confmodel-0.2.0.1 + python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-confmodel-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel copying build/lib/confmodel/_version.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel creating /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests copying build/lib/confmodel/tests/__init__.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests copying build/lib/confmodel/tests/test_config.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests copying build/lib/confmodel/tests/test_fallbacks.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests copying build/lib/confmodel/tests/test_fields.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests copying build/lib/confmodel/__init__.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel copying build/lib/confmodel/config.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel copying build/lib/confmodel/errors.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel copying build/lib/confmodel/fallbacks.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel copying build/lib/confmodel/fields.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel copying build/lib/confmodel/interfaces.py -> /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/_version.py to _version.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests/test_config.py to test_config.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests/test_fallbacks.py to test_fallbacks.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests/test_fields.py to test_fields.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/config.py to config.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/errors.py to errors.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/fallbacks.py to fallbacks.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/fields.py to fields.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/interfaces.py to interfaces.cpython-35.pyc running install_egg_info running egg_info creating confmodel.egg-info writing requirements to confmodel.egg-info/requires.txt writing top-level names to confmodel.egg-info/top_level.txt writing confmodel.egg-info/PKG-INFO writing dependency_links to confmodel.egg-info/dependency_links.txt writing manifest file 'confmodel.egg-info/SOURCES.txt' reading manifest file 'confmodel.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'confmodel.egg-info/SOURCES.txt' Copying confmodel.egg-info to /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel-f1b5adbf40a3d15f31d28552c7acc6b0c433126b-py3.5.egg-info running install_scripts /usr/lib/python3/site-packages/setuptools/dist.py:295: UserWarning: The version specified ('f1b5adbf40a3d15f31d28552c7acc6b0c433126b') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details. "details." % self.metadata.version + popd ~/RPM/BUILD/python-module-confmodel-0.2.0.1 + export PYTHONPATH=/usr/src/RPM/BUILD/python-module-confmodel-0.2.0.1 + PYTHONPATH=/usr/src/RPM/BUILD/python-module-confmodel-0.2.0.1 + make -C docs pickle make: Entering directory `/usr/src/RPM/BUILD/python-module-confmodel-0.2.0.1/docs' sphinx-build -b pickle -d _build/doctrees . _build/pickle Running Sphinx v1.4.1 making output directory... loading pickled environment... not yet created building [mo]: targets for 0 po files that are out of date building [pickle]: targets for 6 source files that are out of date updating environment: 6 added, 0 changed, 0 removed reading sources... [ 16%] advanced reading sources... [ 33%] api reading sources... [ 50%] api_fallbacks reading sources... [ 66%] api_fields reading sources... [ 83%] index reading sources... [100%] usage looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [ 16%] advanced writing output... [ 33%] api writing output... [ 50%] api_fallbacks writing output... [ 66%] api_fields writing output... [ 83%] index writing output... [100%] usage generating indices... genindex py-modindex highlighting module code... [ 25%] zope.interface.interface highlighting module code... [ 50%] confmodel.interfaces highlighting module code... [ 75%] confmodel.errors highlighting module code... [100%] confmodel.config writing additional pages... search opensearch copying static files... WARNING: html_static_path entry u'/usr/src/RPM/BUILD/python-module-confmodel-0.2.0.1/docs/_static' does not exist done copying extra files... done dumping search index in English (code: en) ... done dumping object inventory... done build succeeded, 1 warning. Build finished; now you can process the pickle files. make: Leaving directory `/usr/src/RPM/BUILD/python-module-confmodel-0.2.0.1/docs' + make -C docs html make: Entering directory `/usr/src/RPM/BUILD/python-module-confmodel-0.2.0.1/docs' sphinx-build -b html -d _build/doctrees . _build/html Running Sphinx v1.4.1 making output directory... loading pickled environment... done building [mo]: targets for 0 po files that are out of date building [html]: targets for 6 source files that are out of date updating environment: 0 added, 0 changed, 0 removed looking for now-outdated files... none found preparing documents... done writing output... [ 16%] advanced writing output... [ 33%] api writing output... [ 50%] api_fallbacks writing output... [ 66%] api_fields writing output... [ 83%] index writing output... [100%] usage generating indices... genindex py-modindex highlighting module code... [ 25%] confmodel.interfaces highlighting module code... [ 50%] confmodel.errors highlighting module code... [ 75%] zope.interface.interface highlighting module code... [100%] confmodel.config writing additional pages... search opensearch copying static files... WARNING: html_static_path entry u'/usr/src/RPM/BUILD/python-module-confmodel-0.2.0.1/docs/_static' does not exist done copying extra files... done dumping search index in English (code: en) ... done dumping object inventory... done build succeeded, 1 warning. Build finished. The HTML pages are in _build/html. make: Leaving directory `/usr/src/RPM/BUILD/python-module-confmodel-0.2.0.1/docs' + cp -fR docs/_build/pickle /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/ + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-confmodel-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-confmodel-buildroot (binconfig,pkgconfig,libtool,desktop) Compressing files in /usr/src/tmp/python-module-confmodel-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-confmodel-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-confmodel-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/python-module-confmodel-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/tests/__init__.pyc unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/tests/test_config.pyc unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/tests/test_fallbacks.pyc unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/tests/test_fields.pyc compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/tests/__init__.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/tests/test_config.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/tests/test_fallbacks.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/tests/test_fields.py unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/__init__.pyc unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/_version.pyc unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/config.pyc unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/errors.pyc unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/fallbacks.pyc unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/fields.pyc unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/interfaces.pyc compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/__init__.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/_version.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/config.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/errors.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/fallbacks.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/fields.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/interfaces.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-confmodel-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/tests/__init__.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/tests/test_config.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/tests/test_fallbacks.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/tests/test_fields.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/__init__.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/_version.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/config.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/errors.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/fallbacks.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/fields.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python2.7/site-packages/confmodel/interfaces.py Bytecompiling python3 modules in /usr/src/tmp/python-module-confmodel-buildroot using python3 unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/__pycache__/_version.cpython-35.pyc unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/__pycache__/config.cpython-35.pyc unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/__pycache__/errors.cpython-35.pyc unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/__pycache__/fallbacks.cpython-35.pyc unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/__pycache__/fields.cpython-35.pyc unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/__pycache__/interfaces.cpython-35.pyc unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests/__pycache__/test_config.cpython-35.pyc unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests/__pycache__/test_fallbacks.cpython-35.pyc unlink /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests/__pycache__/test_fields.cpython-35.pyc compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests/__init__.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests/test_config.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests/test_fallbacks.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests/test_fields.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/__init__.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/_version.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/config.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/errors.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/fallbacks.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/fields.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/interfaces.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-confmodel-buildroot using python3 -O compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests/__init__.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests/test_config.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests/test_fallbacks.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests/test_fields.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/__init__.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/_version.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/config.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/errors.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/fallbacks.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/fields.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/interfaces.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-confmodel-buildroot using python3 -OO compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests/__init__.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests/test_config.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests/test_fallbacks.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/tests/test_fields.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/__init__.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/_version.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/config.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/errors.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/fallbacks.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/fields.py compile /usr/src/tmp/python-module-confmodel-buildroot/usr/lib/python3/site-packages/confmodel/interfaces.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/confmodel/__pycache__/interfaces.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/confmodel/__pycache__/interfaces.cpython-35.pyc' './usr/lib/python3/site-packages/confmodel/__pycache__/fields.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/confmodel/__pycache__/fields.cpython-35.pyc' './usr/lib/python3/site-packages/confmodel/__pycache__/fields.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/confmodel/__pycache__/fields.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/confmodel/__pycache__/fallbacks.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/confmodel/__pycache__/fallbacks.cpython-35.pyc' './usr/lib/python3/site-packages/confmodel/__pycache__/fallbacks.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/confmodel/__pycache__/fallbacks.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/confmodel/__pycache__/errors.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/confmodel/__pycache__/errors.cpython-35.pyc' './usr/lib/python3/site-packages/confmodel/__pycache__/config.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/confmodel/__pycache__/config.cpython-35.pyc' './usr/lib/python3/site-packages/confmodel/__pycache__/_version.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/confmodel/__pycache__/_version.cpython-35.pyc' './usr/lib/python3/site-packages/confmodel/__pycache__/_version.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/confmodel/__pycache__/_version.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/confmodel/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/confmodel/__pycache__/__init__.cpython-35.pyc' './usr/lib/python3/site-packages/confmodel/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/confmodel/__pycache__/__init__.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/confmodel/tests/__pycache__/test_fields.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/confmodel/tests/__pycache__/test_fields.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/confmodel/tests/__pycache__/test_fallbacks.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/confmodel/tests/__pycache__/test_fallbacks.cpython-35.pyc' './usr/lib/python3/site-packages/confmodel/tests/__pycache__/test_fallbacks.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/confmodel/tests/__pycache__/test_fallbacks.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/confmodel/tests/__pycache__/test_config.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/confmodel/tests/__pycache__/test_config.cpython-35.pyc' './usr/lib/python3/site-packages/confmodel/tests/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/confmodel/tests/__pycache__/__init__.cpython-35.pyc' './usr/lib/python3/site-packages/confmodel/tests/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/confmodel/tests/__pycache__/__init__.cpython-35.opt-1.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/confmodel/interfaces.pyo' => './usr/lib/python2.7/site-packages/confmodel/interfaces.pyc' './usr/lib/python2.7/site-packages/confmodel/fields.pyo' => './usr/lib/python2.7/site-packages/confmodel/fields.pyc' './usr/lib/python2.7/site-packages/confmodel/fallbacks.pyo' => './usr/lib/python2.7/site-packages/confmodel/fallbacks.pyc' './usr/lib/python2.7/site-packages/confmodel/errors.pyo' => './usr/lib/python2.7/site-packages/confmodel/errors.pyc' './usr/lib/python2.7/site-packages/confmodel/config.pyo' => './usr/lib/python2.7/site-packages/confmodel/config.pyc' './usr/lib/python2.7/site-packages/confmodel/_version.pyo' => './usr/lib/python2.7/site-packages/confmodel/_version.pyc' './usr/lib/python2.7/site-packages/confmodel/__init__.pyo' => './usr/lib/python2.7/site-packages/confmodel/__init__.pyc' './usr/lib/python2.7/site-packages/confmodel/tests/test_fallbacks.pyo' => './usr/lib/python2.7/site-packages/confmodel/tests/test_fallbacks.pyc' './usr/lib/python2.7/site-packages/confmodel/tests/test_config.pyo' => './usr/lib/python2.7/site-packages/confmodel/tests/test_config.pyc' './usr/lib/python2.7/site-packages/confmodel/tests/__init__.pyo' => './usr/lib/python2.7/site-packages/confmodel/tests/__init__.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.29257 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-confmodel-0.2.0.1 + python setup.py test /usr/lib/python2.7/site-packages/setuptools/dist.py:295: UserWarning: The version specified ('f1b5adbf40a3d15f31d28552c7acc6b0c433126b') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details. "details." % self.metadata.version running test + rm -fR build + py.test -vv ============================= test session starts ============================== platform linux2 -- Python 2.7.11, pytest-3.0.5, py-1.4.32, pluggy-0.4.0 -- /usr/bin/python cachedir: .cache rootdir: /usr/src/RPM/BUILD/python-module-confmodel-0.2.0.1, inifile: plugins: cov-2.4.0 collecting ... collected 34 items confmodel/tests/test_config.py::TestConfig::test_default_field PASSED confmodel/tests/test_config.py::TestConfig::test_doc PASSED confmodel/tests/test_config.py::TestConfig::test_doc_indentation PASSED confmodel/tests/test_config.py::TestConfig::test_double_inheritance PASSED confmodel/tests/test_config.py::TestConfig::test_fields_read_only PASSED confmodel/tests/test_config.py::TestConfig::test_inheritance PASSED confmodel/tests/test_config.py::TestConfig::test_post_validate PASSED confmodel/tests/test_config.py::TestConfig::test_required_field PASSED confmodel/tests/test_config.py::TestConfig::test_simple_config PASSED confmodel/tests/test_config.py::TestConfig::test_static_field PASSED confmodel/tests/test_config.py::TestConfig::test_static_validation PASSED confmodel/tests/test_config.py::TestConfig::test_validation PASSED confmodel/tests/test_config.py::TestFieldFallback::test_build_value_not_implemented PASSED confmodel/tests/test_config.py::TestFieldFallback::test_field_present PASSED confmodel/tests/test_config.py::TestFieldFallback::test_get_field_descriptor PASSED confmodel/tests/test_config.py::TestFieldFallback::test_present PASSED confmodel/tests/test_config.py::TestFieldFallback::test_present_not_implemented PASSED confmodel/tests/test_fallbacks.py::TestFieldFallbacks::test_format_string_field_fallback PASSED confmodel/tests/test_fallbacks.py::TestFieldFallbacks::test_format_string_field_fallback_optional_fields PASSED confmodel/tests/test_fallbacks.py::TestFieldFallbacks::test_single_field_fallback PASSED confmodel/tests/test_fallbacks.py::TestConfigFieldWithFallback::test_field_ignores_unnecessary_fallback PASSED confmodel/tests/test_fallbacks.py::TestConfigFieldWithFallback::test_field_not_present_if_fallback_missing PASSED confmodel/tests/test_fallbacks.py::TestConfigFieldWithFallback::test_field_present_if_fallback_present PASSED confmodel/tests/test_fallbacks.py::TestConfigFieldWithFallback::test_field_uses_fallback PASSED confmodel/tests/test_fields.py::TestConfigFields::test_bool_field PASSED confmodel/tests/test_fields.py::TestConfigFields::test_dict_field PASSED confmodel/tests/test_fields.py::TestConfigFields::test_dict_field_immutable PASSED confmodel/tests/test_fields.py::TestConfigFields::test_float_field PASSED confmodel/tests/test_fields.py::TestConfigFields::test_int_field PASSED confmodel/tests/test_fields.py::TestConfigFields::test_list_field PASSED confmodel/tests/test_fields.py::TestConfigFields::test_list_field_immutable PASSED confmodel/tests/test_fields.py::TestConfigFields::test_regex_field PASSED confmodel/tests/test_fields.py::TestConfigFields::test_text_field PASSED confmodel/tests/test_fields.py::TestConfigFields::test_url_field PASSED ========================== 34 passed in 0.20 seconds =========================== + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-confmodel-0.2.0.1 + python3 setup.py test running test /usr/lib/python3/site-packages/setuptools/dist.py:295: UserWarning: The version specified ('f1b5adbf40a3d15f31d28552c7acc6b0c433126b') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details. "details." % self.metadata.version + rm -fR build + py.test-3.5 -vv /usr/src/tmp/rpm-tmp.29257: line 127: py.test-3.5: command not found error: Bad exit status from /usr/src/tmp/rpm-tmp.29257 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.29257 (%check) Command exited with non-zero status 1 9.05user 1.17system 0:10.13elapsed 100%CPU (0avgtext+0avgdata 47184maxresident)k 0inputs+0outputs (0major+174648minor)pagefaults 0swaps hsh-rebuild: rebuild of `python-module-confmodel-0.2.0.1-alt3.git20140605.1.src.rpm' failed. Command exited with non-zero status 1 32.05user 6.79system 0:38.30elapsed 101%CPU (0avgtext+0avgdata 133320maxresident)k 2184inputs+0outputs (0major+484471minor)pagefaults 0swaps