<86>Nov 17 12:23:43 userdel[70261]: delete user 'rooter' <86>Nov 17 12:23:43 userdel[70261]: removed group 'rooter' owned by 'rooter' <86>Nov 17 12:23:43 userdel[70261]: removed shadow group 'rooter' owned by 'rooter' <86>Nov 17 12:23:43 groupadd[70300]: group added to /etc/group: name=rooter, GID=663 <86>Nov 17 12:23:43 groupadd[70300]: group added to /etc/gshadow: name=rooter <86>Nov 17 12:23:43 groupadd[70300]: new group: name=rooter, GID=663 <86>Nov 17 12:23:43 useradd[70306]: new user: name=rooter, UID=663, GID=663, home=/root, shell=/bin/bash <86>Nov 17 12:23:43 userdel[70313]: delete user 'builder' <86>Nov 17 12:23:43 userdel[70313]: removed group 'builder' owned by 'builder' <86>Nov 17 12:23:43 userdel[70313]: removed shadow group 'builder' owned by 'builder' <86>Nov 17 12:23:43 groupadd[70318]: group added to /etc/group: name=builder, GID=664 <86>Nov 17 12:23:43 groupadd[70318]: group added to /etc/gshadow: name=builder <86>Nov 17 12:23:43 groupadd[70318]: new group: name=builder, GID=664 <86>Nov 17 12:23:43 useradd[70322]: new user: name=builder, UID=664, GID=664, home=/usr/src, shell=/bin/bash <13>Nov 17 12:23:46 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Nov 17 12:23:46 rpmi: libexpat-2.2.4-alt1 1503305345 installed <13>Nov 17 12:23:46 rpmi: libp11-kit-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Nov 17 12:23:46 rpmi: libtasn1-4.14-alt1 p9+235792.100.2.1 1565425233 installed <13>Nov 17 12:23:46 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Nov 17 12:23:46 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Nov 17 12:23:46 rpmi: ca-certificates-2019.10.28-alt1 p9+240634.100.1.1 1573575926 installed <13>Nov 17 12:23:46 rpmi: ca-trust-0.1.2-alt1 p9+233349.100.1.1 1561655062 installed <13>Nov 17 12:23:46 rpmi: p11-kit-trust-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Nov 17 12:23:46 rpmi: libcrypto1.1-1.1.1d-alt1.1 p9+237853.200.3.1 1569251834 installed <13>Nov 17 12:23:46 rpmi: libssl1.1-1.1.1d-alt1.1 p9+237853.200.3.1 1569251834 installed <13>Nov 17 12:23:46 rpmi: python3-3.7.4-alt2 p9+239459.100.1.1 1571444790 installed <13>Nov 17 12:23:46 rpmi: libpython3-3.7.4-alt2 p9+239459.100.1.1 1571444790 installed <13>Nov 17 12:23:47 rpmi: python3-base-3.7.4-alt2 p9+239459.100.1.1 1571444790 installed <13>Nov 17 12:23:47 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Nov 17 12:23:47 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Nov 17 12:23:47 rpmi: rpm-macros-sphinx-1:1.6.5-alt4 sisyphus+228232.100.1.1 1556298645 installed <13>Nov 17 12:23:50 rpmi: python-module-sphinxcontrib-2.1.1-alt2.1.2 sisyphus+227529.1100.1.2 1555924423 installed <13>Nov 17 12:23:50 rpmi: python3-module-six-1.12.0-alt1 sisyphus+219665.100.2.1 1548148570 installed <13>Nov 17 12:23:50 rpmi: python3-module-pluggy-0.11.0-alt1 sisyphus+229116.100.1.1 1557316655 installed <13>Nov 17 12:23:50 rpmi: python3-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Nov 17 12:23:50 rpmi: python3-module-more-itertools-7.0.0-alt3 sisyphus+226536.100.1.1 1554329928 installed <13>Nov 17 12:23:50 rpmi: python3-module-iniconfig-1.0.0-alt1 sisyphus+227494.1100.1.3 1555839106 installed <13>Nov 17 12:23:50 rpmi: python3-module-attrs-19.1.0-alt1 sisyphus+227473.2100.1.2 1555756986 installed <13>Nov 17 12:23:50 rpmi: python3-module-atomicwrites-1.3.0-alt1 sisyphus+227473.2000.1.3 1555763467 installed <13>Nov 17 12:23:50 rpmi: python3-module-apipkg-1.5-alt1 sisyphus+227465.1100.1.2 1555756555 installed <13>Nov 17 12:23:50 rpmi: python3-module-py-1.8.0-alt2 sisyphus+228349.1400.4.1 1556631070 installed <13>Nov 17 12:23:50 rpmi: python-module-iniconfig-1.0.0-alt1 sisyphus+227494.1100.1.3 1555839106 installed <13>Nov 17 12:23:50 rpmi: python-module-apipkg-1.5-alt1 1531926894 installed <13>Nov 17 12:23:50 rpmi: python-module-imagesize-1.1.0-alt1 sisyphus+229015.100.2.1 1557233756 installed <13>Nov 17 12:23:50 rpmi: python-sphinx-objects.inv-1:2.3.8.20190514-alt1 p9+229421.100.1.1 1557927689 installed <13>Nov 17 12:23:50 rpmi: python-module-google-0.4.2-alt2.1 sisyphus+228356.1500.3.1 1556633057 installed <13>Nov 17 12:23:50 rpmi: python-module-enum34-1.1.6-alt3 1527251693 installed <13>Nov 17 12:23:50 rpmi: python-modules-curses-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 12:23:50 rpmi: libxapian-1.4.5-alt3 sisyphus+222778.100.1.1 1551144773 installed <13>Nov 17 12:23:50 rpmi: libsqlite3-3.29.0-alt1 p9+237498.100.1.1 1568303696 installed <13>Nov 17 12:23:50 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Nov 17 12:23:50 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed <13>Nov 17 12:23:50 rpmi: libgpg-error-1.36-alt1 sisyphus+225621.300.1.1 1553521082 installed <13>Nov 17 12:23:50 rpmi: libgcrypt20-1.8.4-alt2 sisyphus+229280.100.1.1 1557742126 installed <13>Nov 17 12:23:50 rpmi: libxslt-1.1.33-alt1 sisyphus+226936.100.1.1 1554820937 installed <13>Nov 17 12:23:50 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <86>Nov 17 12:23:50 groupadd[81259]: group added to /etc/group: name=_keytab, GID=499 <86>Nov 17 12:23:50 groupadd[81259]: group added to /etc/gshadow: name=_keytab <86>Nov 17 12:23:50 groupadd[81259]: new group: name=_keytab, GID=499 <13>Nov 17 12:23:51 rpmi: libkrb5-1.16.3-alt1 sisyphus+223678.100.1.1 1551746516 installed <13>Nov 17 12:23:51 rpmi: libtirpc-1.0.3-alt1 1532008017 installed <13>Nov 17 12:23:51 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Nov 17 12:23:51 rpmi: python-modules-compiler-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 12:23:51 rpmi: python-modules-email-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 12:23:51 rpmi: python-modules-unittest-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 12:23:51 rpmi: python-modules-encodings-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 12:23:51 rpmi: python-modules-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 12:23:51 rpmi: python-modules-nis-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 12:23:51 rpmi: python-module-six-1.12.0-alt1 sisyphus+219665.100.2.1 1548148570 installed <13>Nov 17 12:23:51 rpmi: python-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Nov 17 12:23:51 rpmi: python-modules-ctypes-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 12:23:51 rpmi: python-modules-json-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 12:23:51 rpmi: python-modules-xml-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 12:23:51 rpmi: python-modules-multiprocessing-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 12:23:51 rpmi: python-modules-logging-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 12:23:51 rpmi: python-modules-hotshot-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 12:23:51 rpmi: python-module-chardet-3.0.4-alt1 sisyphus+227476.1700.1.2 1555756717 installed <13>Nov 17 12:23:51 rpmi: python-module-whoosh-2.7.4-alt1 1527697941 installed <13>Nov 17 12:23:51 rpmi: python-module-webencodings-0.5.1-alt1.1 1517943573 installed <13>Nov 17 12:23:51 rpmi: python-module-more-itertools-1:5.0.0-alt2 sisyphus+226536.200.1.1 1554329977 installed <13>Nov 17 12:23:51 rpmi: python-modules-bsddb-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 12:23:51 rpmi: python-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 12:23:51 rpmi: python-strict-2.7.16-alt1 sisyphus+226365.200.2.1 1554143277 installed <13>Nov 17 12:23:51 rpmi: python-module-bson-3.6.0-alt1.1 sisyphus+225625.14500.91.1 1555291351 installed <13>Nov 17 12:23:51 rpmi: python-module-pymongo-3.6.0-alt1.1 sisyphus+225625.14500.91.1 1555291351 installed <13>Nov 17 12:23:51 rpmi: python-modules-distutils-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 12:23:51 rpmi: python-module-pymongo-gridfs-3.6.0-alt1.1 sisyphus+225625.14500.91.1 1555291351 installed <13>Nov 17 12:23:51 rpmi: python-module-pycparser-2.19-alt1 sisyphus+228366.1000.2.3 1556706938 installed <13>Nov 17 12:23:51 rpmi: python-module-cffi-1.12.3-alt1 sisyphus+229040.200.3.1 1557316452 installed <13>Nov 17 12:23:51 rpmi: python-module-asn1crypto-0.24.0-alt1 sisyphus+227473.1300.1.2 1555756512 installed <13>Nov 17 12:23:51 rpmi: python-module-PyStemmer-1.0.1-alt1.2.1 1321388303 installed <13>Nov 17 12:23:51 rpmi: python-module-snowballstemmer-1.2.0-alt2.1 1457859319 installed <13>Nov 17 12:23:51 rpmi: python-module-cssselect-0.9.1-alt1.2 sisyphus+227479.1100.1.2 1555757152 installed <13>Nov 17 12:23:51 rpmi: python-module-html5lib-1:0.999999999-alt4.qa1 sisyphus+227493.600.1.3 1555835341 installed <13>Nov 17 12:23:51 rpmi: python-module-lxml-4.3.3-alt1.1 sisyphus+225625.33200.91.1 1555314727 installed <13>Nov 17 12:23:52 rpmi: python-module-docutils-0.14-alt2 1535729778 installed <13>Nov 17 12:23:52 rpmi: python-module-idna-2.8-alt1 sisyphus+227494.400.1.3 1555838720 installed <13>Nov 17 12:23:52 rpmi: python-module-ntlm-1.1.0-alt1.2 sisyphus+228512.100.1.1 1556654575 installed <13>Nov 17 12:23:52 rpmi: python-module-pytz-1:2016.10-alt1 1484291011 installed <13>Nov 17 12:23:52 rpmi: python-module-babel-1:2.6.0-alt1 sisyphus+228351.2400.6.2 1556652168 installed <13>Nov 17 12:23:52 rpmi: python-module-attrs-19.1.0-alt1 sisyphus+227473.2100.1.2 1555756986 installed <13>Nov 17 12:23:52 rpmi: python-module-ipaddress-1.0.18-alt1.1 sisyphus+227494.1700.1.3 1555839523 installed <13>Nov 17 12:23:52 rpmi: python-module-cryptography-2.6.1-alt1 sisyphus+225625.24400.91.1 1555298600 installed <13>Nov 17 12:23:52 rpmi: python-module-OpenSSL-18.0.0-alt1 1532996168 installed <13>Nov 17 12:23:52 rpmi: python-module-simplejson-3.15.0-alt1.qa1 sisyphus+225625.16100.91.1 1555292381 installed <13>Nov 17 12:23:52 rpmi: python-module-ndg-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853234 installed <13>Nov 17 12:23:52 rpmi: python-module-ndg-httpsclient-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853234 installed <13>Nov 17 12:23:52 rpmi: python-module-backports-3.5.0.1-alt1.1.1 1517645428 installed <13>Nov 17 12:23:52 rpmi: python-module-backports.ssl_match_hostname-3.5.0.1-alt1.1.1 1517645428 installed <13>Nov 17 12:23:52 rpmi: python-module-urllib3-2:1.24.3-alt1 sisyphus+228978.100.1.1 1557126149 installed <13>Nov 17 12:23:52 rpmi: python-module-requests-2.21.0-alt1 sisyphus+228370.100.2.2 1556711628 installed <13>Nov 17 12:23:52 rpmi: python-module-typing-3.6.6-alt2 sisyphus+220108.100.1.1 1548749697 installed <13>Nov 17 12:23:52 rpmi: python-module-markupsafe-0.23-alt1.2.1.1 sisyphus+225625.12200.91.1 1555289337 installed <13>Nov 17 12:23:52 rpmi: python-module-jinja2-2.10-alt1 1521724576 installed <13>Nov 17 12:23:52 rpmi: python-modules-sqlite3-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 12:23:52 rpmi: python-module-SQLAlchemy-1.2.15-alt1 sisyphus+225625.4500.91.1 1555284142 installed <13>Nov 17 12:23:52 rpmi: python-module-py-1.8.0-alt2 sisyphus+228349.1400.4.1 1556631070 installed <13>Nov 17 12:23:52 rpmi: python-module-funcsigs-1.0.2-alt2 sisyphus+228355.2600.2.1 1556560236 installed <13>Nov 17 12:23:52 rpmi: python-module-scandir-1.10.0-alt1 sisyphus+225192.100.1.2 1552968870 installed <13>Nov 17 12:23:52 rpmi: python-module-pathlib2-2.3.3-alt1 sisyphus+228364.300.4.1 1556886257 installed <13>Nov 17 12:23:52 rpmi: python-module-atomicwrites-1.3.0-alt1 sisyphus+227473.2000.1.3 1555763467 installed <13>Nov 17 12:23:53 rpmi: python-module-xapian-1.4.5-alt3 sisyphus+225625.23000.91.1 1555296582 installed <13>Nov 17 12:23:53 rpmi: python-module-pluggy-0.11.0-alt1 sisyphus+229116.100.1.1 1557316655 installed <13>Nov 17 12:23:53 rpmi: python-module-pytest-3.10.1-alt5 sisyphus+228366.2000.2.3 1556707871 installed <13>Nov 17 12:23:53 rpmi: python-module-sphinxcontrib-websupport-1.0.1-alt3.qa1 sisyphus+227529.1200.1.2 1555924506 installed <13>Nov 17 12:23:53 rpmi: python-module-alabaster-0.7.6-alt3 sisyphus+228351.700.4.1 1556637370 installed <13>Nov 17 12:23:53 rpmi: python-module-Pygments-2.2.0-alt2 1526455576 installed <13>Nov 17 12:23:53 rpmi: python-module-sphinx-1:1.6.5-alt4 sisyphus+228232.100.1.1 1556298645 installed <13>Nov 17 12:23:53 rpmi: python-module-mongoengine-0.10.0-alt2.2 sisyphus+227503.1200.1.2 1555852058 installed <13>Nov 17 12:23:53 rpmi: python3-module-pytest-3.10.1-alt5 sisyphus+228366.2000.2.3 1556707871 installed <13>Nov 17 12:23:53 rpmi: python3-module-pytz-1:2016.10-alt1 1484291011 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python-module-datastream-0.4.1-alt1.git20150108.1.2.nosrc.rpm <13>Nov 17 12:23:56 rpmi: python-tools-2to3-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 12:23:56 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Nov 17 12:23:56 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Nov 17 12:23:56 rpmi: python3-dev-3.7.4-alt2 p9+239459.100.1.1 1571444790 installed <13>Nov 17 12:23:56 rpmi: libnsl2-devel-1.1.0-alt1_1 1511548749 installed <13>Nov 17 12:23:56 rpmi: python-dev-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 12:23:56 rpmi: python-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Nov 17 12:23:56 rpmi: python3-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed Installing python-module-datastream-0.4.1-alt1.git20150108.1.2.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.7959 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-datastream-0.4.1 + echo 'Source #0 (python-module-datastream-0.4.1.tar):' Source #0 (python-module-datastream-0.4.1.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-datastream-0.4.1.tar + cd python-module-datastream-0.4.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/tests/test_basic.py --- ../python3/tests/test_basic.py (original) +++ ../python3/tests/test_basic.py (refactored) @@ -63,10 +63,10 @@ class BasicTest(MongoDBBasicTest): def _test_data_types(self, data): for d in data: - self.assertIsInstance(d['v'], (int, long, float, decimal.Decimal, dict, None.__class__)) + self.assertIsInstance(d['v'], (int, int, float, decimal.Decimal, dict, None.__class__)) if isinstance(d['v'], dict): - for v in d['v'].values(): - self.assertIsInstance(v, (int, long, float, decimal.Decimal, None.__class__)) + for v in list(d['v'].values()): + self.assertIsInstance(v, (int, int, float, decimal.Decimal, None.__class__)) def test_basic(self): query_tags = { @@ -167,8 +167,8 @@ # At least Seconds10 and Minutes granularities should be available because we artificially increased backend time # See https://github.com/wlanslovenija/datastream/issues/12 self.assertTrue(len(new_datapoints) >= 2) - self.assertEquals(new_datapoints[0]['datapoint']['v'], {'c': 1, 'd': 0, 'm': 42.0, 'l': 42, 'q': 1764, 's': 42, 'u': 42}) - self.assertEquals(new_datapoints[6]['datapoint']['v'], {'c': 1, 'd': 0, 'm': 42.0, 'l': 42, 'q': 1764, 's': 42, 'u': 42}) + self.assertEqual(new_datapoints[0]['datapoint']['v'], {'c': 1, 'd': 0, 'm': 42.0, 'l': 42, 'q': 1764, 's': 42, 'u': 42}) + self.assertEqual(new_datapoints[6]['datapoint']['v'], {'c': 1, 'd': 0, 'm': 42.0, 'l': 42, 'q': 1764, 's': 42, 'u': 42}) data = self.datastream.get_data( stream_id, @@ -223,10 +223,10 @@ self.assertEqual(len(data), 1) data = list(data) self._test_data_types(data) - self.assertItemsEqual(data[0]['v'].keys(), value_downsamplers_keys) - self.assertItemsEqual(data[0]['t'].keys(), time_downsamplers_keys) + self.assertItemsEqual(list(data[0]['v'].keys()), value_downsamplers_keys) + self.assertItemsEqual(list(data[0]['t'].keys()), time_downsamplers_keys) self.assertItemsEqual(data[0], cb_datapoint) - self.assertTrue(datastream.VALUE_DOWNSAMPLERS['count'] in data[0]['v'].keys()) + self.assertTrue(datastream.VALUE_DOWNSAMPLERS['count'] in list(data[0]['v'].keys())) data = self.datastream.get_data( stream_id, @@ -236,10 +236,10 @@ self.assertEqual(len(data), 1) data = list(data) self._test_data_types(data) - self.assertItemsEqual(data[0]['v'].keys(), value_downsamplers_keys) - self.assertItemsEqual(data[0]['t'].keys(), time_downsamplers_keys) + self.assertItemsEqual(list(data[0]['v'].keys()), value_downsamplers_keys) + self.assertItemsEqual(list(data[0]['t'].keys()), time_downsamplers_keys) self.assertItemsEqual(data[0], cb_datapoint) - self.assertTrue(datastream.VALUE_DOWNSAMPLERS['count'] in data[0]['v'].keys()) + self.assertTrue(datastream.VALUE_DOWNSAMPLERS['count'] in list(data[0]['v'].keys())) datapoint = data[0] @@ -252,7 +252,7 @@ self.assertEqual(len(data), 1) data = list(data) self._test_data_types(data) - self.assertItemsEqual(data[0]['v'].keys(), (datastream.VALUE_DOWNSAMPLERS['count'],)) + self.assertItemsEqual(list(data[0]['v'].keys()), (datastream.VALUE_DOWNSAMPLERS['count'],)) self.assertEqual(data[0]['v'][datastream.VALUE_DOWNSAMPLERS['count']], datapoint['v'][datastream.VALUE_DOWNSAMPLERS['count']]) self.assertEqual(data[0]['t'], datapoint['t']) @@ -266,7 +266,7 @@ data = list(data) self._test_data_types(data) self.assertItemsEqual(data[0]['v'], datapoint['v']) - self.assertItemsEqual(data[0]['t'].keys(), (datastream.TIME_DOWNSAMPLERS['first'],)) + self.assertItemsEqual(list(data[0]['t'].keys()), (datastream.TIME_DOWNSAMPLERS['first'],)) self.assertEqual(data[0]['t'][datastream.TIME_DOWNSAMPLERS['first']], datapoint['t'][datastream.TIME_DOWNSAMPLERS['first']]) data = self.datastream.get_data( @@ -279,9 +279,9 @@ self.assertEqual(len(data), 1) data = list(data) self._test_data_types(data) - self.assertItemsEqual(data[0]['v'].keys(), (datastream.VALUE_DOWNSAMPLERS['count'],)) + self.assertItemsEqual(list(data[0]['v'].keys()), (datastream.VALUE_DOWNSAMPLERS['count'],)) self.assertEqual(data[0]['v'][datastream.VALUE_DOWNSAMPLERS['count']], datapoint['v'][datastream.VALUE_DOWNSAMPLERS['count']]) - self.assertItemsEqual(data[0]['t'].keys(), (datastream.TIME_DOWNSAMPLERS['first'],)) + self.assertItemsEqual(list(data[0]['t'].keys()), (datastream.TIME_DOWNSAMPLERS['first'],)) self.assertEqual(data[0]['t'][datastream.TIME_DOWNSAMPLERS['first']], datapoint['t'][datastream.TIME_DOWNSAMPLERS['first']]) data = self.datastream.get_data( @@ -559,7 +559,7 @@ derive_op='sum', ) - for i in xrange(32): + for i in range(32): ts = datetime.datetime(2000, 1, 1, 12, 0, i, tzinfo=pytz.utc) self.datastream.append(streamA_id, 5, ts) self.datastream.append(streamB_id, 5, ts) @@ -893,7 +893,7 @@ def test_big_integers(self): stream_id = self.datastream.ensure_stream({'name': 'foo'}, {}, self.value_downsamplers, datastream.Granularity.Seconds) - for i in xrange(40): + for i in range(40): ts = datetime.datetime(2000, 1, 1, 12, 0, i, tzinfo=pytz.utc) if i < 20: self.datastream.append(stream_id, 340282366920938463463374607431768211456, ts) @@ -926,7 +926,7 @@ # Test derived streams other_stream_id = self.datastream.ensure_stream({'name': 'bar'}, {}, self.value_downsamplers, datastream.Granularity.Seconds) - for i in xrange(40): + for i in range(40): ts = datetime.datetime(2000, 1, 1, 12, 0, i, tzinfo=pytz.utc) self.datastream.append(other_stream_id, 340282366920938463463374607431768211456, ts) @@ -1306,7 +1306,7 @@ # We check that downsampling results are consistent. # Create some datapoints so there is something to downsample - for i in xrange(5): + for i in range(5): ts = datetime.datetime(2000, 1, 1, 0, 0, i, tzinfo=pytz.utc) self.datastream.append(stream_id, 1, ts) # Sleep so there will be some datapoints to downsample outside the margin @@ -1331,10 +1331,10 @@ self.assertEqual(len(datapoints), 28) def test_concurrent(self): - for i in xrange(10): + for i in range(10): stream_id = self.datastream.ensure_stream({'name': i}, {}, self.value_downsamplers, datastream.Granularity.Seconds) ts = datetime.datetime(2000, 1, 1, 0, 0, 0, tzinfo=pytz.utc) - for j in xrange(1000): + for j in range(1000): self.datastream.append(stream_id, 1, ts) ts += datetime.timedelta(seconds=4) @@ -1348,7 +1348,7 @@ threads = [] results = collections.deque() with self.time_offset(): - for i in xrange(5): + for i in range(5): t = threading.Thread(target=worker, args=(results,)) threads.append(t) t.start() @@ -1362,7 +1362,7 @@ if isinstance(result, int): all_datapoints += result else: - raise result[1], None, result[2] + raise result[1].with_traceback(result[2]) self.assertEqual(all_datapoints, 4720) @@ -1372,7 +1372,7 @@ ts0 = datetime.datetime(2000, 1, 1, 0, 0, 0, tzinfo=pytz.utc) ts = ts0 - for i in xrange(100): + for i in range(100): self.datastream.append(stream_id, 0.05, ts) ts += datetime.timedelta(seconds=1) @@ -1388,7 +1388,7 @@ points = 43205 interval = 2 downsample_every = 5000 - src_data = [random.randint(-1000, 1000) for _ in xrange(poinRefactoringTool: No changes to ../python3/setup.py RefactoringTool: Refactored ../python3/docs/conf.py RefactoringTool: No changes to ../python3/datastream/exceptions.py RefactoringTool: Refactored ../python3/datastream/backends/mongodb.py ts)] + src_data = [random.randint(-1000, 1000) for _ in range(points)] ts0 = datetime.datetime(2000, 1, 1, 0, 0, 0, tzinfo=pytz.utc) ts = ts0 @@ -1435,7 +1435,7 @@ ts0 = datetime.datetime(2000, 1, 1, 0, 0, 0, tzinfo=pytz.utc) ts = ts0 - for i in xrange(100): + for i in range(100): self.datastream.append(stream_id, 0.05, ts) ts += datetime.timedelta(seconds=1) @@ -1460,7 +1460,7 @@ with self.assertRaises(ValueError): self.datastream.append(stream_id, {'m': 3, 's': 9, 'l': 3, 'u': 3, 'q': 27, 'd': 0, 'c': 3, 'extra': 77}, ts) - for i in xrange(30): + for i in range(30): self.datastream.append(stream_id, {'m': 3, 's': 9, 'l': 3, 'u': 3, 'q': 27, 'd': 0, 'c': 3}, ts) self.datastream.append(stream_id, 3, ts) self.datastream.append(stream_id, 3, ts) @@ -2008,12 +2008,12 @@ with self.time_offset(): self.datastream.downsample_streams(until=ts) t2 = time.time() - print "%08d insert: %d:%02d downsample: %d:%02d" % ( + print("%08d insert: %d:%02d downsample: %d:%02d" % ( i, (t1 - start_time) / 60, (t1 - start_time) % 60, (t2 - t1) / 60, (t2 - t1) % 60, - ) + )) start_time = t2 --- ../python3/docs/conf.py (original) +++ ../python3/docs/conf.py (refactored) @@ -45,8 +45,8 @@ master_doc = 'index' # General information about the project. -project = u'datastream' -copyright = u'2012, wlan slovenija' +project = 'datastream' +copyright = '2012, wlan slovenija' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -188,8 +188,8 @@ # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ - ('index', 'datastream.tex', u'datastream Documentation', - u'wlan slovenija', 'manual'), + ('index', 'datastream.tex', 'datastream Documentation', + 'wlan slovenija', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -218,8 +218,8 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'datastream', u'datastream Documentation', - [u'wlan slovenija'], 1) + ('index', 'datastream', 'datastream Documentation', + ['wlan slovenija'], 1) ] # If true, show URL addresses after external links. @@ -232,8 +232,8 @@ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - ('index', 'datastream', u'datastream Documentation', - u'wlan slovenija', 'datastream', 'One line description of project.', + ('index', 'datastream', 'datastream Documentation', + 'wlan slovenija', 'datastream', 'One line description of project.', 'Miscellaneous'), ] --- ../python3/datastream/backends/mongodb.py (original) +++ ../python3/datastream/backends/mongodb.py (refactored) @@ -45,7 +45,7 @@ with decimal.localcontext() as ctx: ctx.prec = DECIMAL_PRECISION - if isinstance(value, (int, long)): + if isinstance(value, int): return value elif isinstance(value, float): decimal_value = +float_to_decimal(value) @@ -56,7 +56,7 @@ return decimal_value elif isinstance(value, decimal.Decimal): return value - elif isinstance(value, basestring): + elif isinstance(value, str): try: return int(value) except ValueError: @@ -76,7 +76,7 @@ if isinstance(value, float): return value - elif isinstance(value, (int, long)) and (value > MAXIMUM_INTEGER or value < MINIMUM_INTEGER): + elif isinstance(value, int) and (value > MAXIMUM_INTEGER or value < MINIMUM_INTEGER): return str(value) elif isinstance(value, decimal.Decimal): int_value = int(value) @@ -629,7 +629,7 @@ # Note that this append may be called multiple times with the same timestamp when # multiple threads are calling update try: - values = [deserialize_numeric_value(x) for x in self._stream.derive_state[ts_key].values() if x is not None] + values = [deserialize_numeric_value(x) for x in list(self._stream.derive_state[ts_key].values()) if x is not None] s = sum(values) if values else None self._backend._append(self._stream, s, rounded_ts) except exceptions.InvalidTimestamp: @@ -638,7 +638,7 @@ # Any keys that are less than or equal to ts_key are safe to remove as we have just # appended something, and no threads can insert data between datapoints in the past unset = {} - for key in self._stream.derive_state.keys(): + for key in list(self._stream.derive_state.keys()): if key <= ts_key: unset['derive_state.%s' % key] = '' @@ -919,7 +919,7 @@ if isinstance(key, slice): return Streams(self.datastream, queryset=self.queryset.__getitem__(key)) - elif isinstance(key, (int, long)): + elif isinstance(key, int): return self.datastream._get_stream_tags(self.queryset.__getitem__(key)) else: raise TypeError @@ -960,7 +960,7 @@ if isinstance(key, slice): return Datapoints(self.datastream, cursor=self.cursor.__getitem__(key), empty_time=self.empty_time) - elif isinstance(key, (int, long)): + elif isinstance(key, int): return self.datastream._format_datapoint(self.cursor.__getitem__(key), self.empty_time) else: raise TypeError @@ -1260,7 +1260,7 @@ # If any of the input streams already holds some data, we pause our stream; there # is a potential race condition here, but this should not result in great loss try: - self.get_data(unicode(src_stream.external_id), src_stream.highest_granularity, self._min_timestamp)[0] + self.get_data(str(src_stream.external_id), src_stream.highest_granularity, self._min_timestamp)[0] stream.pending_backprocess = True except IndexError: pass @@ -1327,7 +1327,7 @@ except Stream.MultipleObjectsReturned: raise exceptions.MultipleStreamsReturned - return unicode(stream.external_id) + return str(stream.external_id) def _map_derived_from(self, stream): """ @@ -1340,7 +1340,7 @@ stream_ids = [] for stream_id in stream.derived_from.stream_ids: sstream = Stream.objects.get(id=int(stream_id)) - stream_ids.append(unicode(sstream.external_id)) + stream_ids.append(str(sstream.external_id)) return { 'stream_ids': stream_ids, @@ -1357,9 +1357,9 @@ """ result = {} - for stream_id, descriptor in stream.contributes_to.items(): + for stream_id, descriptor in list(stream.contributes_to.items()): stream = Stream.objects.get(id=int(stream_id)) - result[unicode(stream.external_id)] = { + result[str(stream.external_id)] = { 'op': descriptor.op, 'args': descriptor.args, } @@ -1373,7 +1373,7 @@ tags = stream.tags tags.update({ - 'stream_id': unicode(stream.external_id), + 'stream_id': str(stream.external_id), 'value_downsamplers': stream.value_downsamplers, 'time_downsamplers': self.tRefactoringTool: Refactored ../python3/datastream/api.py ime_downsamplers, 'highest_granularity': stream.highest_granularity, @@ -1424,7 +1424,7 @@ if prefix is None: prefix = 'tags' - for k, v in tags.iteritems(): + for k, v in tags.items(): if isinstance(v, collections.Mapping): v = v if value is None else value ops.update(self._get_tag_query_dict('%s__%s' % (prefix, k), v)) @@ -1536,7 +1536,7 @@ return # Update any streams we are contributing to - for stream_id, descriptor in stream.contributes_to.iteritems(): + for stream_id, descriptor in stream.contributes_to.items(): if descriptor.granularity != granularity: continue @@ -1644,7 +1644,7 @@ object_id = self._generate_object_id(timestamp) - for i in xrange(10): + for i in range(10): if check_timestamp: if stream.latest_datapoint and object_id.generation_time < stream.latest_datapoint: raise exceptions.InvalidTimestamp("Datapoint timestamp must be equal or larger (newer) than the latest one '%s': %s" % (stream.latest_datapoint, object_id.generation_time)) @@ -1743,7 +1743,7 @@ result['v'] = datapoint['v'] if isinstance(result['v'], dict): - for k, v in result['v'].iteritems(): + for k, v in result['v'].items(): try: result['v'][k] = deserialize_numeric_value(v) except TypeError: @@ -2262,7 +2262,7 @@ sstream, descriptor, # TODO: Implement a _get_data that operates directly on Stream instances - iter(self.get_data(unicode(sstream.external_id), descriptor.granularity, self._min_timestamp)) + iter(self.get_data(str(sstream.external_id), descriptor.granularity, self._min_timestamp)) )) # Ensure that streams are in the proper order @@ -2283,7 +2283,7 @@ datapoint = lookahead.get(sstream) if datapoint is None: try: - datapoint = data.next() + datapoint = next(data) except StopIteration: continue @@ -2304,7 +2304,7 @@ while get_timestamp(datapoint) <= current_ts: derive_operator.update(sstream, datapoint['t'], datapoint['v'], name=descriptor.name) try: - datapoint = data.next() + datapoint = next(data) except StopIteration: datapoint = None break --- ../python3/datastream/api.py (original) +++ ../python3/datastream/api.py (refactored) @@ -8,7 +8,7 @@ class Granularity(object): - class _Base(object): + class _Base(object, metaclass=_BaseMetaclass): # To be overridden. _order = None _key = None @@ -35,8 +35,7 @@ def __str__(cls): return cls._name - __metaclass__ = _BaseMetaclass - + @utils.class_property def name(cls): # pylint: disable=no-self-argument return cls._name @@ -60,7 +59,7 @@ time_values = {} for atom in cls._round_rule: - if isinstance(atom, basestring): + if isinstance(atom, str): time_values[atom] = getattr(timestamp, atom) else: time_values[atom[0]] = getattr(timestamp, atom[0]) // atom[1] * atom[1] @@ -172,7 +171,7 @@ del self.tags['earliest_datapoint'] del self.tags['downsampled_until'] del self.tags['value_type'] - except KeyError, exception: + except KeyError as exception: raise ValueError("Supplied tags are missing %s." % exception) RESERVED_TAGS = ( @@ -282,7 +281,7 @@ self.backend._switchRefactoringTool: Files that were modified: RefactoringTool: ../python3/tests/test_basic.py RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/docs/conf.py RefactoringTool: ../python3/datastream/exceptions.py RefactoringTool: ../python3/datastream/backends/mongodb.py RefactoringTool: ../python3/datastream/api.py _database(database_name) def _check_query_tags(self, tags): - for key, value in tags.iteritems(): + for key, value in tags.items(): # One should use nested dicts and not `__`. if '__' in key: raise exceptions.ReservedTagNameError("Reserved tag name used: %s" % key) @@ -291,7 +290,7 @@ self._check_query_tags(value) def _check_tags(self, tags): - for key, value in tags.iteritems(): + for key, value in tags.items(): if key in RESERVED_TAGS: raise exceptions.ReservedTagNameError("Reserved tag name used: %s" % key) + 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.9004 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-datastream-0.4.1 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/datastream copying datastream/utils.py -> build/lib/datastream copying datastream/exceptions.py -> build/lib/datastream copying datastream/api.py -> build/lib/datastream copying datastream/__init__.py -> build/lib/datastream creating build/lib/datastream/backends copying datastream/backends/mongodb.py -> build/lib/datastream/backends copying datastream/backends/__init__.py -> build/lib/datastream/backends running egg_info creating datastream.egg-info writing requirements to datastream.egg-info/requires.txt writing datastream.egg-info/PKG-INFO writing top-level names to datastream.egg-info/top_level.txt writing dependency_links to datastream.egg-info/dependency_links.txt writing manifest file 'datastream.egg-info/SOURCES.txt' reading manifest file 'datastream.egg-info/SOURCES.txt' writing manifest file 'datastream.egg-info/SOURCES.txt' + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-datastream-0.4.1 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/datastream copying datastream/utils.py -> build/lib/datastream copying datastream/exceptions.py -> build/lib/datastream copying datastream/api.py -> build/lib/datastream copying datastream/__init__.py -> build/lib/datastream creating build/lib/datastream/backends copying datastream/backends/mongodb.py -> build/lib/datastream/backends copying datastream/backends/__init__.py -> build/lib/datastream/backends running egg_info creating datastream.egg-info writing datastream.egg-info/PKG-INFO writing dependency_links to datastream.egg-info/dependency_links.txt writing requirements to datastream.egg-info/requires.txt writing top-level names to datastream.egg-info/top_level.txt writing manifest file 'datastream.egg-info/SOURCES.txt' reading manifest file 'datastream.egg-info/SOURCES.txt' writing manifest file 'datastream.egg-info/SOURCES.txt' + popd ~/RPM/BUILD/python-module-datastream-0.4.1 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.27050 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-datastream-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-datastream-buildroot + cd python-module-datastream-0.4.1 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-datastream-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-datastream-buildroot creating /usr/src/tmp/python-module-datastream-buildroot/usr creating /usr/src/tmp/python-module-datastream-buildroot/usr/lib creating /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages creating /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream creating /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/backends copying build/lib/datastream/backends/__init__.py -> /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/backends copying build/lib/datastream/backends/mongodb.py -> /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/backends copying build/lib/datastream/__init__.py -> /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream copying build/lib/datastream/api.py -> /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream copying build/lib/datastream/exceptions.py -> /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream copying build/lib/datastream/utils.py -> /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream byte-compiling /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/backends/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/backends/mongodb.py to mongodb.pyc byte-compiling /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/api.py to api.pyc byte-compiling /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/exceptions.py to exceptions.pyc byte-compiling /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/utils.py to utils.pyc running install_egg_info running egg_info writing requirements to datastream.egg-info/requires.txt writing datastream.egg-info/PKG-INFO writing top-level names to datastream.egg-info/top_level.txt writing dependency_links to datastream.egg-info/dependency_links.txt reading manifest file 'datastream.egg-info/SOURCES.txt' writing manifest file 'datastream.egg-info/SOURCES.txt' Copying datastream.egg-info to /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream-0.4.1-py2.7.egg-info running install_scripts + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-datastream-0.4.1 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-datastream-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream creating /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/backends copying build/lib/datastream/backends/__init__.py -> /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/backends copying build/lib/datastream/backends/mongodb.py -> /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/backends copying build/lib/datastream/__init__.py -> /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream copying build/lib/datastream/api.py -> /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream copying build/lib/datastream/exceptions.py -> /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream copying build/lib/datastream/utils.py -> /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream byte-compiling /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/backends/__init__.py to __init__.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/backends/mongodb.py to mongodb.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/__init__.py to __init__.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/api.py to api.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/exceptions.py to exceptions.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/utils.py to utils.cpython-37.pyc running install_egg_info running egg_info writing datastream.egg-info/PKG-INFO writing dependency_links to datastream.egg-info/dependency_links.txt writing requirements to datastream.egg-info/requires.txt writing top-level names to datastream.egg-info/top_level.txt reading manifest file 'datastream.egg-info/SOURCES.txt' writing manifest file 'datastream.egg-info/SOURCES.txt' Copying datastream.egg-info to /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream-0.4.1-py3.7.egg-info running install_scripts + popd ~/RPM/BUILD/python-module-datastream-0.4.1 + export PYTHONPATH=/usr/src/RPM/BUILD/python-module-datastream-0.4.1 + PYTHONPATH=/usr/src/RPM/BUILD/python-module-datastream-0.4.1 + make -C docs pickle make: Entering directory '/usr/src/RPM/BUILD/python-module-datastream-0.4.1/docs' python `which sphinx-build` -b pickle -d build/doctrees . build/pickle Running Sphinx v1.6.5 making output directory... Generating grammar tables from /usr/lib/python2.7/site-packages/sphinx/pycode/Grammar-py2.txt loading pickled environment... not yet created loading intersphinx inventory from objects.inv... loading intersphinx inventory from objects.inv... building [mo]: targets for 0 po files that are out of date building [pickle]: targets for 4 source files that are out of date updating environment: 4 added, 0 changed, 0 removed reading sources... [ 25%] index /usr/lib/python2.7/site-packages/sphinx/environment/__init__.py:686: RemovedInSphinx17Warning: html_use_smartypants option is deprecated. Smart quotes are on by default; if you want to disable or customize them, use the smart_quotes option in docutils.conf. RemovedInSphinx17Warning) reading sources... [ 50%] installation reading sources... [ 75%] reference reading sources... [100%] usage looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [ 25%] index writing output... [ 50%] installation writing output... [ 75%] reference writing output... [100%] usage generating indices... genindex py-modindex writing additional pages... search opensearch copying static files... done copying extra files... done dumping search index in English (code: en) ... done dumping object inventory... done build succeeded. Build finished; now you can process the pickle files. make: Leaving directory '/usr/src/RPM/BUILD/python-module-datastream-0.4.1/docs' + make -C docs html make: Entering directory '/usr/src/RPM/BUILD/python-module-datastream-0.4.1/docs' python `which sphinx-build` -b html -d build/doctrees . build/html Running Sphinx v1.6.5 making output directory... Generating grammar tables from /usr/lib/python2.7/site-packages/sphinx/pycode/Grammar-py2.txt loading pickled environment... done loading intersphinx inventory from objects.inv... loading intersphinx inventory from objects.inv... building [mo]: targets for 0 po files that are out of date building [html]: targets for 4 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... [ 25%] index writing output... [ 50%] installation writing output... [ 75%] reference writing output... [100%] usage generating indices... genindex py-modindex writing additional pages... search opensearch copying static files... done copying extra files... done dumping search index in English (code: en) ... done dumping object inventory... done build succeeded. Build finished. The HTML pages are in build/html. make: Leaving directory '/usr/src/RPM/BUILD/python-module-datastream-0.4.1/docs' + cp -fR docs/build/pickle /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/ + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-datastream-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-datastream-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/python-module-datastream-buildroot/ (default) Compressing files in /usr/src/tmp/python-module-datastream-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-datastream-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-datastream-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-datastream-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/backends/__init__.pyc unlink /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/backends/mongodb.pyc compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/backends/__init__.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/backends/mongodb.py unlink /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/__init__.pyc unlink /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/api.pyc unlink /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/exceptions.pyc unlink /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/utils.pyc compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/__init__.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/api.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/exceptions.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/utils.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-datastream-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/backends/__init__.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/backends/mongodb.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/__init__.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/api.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/exceptions.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/utils.py Bytecompiling python3 modules in /usr/src/tmp/python-module-datastream-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/__pycache__/__init__.cpython-37.pyc unlink /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/__pycache__/api.cpython-37.pyc unlink /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/__pycache__/exceptions.cpython-37.pyc unlink /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/__pycache__/utils.cpython-37.pyc unlink /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/backends/__pycache__/__init__.cpython-37.pyc unlink /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/backends/__pycache__/mongodb.cpython-37.pyc compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/backends/__init__.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/backends/mongodb.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/__init__.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/api.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/exceptions.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/utils.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-datastream-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/backends/__init__.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/backends/mongodb.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/__init__.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/api.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/exceptions.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/utils.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-datastream-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/backends/__init__.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/backends/mongodb.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/__init__.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/api.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/exceptions.py compile /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/utils.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/datastream/__pycache__/utils.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/datastream/__pycache__/utils.cpython-37.pyc' './usr/lib/python3/site-packages/datastream/__pycache__/utils.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/datastream/__pycache__/utils.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/datastream/__pycache__/exceptions.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/datastream/__pycache__/exceptions.cpython-37.pyc' './usr/lib/python3/site-packages/datastream/__pycache__/__init__.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/datastream/__pycache__/__init__.cpython-37.pyc' './usr/lib/python3/site-packages/datastream/__pycache__/__init__.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/datastream/__pycache__/__init__.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/datastream/backends/__pycache__/__init__.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/datastream/backends/__pycache__/__init__.cpython-37.pyc' './usr/lib/python3/site-packages/datastream/backends/__pycache__/__init__.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/datastream/backends/__pycache__/__init__.cpython-37.opt-1.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/datastream/utils.pyo' => './usr/lib/python2.7/site-packages/datastream/utils.pyc' './usr/lib/python2.7/site-packages/datastream/exceptions.pyo' => './usr/lib/python2.7/site-packages/datastream/exceptions.pyc' './usr/lib/python2.7/site-packages/datastream/__init__.pyo' => './usr/lib/python2.7/site-packages/datastream/__init__.pyc' './usr/lib/python2.7/site-packages/datastream/backends/__init__.pyo' => './usr/lib/python2.7/site-packages/datastream/backends/__init__.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.77774 Check is turned off by --disable check Processing files: python-module-datastream-0.4.1-alt1.git20150108.1.2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.94042 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-datastream-0.4.1 + DOCDIR=/usr/src/tmp/python-module-datastream-buildroot/usr/share/doc/python-module-datastream-0.4.1 + export DOCDIR + rm -rf /usr/src/tmp/python-module-datastream-buildroot/usr/share/doc/python-module-datastream-0.4.1 + /bin/mkdir -p /usr/src/tmp/python-module-datastream-buildroot/usr/share/doc/python-module-datastream-0.4.1 + cp -prL README.rst /usr/src/tmp/python-module-datastream-buildroot/usr/share/doc/python-module-datastream-0.4.1 + chmod -R go-w /usr/src/tmp/python-module-datastream-buildroot/usr/share/doc/python-module-datastream-0.4.1 + chmod -R a+rX /usr/src/tmp/python-module-datastream-buildroot/usr/share/doc/python-module-datastream-0.4.1 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.HoF1Nh find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.sPobFk find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/__init__.py: line=1 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/api.py: line=7 possible relative import from ., UNIMPLEMENTED python.req: /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/backends/mongodb.py: skipping sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python2.7/site-packages/datastream/backends/mongodb.py: line=22 possible relative import from ., UNIMPLEMENTED Provides: python2.7(datastream), python2.7(datastream.api), python2.7(datastream.backends), python2.7(datastream.backends.mongodb), python2.7(datastream.exceptions), python2.7(datastream.utils) Requires: python2.7(mongoengine), python2.7(pymongo), python2.7(pytz), /usr/lib/python2.7/site-packages, python-modules, python2.7(bson), python2.7(inspect) Processing files: python3-module-datastream-0.4.1-alt1.git20150108.1.2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.13361 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-datastream-0.4.1 + DOCDIR=/usr/src/tmp/python-module-datastream-buildroot/usr/share/doc/python3-module-datastream-0.4.1 + export DOCDIR + rm -rf /usr/src/tmp/python-module-datastream-buildroot/usr/share/doc/python3-module-datastream-0.4.1 + /bin/mkdir -p /usr/src/tmp/python-module-datastream-buildroot/usr/share/doc/python3-module-datastream-0.4.1 + cp -prL README.rst /usr/src/tmp/python-module-datastream-buildroot/usr/share/doc/python3-module-datastream-0.4.1 + chmod -R go-w /usr/src/tmp/python-module-datastream-buildroot/usr/share/doc/python3-module-datastream-0.4.1 + chmod -R a+rX /usr/src/tmp/python-module-datastream-buildroot/usr/share/doc/python3-module-datastream-0.4.1 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.cO8qh2 find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.yNEOg9 find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/__init__.py: line=1 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/api.py: line=7 possible relative import from ., UNIMPLEMENTED python3.req: /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/backends/mongodb.py: skipping sys python3.req: /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/backends/mongodb.py: skipping time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/backends/mongodb.py: line=22 possible relative import from ., UNIMPLEMENTED Provides: python3(datastream), python3(datastream.api), python3(datastream.backends), python3(datastream.backends.mongodb), python3(datastream.exceptions), python3(datastream.utils) Requires: python3(mongoengine) < 0, python3(pymongo) < 0, python3(pytz) < 0, /usr/lib/python3/site-packages, python3(bson) < 0, python3(calendar) < 0, python3(collections) < 0, python3(datetime) < 0, python3(decimal) < 0, python3(inspect) < 0, python3(numbers) < 0, python3(os) < 0, python3(struct) < 0, python3(threading) < 0, python3(uuid) < 0, python3(warnings) < 0 Processing files: python-module-datastream-pickles-0.4.1-alt1.git20150108.1.2 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.FqmESM find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.KNjm2g find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) Requires: /usr/lib/python2.7/site-packages Processing files: python-module-datastream-docs-0.4.1-alt1.git20150108.1.2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.33796 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-datastream-0.4.1 + DOCDIR=/usr/src/tmp/python-module-datastream-buildroot/usr/share/doc/python-module-datastream-docs-0.4.1 + export DOCDIR + rm -rf /usr/src/tmp/python-module-datastream-buildroot/usr/share/doc/python-module-datastream-docs-0.4.1 + /bin/mkdir -p /usr/src/tmp/python-module-datastream-buildroot/usr/share/doc/python-module-datastream-docs-0.4.1 + cp -prL docs/build/html/_sources docs/build/html/_static docs/build/html/genindex.html docs/build/html/index.html docs/build/html/installation.html docs/build/html/objects.inv docs/build/html/py-modindex.html docs/build/html/reference.html docs/build/html/search.html docs/build/html/searchindex.js docs/build/html/usage.html /usr/src/tmp/python-module-datastream-buildroot/usr/share/doc/python-module-datastream-docs-0.4.1 + chmod -R go-w /usr/src/tmp/python-module-datastream-buildroot/usr/share/doc/python-module-datastream-docs-0.4.1 + chmod -R a+rX /usr/src/tmp/python-module-datastream-buildroot/usr/share/doc/python-module-datastream-docs-0.4.1 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.EfNEUF find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.OkM5qJ find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) Wrote: /usr/src/RPM/RPMS/noarch/python-module-datastream-0.4.1-alt1.git20150108.1.2.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/python3-module-datastream-0.4.1-alt1.git20150108.1.2.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/python-module-datastream-pickles-0.4.1-alt1.git20150108.1.2.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/python-module-datastream-docs-0.4.1-alt1.git20150108.1.2.noarch.rpm 22.69user 1.21system 0:40.32elapsed 59%CPU (0avgtext+0avgdata 56392maxresident)k 0inputs+0outputs (0major+378338minor)pagefaults 0swaps 34.13user 4.88system 0:58.70elapsed 66%CPU (0avgtext+0avgdata 116400maxresident)k 272inputs+0outputs (0major+957751minor)pagefaults 0swaps