<86>Apr 14 01:24:04 userdel[83267]: delete user 'rooter' <86>Apr 14 01:24:04 userdel[83267]: removed group 'rooter' owned by 'rooter' <86>Apr 14 01:24:04 userdel[83267]: removed shadow group 'rooter' owned by 'rooter' <86>Apr 14 01:24:04 groupadd[83289]: group added to /etc/group: name=rooter, GID=591 <86>Apr 14 01:24:04 groupadd[83289]: group added to /etc/gshadow: name=rooter <86>Apr 14 01:24:04 groupadd[83289]: new group: name=rooter, GID=591 <86>Apr 14 01:24:04 useradd[83312]: new user: name=rooter, UID=591, GID=591, home=/root, shell=/bin/bash <86>Apr 14 01:24:04 userdel[83331]: delete user 'builder' <86>Apr 14 01:24:04 userdel[83331]: removed group 'builder' owned by 'builder' <86>Apr 14 01:24:04 userdel[83331]: removed shadow group 'builder' owned by 'builder' <86>Apr 14 01:24:04 groupadd[83348]: group added to /etc/group: name=builder, GID=592 <86>Apr 14 01:24:04 groupadd[83348]: group added to /etc/gshadow: name=builder <86>Apr 14 01:24:04 groupadd[83348]: new group: name=builder, GID=592 <86>Apr 14 01:24:04 useradd[83376]: new user: name=builder, UID=592, GID=592, home=/usr/src, shell=/bin/bash <13>Apr 14 01:24:07 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 14 01:24:07 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 14 01:24:07 rpmi: python-module-google-0.4.0-alt2.1 1457968526 installed <13>Apr 14 01:24:07 rpmi: python-module-sphinx_rtd_theme-0.1.8-alt1.git20150730.1 1457859644 installed <13>Apr 14 01:24:07 rpmi: python-sphinx-objects.inv-2.3.6.20160413-alt1 1460595508 installed <13>Apr 14 01:24:07 rpmi: libxapian-1.2.23-alt1 1459318465 installed <13>Apr 14 01:24:07 rpmi: python-module-xapian-1.2.23-alt1.M80P.1 1503464748 installed <13>Apr 14 01:24:07 rpmi: libsqlite3-3.15.2-alt1 1480432212 installed <13>Apr 14 01:24:07 rpmi: libgpg-error-1.31-alt1.M80P.1 1529024730 installed <13>Apr 14 01:24:07 rpmi: libgcrypt20-1.8.3-alt4 p8+219793.200.6.1 1551112986 installed <13>Apr 14 01:24:07 rpmi: libxslt-1.1.28-alt4 1448210404 installed <13>Apr 14 01:24:07 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Apr 14 01:24:07 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Apr 14 01:24:07 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:24:07 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 14 01:24:07 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 14 01:24:07 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 14 01:24:07 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 14 01:24:07 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 14 01:24:07 rpmi: rpm-macros-sphinx-1:1.4-alt8.a0.git20150813 1460726255 installed <13>Apr 14 01:24:07 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 14 01:24:07 groupadd[91947]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 14 01:24:07 groupadd[91947]: new group: name=_keytab, GID=499 <13>Apr 14 01:24:07 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 14 01:24:07 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:24:08 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:24:08 rpmi: python3-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 14 01:24:08 rpmi: python3-module-pytz-1:2015.4-alt1.1.1 1460413776 installed <13>Apr 14 01:24:08 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:24:08 rpmi: python3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:24:08 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Apr 14 01:24:08 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:24:08 rpmi: python3-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 14 01:24:08 rpmi: python3-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 14 01:24:08 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:24:08 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:24:08 rpmi: python-modules-json-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:24:08 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:24:08 rpmi: python-module-bson-3.0.3-alt1.1.1 1459599114 installed <13>Apr 14 01:24:08 rpmi: python-module-pymongo-3.0.3-alt1.1.1 1459599114 installed <13>Apr 14 01:24:08 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:24:08 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:24:08 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:24:08 rpmi: python-module-six-1.10.0-alt7 1496087616 installed <13>Apr 14 01:24:08 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:24:08 rpmi: python-module-whoosh-2.7.0-alt1.hg20150805.1.1 1457859779 installed <13>Apr 14 01:24:08 rpmi: python-module-pymongo-gridfs-3.0.3-alt1.1.1 1459599114 installed <13>Apr 14 01:24:08 rpmi: python-module-webencodings-0.5.1-alt0.M80P.1 1507185481 installed <13>Apr 14 01:24:08 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:24:08 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:24:08 rpmi: python-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:24:08 rpmi: python-strict-2.7.11-alt6.M80P.1 1527682534 installed <13>Apr 14 01:24:08 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:24:08 rpmi: python-module-PyStemmer-1.0.1-alt1.2.1 1321387369 installed <13>Apr 14 01:24:08 rpmi: python-module-snowballstemmer-1.2.0-alt2.1 1457859319 installed <13>Apr 14 01:24:08 rpmi: python-module-pytz-1:2015.4-alt1.1.1 1460413776 installed <13>Apr 14 01:24:08 rpmi: python-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 14 01:24:08 rpmi: python-module-simplejson-3.15.0-alt1.M80P.1 1528995430 installed <13>Apr 14 01:24:08 rpmi: python-module-markupsafe-0.23-alt1.2.1 1459593526 installed <13>Apr 14 01:24:08 rpmi: python-modules-sqlite3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:24:09 rpmi: python-module-SQLAlchemy-1.2.15-alt1 p8+223214.600.2.1 1551354313 installed <13>Apr 14 01:24:09 rpmi: python-module-mongoengine-0.10.0-alt2.1 1457990813 installed <13>Apr 14 01:24:09 rpmi: python-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 14 01:24:09 rpmi: python-module-jinja2-2.9-alt1.dev.git20150726.1.1.1 1460400640 installed <13>Apr 14 01:24:09 rpmi: python-module-babel-1:2.3.4-alt0.M80P.1 1480881327 installed <13>Apr 14 01:24:09 rpmi: python-module-jinja2-tests-2.9-alt1.dev.git20150726.1.1.1 1460400640 installed <13>Apr 14 01:24:09 rpmi: python-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 14 01:24:09 rpmi: python-module-cssselect-0.9.1-alt1.1 1457858257 installed <13>Apr 14 01:24:09 rpmi: python-module-lxml-4.0.0-alt0.M80P.1 1507163741 installed <13>Apr 14 01:24:09 rpmi: python-module-docutils-0.13-alt4.git20150716.1.1 1460400317 installed <13>Apr 14 01:24:09 rpmi: python-module-html5lib-1:0.999999999-alt1.M80P.2 1507185603 installed <13>Apr 14 01:24:10 rpmi: python-module-Pygments-2.2.0-alt1.M80P.2 p8.214223.100 1538848792 installed <13>Apr 14 01:24:10 rpmi: python-module-alabaster-0.7.6-alt1.git20150703.1 1457857919 installed <13>Apr 14 01:24:10 rpmi: python-module-sphinx-1:1.4-alt8.a0.git20150813 1460726255 installed Installing python-module-datastream-0.4.1-alt1.git20150108.1.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.54994 + 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)) @@ -1697,7 +1697,7 @@ } # Call test callback after everything - if callable(self._test_callback): + if isinstance(self._test_callback, collections.Callable): self._test_callback(**ret) return ret @@ -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'] RefactoringTool: 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 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._switch_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.32012 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-datastream-0.4.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 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 -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 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 dependency_links to datastream.egg-info/dependency_links.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.32012 + 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 + /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 + 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-35.pyc byte-compiling /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/backends/mongodb.py to mongodb.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/api.py to api.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/exceptions.py to exceptions.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/utils.py to utils.cpython-35.pyc running install_egg_info running egg_info writing datastream.egg-info/PKG-INFO writing requirements to datastream.egg-info/requires.txt 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/python3/site-packages/datastream-0.4.1-py3.5.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.4a0+ making output directory... 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 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.4a0+ making output directory... 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) 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 python3 unlink /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/__pycache__/api.cpython-35.pyc unlink /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/__pycache__/exceptions.cpython-35.pyc unlink /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/__pycache__/utils.cpython-35.pyc unlink /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/backends/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-datastream-buildroot/usr/lib/python3/site-packages/datastream/backends/__pycache__/mongodb.cpython-35.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 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 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-35.opt-1.pyc' => './usr/lib/python3/site-packages/datastream/__pycache__/utils.cpython-35.pyc' './usr/lib/python3/site-packages/datastream/__pycache__/utils.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/datastream/__pycache__/utils.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/datastream/__pycache__/exceptions.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/datastream/__pycache__/exceptions.cpython-35.pyc' './usr/lib/python3/site-packages/datastream/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/datastream/__pycache__/__init__.cpython-35.pyc' './usr/lib/python3/site-packages/datastream/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/datastream/__pycache__/__init__.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/datastream/backends/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/datastream/backends/__pycache__/__init__.cpython-35.pyc' './usr/lib/python3/site-packages/datastream/backends/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/datastream/backends/__pycache__/__init__.cpython-35.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.33342 Check is turned off by --disable check Processing files: python-module-datastream-0.4.1-alt1.git20150108.1.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.33342 + 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.fjUslg 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.XPh1H0 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.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.70898 + 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.LPqMqO 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.jzzC8E 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.3(datastream), python3(datastream.api), python3(datastream.backends), python3(datastream.backends.mongodb), python3(datastream.exceptions), python3(datastream.utils), python3.3(datastream.api), python3.3(datastream.backends), python3.3(datastream.backends.mongodb), python3.3(datastream.exceptions), python3.3(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.1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.B6ZX6D 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.fzc4fG 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.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.26548 + 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.n9YqNL 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.DhdxgU 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.1.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/python3-module-datastream-0.4.1-alt1.git20150108.1.1.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/python-module-datastream-pickles-0.4.1-alt1.git20150108.1.1.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/python-module-datastream-docs-0.4.1-alt1.git20150108.1.1.noarch.rpm 10.36user 0.90system 0:20.43elapsed 55%CPU (0avgtext+0avgdata 81820maxresident)k 0inputs+0outputs (0major+374668minor)pagefaults 0swaps 15.91user 3.32system 0:29.37elapsed 65%CPU (0avgtext+0avgdata 121864maxresident)k 272inputs+0outputs (0major+672192minor)pagefaults 0swaps --- python3-module-datastream-0.4.1-alt1.git20150108.1.1.noarch.rpm.repo 2016-03-13 23:32:52.000000000 +0000 +++ python3-module-datastream-0.4.1-alt1.git20150108.1.1.noarch.rpm.hasher 2019-04-14 01:24:32.673697099 +0000 @@ -1,17 +1,23 @@ /usr/lib/python3/site-packages/datastream 40755 -/usr/lib/python3/site-packages/datastream-0.4.1-py3.3.egg-info 40755 -/usr/lib/python3/site-packages/datastream-0.4.1-py3.3.egg-info/PKG-INFO 100644 -/usr/lib/python3/site-packages/datastream-0.4.1-py3.3.egg-info/SOURCES.txt 100644 -/usr/lib/python3/site-packages/datastream-0.4.1-py3.3.egg-info/dependency_links.txt 100644 -/usr/lib/python3/site-packages/datastream-0.4.1-py3.3.egg-info/not-zip-safe 100644 -/usr/lib/python3/site-packages/datastream-0.4.1-py3.3.egg-info/requires.txt 100644 -/usr/lib/python3/site-packages/datastream-0.4.1-py3.3.egg-info/top_level.txt 100644 +/usr/lib/python3/site-packages/datastream-0.4.1-py3.5.egg-info 40755 +/usr/lib/python3/site-packages/datastream-0.4.1-py3.5.egg-info/PKG-INFO 100644 +/usr/lib/python3/site-packages/datastream-0.4.1-py3.5.egg-info/SOURCES.txt 100644 +/usr/lib/python3/site-packages/datastream-0.4.1-py3.5.egg-info/dependency_links.txt 100644 +/usr/lib/python3/site-packages/datastream-0.4.1-py3.5.egg-info/not-zip-safe 100644 +/usr/lib/python3/site-packages/datastream-0.4.1-py3.5.egg-info/requires.txt 100644 +/usr/lib/python3/site-packages/datastream-0.4.1-py3.5.egg-info/top_level.txt 100644 /usr/lib/python3/site-packages/datastream/__init__.py 100644 /usr/lib/python3/site-packages/datastream/__pycache__ 40755 -/usr/lib/python3/site-packages/datastream/__pycache__/api.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/datastream/__pycache__/api.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/datastream/__pycache__/exceptions.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/datastream/__pycache__/exceptions.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/datastream/__pycache__/utils.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/datastream/__pycache__/utils.cpython-33.pyo 100644 +/usr/lib/python3/site-packages/datastream/__pycache__/__init__.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/datastream/__pycache__/__init__.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/datastream/__pycache__/__init__.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/datastream/__pycache__/api.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/datastream/__pycache__/api.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/datastream/__pycache__/api.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/datastream/__pycache__/exceptions.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/datastream/__pycache__/exceptions.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/datastream/__pycache__/exceptions.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/datastream/__pycache__/utils.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/datastream/__pycache__/utils.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/datastream/__pycache__/utils.cpython-35.pyc 100644 /usr/lib/python3/site-packages/datastream/api.py 100644 @@ -20,4 +26,8 @@ /usr/lib/python3/site-packages/datastream/backends/__pycache__ 40755 -/usr/lib/python3/site-packages/datastream/backends/__pycache__/mongodb.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/datastream/backends/__pycache__/mongodb.cpython-33.pyo 100644 +/usr/lib/python3/site-packages/datastream/backends/__pycache__/__init__.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/datastream/backends/__pycache__/__init__.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/datastream/backends/__pycache__/__init__.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/datastream/backends/__pycache__/mongodb.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/datastream/backends/__pycache__/mongodb.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/datastream/backends/__pycache__/mongodb.cpython-35.pyc 100644 /usr/lib/python3/site-packages/datastream/backends/mongodb.py 100644 @@ -27,19 +37,18 @@ /usr/share/doc/python3-module-datastream-0.4.1/README.rst 100644 -Requires: python3.3(mongoengine) -Requires: python3.3(pymongo) -Requires: python3.3(pytz) +Requires: python3(mongoengine) < 0 +Requires: python3(pymongo) < 0 +Requires: python3(pytz) < 0 Requires: /usr/lib/python3/site-packages -Requires: python3.3(bson) -Requires: python3.3(calendar) -Requires: python3.3(collections) -Requires: python3.3(datetime) -Requires: python3.3(decimal) -Requires: python3.3(inspect) -Requires: python3.3(numbers) -Requires: python3.3(os) -Requires: python3.3(struct) -Requires: python3.3(threading) -Requires: python3.3(time) -Requires: python3.3(uuid) -Requires: python3.3(warnings) +Requires: python3(bson) < 0 +Requires: python3(calendar) < 0 +Requires: python3(collections) < 0 +Requires: python3(datetime) < 0 +Requires: python3(decimal) < 0 +Requires: python3(inspect) < 0 +Requires: python3(numbers) < 0 +Requires: python3(os) < 0 +Requires: python3(struct) < 0 +Requires: python3(threading) < 0 +Requires: python3(uuid) < 0 +Requires: python3(warnings) < 0 Requires: rpmlib(PayloadIsLzma)