<86>Apr 14 01:34:14 userdel[14774]: delete user 'rooter' <86>Apr 14 01:34:14 userdel[14774]: removed group 'rooter' owned by 'rooter' <86>Apr 14 01:34:14 groupadd[14804]: group added to /etc/group: name=rooter, GID=585 <86>Apr 14 01:34:14 groupadd[14804]: group added to /etc/gshadow: name=rooter <86>Apr 14 01:34:14 groupadd[14804]: new group: name=rooter, GID=585 <86>Apr 14 01:34:14 useradd[14834]: new user: name=rooter, UID=585, GID=585, home=/root, shell=/bin/bash <86>Apr 14 01:34:14 userdel[14870]: delete user 'builder' <86>Apr 14 01:34:14 userdel[14870]: removed group 'builder' owned by 'builder' <86>Apr 14 01:34:14 userdel[14870]: removed shadow group 'builder' owned by 'builder' <86>Apr 14 01:34:14 groupadd[14890]: group added to /etc/group: name=builder, GID=586 <86>Apr 14 01:34:14 groupadd[14890]: group added to /etc/gshadow: name=builder <86>Apr 14 01:34:14 groupadd[14890]: new group: name=builder, GID=586 <86>Apr 14 01:34:14 useradd[14899]: new user: name=builder, UID=586, GID=586, home=/usr/src, shell=/bin/bash <13>Apr 14 01:34:19 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 14 01:34:19 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 14 01:34:19 rpmi: rpm-macros-sphinx-1:1.4-alt8.a0.git20150813 1460726255 installed <13>Apr 14 01:34:19 rpmi: python-module-sphinx-pickles-1:1.4-alt8.a0.git20150813 1460726255 installed <13>Apr 14 01:34:19 rpmi: pytz-zoneinfo-1:2015.4-alt1.1.1 1460413776 installed <13>Apr 14 01:34:19 rpmi: python-module-sphinx_rtd_theme-0.1.8-alt1.git20150730.1 1457859644 installed <13>Apr 14 01:34:19 rpmi: python-sphinx-objects.inv-2.3.6.20160413-alt1 1460595508 installed <13>Apr 14 01:34:19 rpmi: libxapian-1.2.23-alt1 1459318465 installed <13>Apr 14 01:34:19 rpmi: python-module-xapian-1.2.23-alt1.M80P.1 1503464748 installed <13>Apr 14 01:34:19 rpmi: libsqlite3-3.15.2-alt1 1480432212 installed <13>Apr 14 01:34:19 rpmi: libgpg-error-1.31-alt1.M80P.1 1529024730 installed <13>Apr 14 01:34:19 rpmi: libgcrypt20-1.8.3-alt4 p8+219793.200.6.1 1551112986 installed <13>Apr 14 01:34:19 rpmi: libxslt-1.1.28-alt4 1448210404 installed <13>Apr 14 01:34:19 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Apr 14 01:34:19 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Apr 14 01:34:19 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:34:19 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 14 01:34:19 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 14 01:34:19 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 14 01:34:19 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 14 01:34:19 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 14 01:34:19 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 14 01:34:19 groupadd[28430]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 14 01:34:19 groupadd[28430]: group added to /etc/gshadow: name=_keytab <86>Apr 14 01:34:19 groupadd[28430]: new group: name=_keytab, GID=499 <13>Apr 14 01:34:19 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 14 01:34:20 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:34:20 rpmi: python3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:34:20 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:34:20 rpmi: python3-module-six-1.10.0-alt7 1496087616 installed <13>Apr 14 01:34:20 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Apr 14 01:34:20 rpmi: libpython3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:34:20 rpmi: python3-module-pycparser-2.14-alt1.1 1458071180 installed <13>Apr 14 01:34:20 rpmi: python3-module-cffi-1.10.0-alt0.M80P.1 1501702481 installed <13>Apr 14 01:34:20 rpmi: python3-module-asn1crypto-0.22.0-alt0.M80P.1 1501735102 installed <13>Apr 14 01:34:20 rpmi: python3-module-idna-2.5-alt0.M80P.1 1501735172 installed <13>Apr 14 01:34:20 rpmi: python3-module-cryptography-2.0.0-alt0.M80P.1 1501702598 installed <13>Apr 14 01:34:20 rpmi: python3-module-OpenSSL-16.2.0-alt0.M80P.1 1505402609 installed <13>Apr 14 01:34:20 rpmi: python3-module-cssselect-0.9.1-alt1.1 1457858257 installed <13>Apr 14 01:34:20 rpmi: python3-module-funcsigs-0.4-alt1.git20131220.1 1457958730 installed <13>Apr 14 01:34:20 rpmi: python3-module-webencodings-0.5.1-alt0.M80P.1 1507185481 installed <13>Apr 14 01:34:20 rpmi: python3-module-linecache2-1.0.0-alt1.git20150306.1.1 1457981765 installed <13>Apr 14 01:34:20 rpmi: python3-module-traceback2-1.4.0-alt1.git20150309.1.1 1458137072 installed <13>Apr 14 01:34:20 rpmi: python3-module-unittest2-1.1.0-alt2.hg20150630.1 1458023441 installed <13>Apr 14 01:34:20 rpmi: python3-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 14 01:34:21 rpmi: python3-dev-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:34:21 rpmi: python3-module-dateutil-2.4.2-alt1.git20150728.1.1 1458152500 installed <13>Apr 14 01:34:21 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:34:21 rpmi: python3-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 14 01:34:21 rpmi: python3-module-lxml-4.0.0-alt0.M80P.1 1507163741 installed <13>Apr 14 01:34:21 rpmi: python3-module-ntlm-1.1.0-alt1.1.1.1 1460405346 installed <13>Apr 14 01:34:21 rpmi: python3-module-pip-10.0.1-alt1.M80P.1 1528316057 installed <13>Apr 14 01:34:21 rpmi: python3-module-pbr-2.0.0-alt0.M80P.1 1496089331 installed <13>Apr 14 01:34:21 rpmi: python3-module-nose-1:1.3.7-alt1.git20160316.1 1460404907 installed <13>Apr 14 01:34:21 rpmi: python3-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 14 01:34:21 rpmi: python3-module-html5lib-1:0.999999999-alt1.M80P.2 1507185603 installed <13>Apr 14 01:34:21 rpmi: python3-module-nose-parameterized-0.5.0-alt1.git20150806.1 1458001118 installed <13>Apr 14 01:34:21 rpmi: python3-module-mock-1.3.0-alt1.git20150731.1.1 1457990410 installed <13>Apr 14 01:34:21 rpmi: python3-module-wheel-0.29.0-alt1 1483422655 installed <13>Apr 14 01:34:21 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:34:22 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:34:22 rpmi: python-module-six-1.10.0-alt7 1496087616 installed <13>Apr 14 01:34:22 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:34:22 rpmi: python-modules-json-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:34:22 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:34:22 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:34:22 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:34:22 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:34:22 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:34:22 rpmi: python-module-whoosh-2.7.0-alt1.hg20150805.1.1 1457859779 installed <13>Apr 14 01:34:22 rpmi: python-module-webencodings-0.5.1-alt0.M80P.1 1507185481 installed <13>Apr 14 01:34:22 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:34:22 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:34:22 rpmi: python-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:34:22 rpmi: python-strict-2.7.11-alt6.M80P.1 1527682534 installed <13>Apr 14 01:34:22 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:34:22 rpmi: python-module-PyStemmer-1.0.1-alt1.2.1 1321387369 installed <13>Apr 14 01:34:22 rpmi: python-module-snowballstemmer-1.2.0-alt2.1 1457859319 installed <13>Apr 14 01:34:22 rpmi: python-module-pytz-1:2015.4-alt1.1.1 1460413776 installed <13>Apr 14 01:34:22 rpmi: python-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 14 01:34:22 rpmi: python-module-simplejson-3.15.0-alt1.M80P.1 1528995430 installed <13>Apr 14 01:34:22 rpmi: python-module-markupsafe-0.23-alt1.2.1 1459593526 installed <13>Apr 14 01:34:22 rpmi: python-modules-sqlite3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:34:22 rpmi: python-module-SQLAlchemy-1.2.15-alt1 p8+223214.600.2.1 1551354313 installed <13>Apr 14 01:34:22 rpmi: python-module-funcsigs-0.4-alt1.git20131220.1 1457958730 installed <13>Apr 14 01:34:22 rpmi: python-module-linecache2-1.0.0-alt1.git20150306.1.1 1457981765 installed <13>Apr 14 01:34:22 rpmi: python-module-traceback2-1.4.0-alt1.git20150309.1.1 1458137072 installed <13>Apr 14 01:34:22 rpmi: python-module-dateutil-2.6.0-alt0.M80P.1 1507185893 installed <13>Apr 14 01:34:22 rpmi: python-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 14 01:34:22 rpmi: python-module-jinja2-2.9-alt1.dev.git20150726.1.1.1 1460400640 installed <13>Apr 14 01:34:23 rpmi: python-module-babel-1:2.3.4-alt0.M80P.1 1480881327 installed <13>Apr 14 01:34:23 rpmi: python-module-pbr-2.0.0-alt0.M80P.1 1496089331 installed <13>Apr 14 01:34:23 rpmi: python-module-unittest2-1.1.0-alt2.hg20150630.1 1458023441 installed <13>Apr 14 01:34:23 rpmi: python-module-nose-1:1.3.7-alt1.git20160316.1 1460404907 installed <13>Apr 14 01:34:23 rpmi: python-module-jinja2-tests-2.9-alt1.dev.git20150726.1.1.1 1460400640 installed <13>Apr 14 01:34:23 rpmi: python-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 14 01:34:23 rpmi: python-module-cssselect-0.9.1-alt1.1 1457858257 installed <13>Apr 14 01:34:23 rpmi: python-module-nose-parameterized-0.5.0-alt1.git20150806.1 1458001118 installed <13>Apr 14 01:34:23 rpmi: python-module-mock-1.3.0-alt1.git20150731.1.1 1457990410 installed <13>Apr 14 01:34:23 rpmi: python-module-wheel-0.29.0-alt1 1483422655 installed <13>Apr 14 01:34:23 rpmi: python-module-lxml-4.0.0-alt0.M80P.1 1507163741 installed <13>Apr 14 01:34:23 rpmi: python-module-docutils-0.13-alt4.git20150716.1.1 1460400317 installed <13>Apr 14 01:34:23 rpmi: python-module-html5lib-1:0.999999999-alt1.M80P.2 1507185603 installed <13>Apr 14 01:34:23 rpmi: python-module-Pygments-2.2.0-alt1.M80P.2 p8.214223.100 1538848792 installed <13>Apr 14 01:34:23 rpmi: python-module-sphinx-1:1.4-alt8.a0.git20150813 1460726255 installed <13>Apr 14 01:34:23 rpmi: python-module-alabaster-0.7.6-alt1.git20150703.1 1457857919 installed <13>Apr 14 01:34:23 rpmi: python-module-sphinx-devel-1:1.4-alt8.a0.git20150813 1460726255 installed Installing python-module-dateparser-0.1.0-alt1.git20141125.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.41975 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-dateparser-0.1.0 + echo 'Source #0 (python-module-dateparser-0.1.0.tar):' Source #0 (python-module-dateparser-0.1.0.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-dateparser-0.1.0.tar + cd python-module-dateparser-0.1.0 + /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: No changes to ../python3/tests/test_timezones.py RefactoringTool: Refactored ../python3/tests/test_freshness_date_parser.py RefactoringTool: Refactored ../python3/tests/test_date_parser.py WARNING: couldn't encode ../python3/tests/test_date_parser.py's diff for your terminal RefactoringTool: Refactored ../python3/tests/test_date.py --- ../python3/tests/test_freshness_date_parser.py (original) +++ ../python3/tests/test_freshness_date_parser.py (refactored) @@ -1,5 +1,5 @@ # coding: utf-8 -from __future__ import unicode_literals + import unittest from datetime import datetime, timedelta --- ../python3/tests/test_date_parser.py (original) +++ ../python3/tests/test_date_parser.py (refactored) @@ -1,5 +1,5 @@ # coding: utf-8 -from __future__ import unicode_literals + import unittest from datetime import datetime, timedelta @@ -28,23 +28,23 @@ def test_should_reduce_possible_languages_and_reject_different(self): dates_in_spanish = [ - (u'13 Ago, 2014', datetime(2014, 8, 13)), - (u'13 Septiembre, 2014', datetime(2014, 9, 13)), + ('13 Ago, 2014', datetime(2014, 8, 13)), + ('13 Septiembre, 2014', datetime(2014, 9, 13)), ] for date_string, correct_date in dates_in_spanish: parsed_date = self.parser.parse(date_string, None) self.assertEqual(correct_date.date(), parsed_date.date()) - with self.assertRaisesRegexp(ValueError, 'Invalid date'): - portuguese_date = u'13 Setembro, 2014' + with self.assertRaisesRegex(ValueError, 'Invalid date'): + portuguese_date = '13 Setembro, 2014' self.parser.parse(portuguese_date, None) def test_should_accept_dates_in_different_languages(self): date_fixtures = [ - (u'13 Ago, 2014', datetime(2014, 8, 13)), - (u'13 Septiembre, 2014', datetime(2014, 9, 13)), - (u'13 Setembro, 2014', datetime(2014, 9, 13)), + ('13 Ago, 2014', datetime(2014, 8, 13)), + ('13 Septiembre, 2014', datetime(2014, 9, 13)), + ('13 Setembro, 2014', datetime(2014, 9, 13)), ] parser = AutoDetectLanguage(None, allow_redetection=True) @@ -56,17 +56,17 @@ class ExactLanguageTest(unittest.TestCase): def test_force_setting_language(self): - with self.assertRaisesRegexp(TypeError, 'takes at least 2 arguments'): + with self.assertRaisesRegex(TypeError, 'takes at least 2 arguments'): ExactLanguage() - with self.assertRaisesRegexp(ValueError, 'cannot be None'): + with self.assertRaisesRegex(ValueError, 'cannot be None'): ExactLanguage(None) def test_parse_date_in_exact_language(self): date_fixtures = [ - (u'13 Ago, 2014', datetime(2014, 8, 13)), - (u'13 Septiembre, 2014', datetime(2014, 9, 13)), - (u'13/03/2014', datetime(2014, 3, 13)), + ('13 Ago, 2014', datetime(2014, 8, 13)), + ('13 Septiembre, 2014', datetime(2014, 9, 13)), + ('13/03/2014', datetime(2014, 3, 13)), # TODO: make the following test pass # in this case, it should have detected spanish as the @@ -79,8 +79,8 @@ parsed_date = parser.parse(date_string, None) self.assertEqual(correct_date.date(), parsed_date.date()) - with self.assertRaisesRegexp(ValueError, 'Invalid date'): - portuguese_date = u'13 Setembro, 2014' + with self.assertRaisesRegex(ValueError, 'Invalid date'): + portuguese_date = '13 Setembro, 2014' parser.parse(portuguese_date, None) @@ -104,17 +104,17 @@ self.assertEqual(date.day, 11) def test_es_dates(self): - date = DateParser().parse(u'Martes 21 de Octubre de 2014') + date = DateParser().parse('Martes 21 de Octubre de 2014') self.assertEqual(date.year, 2014) self.assertEqual(date.month, 10) self.assertEqual(date.day, 21) --- ../python3/tests/test_date.py (original) +++ ../python3/tests/test_date.py (refactored) @@ -1,6 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -from __future__ import unicode_literals + import unittest from datetime import datetime, timedelta @@ -19,9 +19,9 @@ begin = datetime(2014, 6, 15) end = datetime(2014, 6, 25) dates = list(date.date_range(begin, end)) - self.assertEquals(10, len(dates)) - self.assertEquals(begin, dates[0]) - self.assertEquals(end - timedelta(days=1), dates[-1]) + self.assertEqual(10, len(dates)) + self.assertEqual(begin, dates[0]) + self.assertEqual(end - timedelta(days=1), dates[-1]) def test_should_one_date_for_each_month(self): fixtures = [ @@ -40,18 +40,18 @@ for begin, end, expected in fixtures: result = list(date.date_range(begin, end, months=1)) - self.assertEquals(expected, + self.assertEqual(expected, [(d.year, d.month) for d in result]) def test_should_reject_easily_mistaken_dateutil_arguments(self): begin = datetime(2014, 6, 15) end = datetime(2014, 6, 25) - with self.assertRaisesRegexp(ValueError, "Invalid argument"): - date.date_range(begin, end, month=1).next() - - with self.assertRaisesRegexp(ValueError, "Invalid argument"): - date.date_range(begin, end, day=1).next() + with self.assertRaisesRegex(ValueError, "Invalid argument"): + next(date.date_range(begin, end, month=1)) + + with self.assertRaisesRegex(ValueError, "Invalid argument"): + next(date.date_range(begin, end, day=1)) class GetIntersectingPeriodsTest(BaseTestCase): @@ -60,8 +60,8 @@ low = datetime(2014, 6, 15) high = datetime(2014, 6, 16) dates = list(date.get_intersecting_periods(low, high)) - self.assertEquals(1, len(dates)) - self.assertEquals(low, dates[0]) + self.assertEqual(1, len(dates)) + self.assertEqual(low, dates[0]) @parameterized.expand([ param(low=datetime(2014, 4, 15), @@ -85,7 +85,7 @@ ]) def test_should_one_date_for_each_month(self, low, high, expected_results): results = list(date.get_intersecting_periods(low, high, period='month')) - self.assertEquals(expected_results, results) + self.assertEqual(expected_results, results) @parameterized.expand([ param(low=datetime(2014, 4, 15), @@ -119,7 +119,7 @@ ]) def test_periods(self, low, high, period, expected_results): results = list(date.get_intersecting_periods(low, high, period=period)) - self.assertEquals(expected_results, results) + self.assertEqual(expected_results, results) @parameterized.expand([ 'years', @@ -135,8 +135,8 @@ low = datetime(2014, 6, 15) period = datetime(2014, 6, 25) - with self.assertRaisesRegexp(ValueError, "Invalid period: {}".format(invalid_period)): - date.get_intersecting_periods(low, period, period=invalid_period).next() + with self.assertRaisesRegex(ValueError, "Invalid period: {}".format(invalid_period)): + next(date.get_intersecting_periods(low, period, period=invalid_period)) @parameterized.expand([ param(low=datetime(2014, 4, 15), high=datetime(2014, 4, 14)), @@ -144,7 +144,7 @@ ]) def test_empty_period(self, low, high): results = list(date.get_intersecting_periods(low, high, period='month')) - self.assertEquals([], results) + self.assertEqual([], results) class ParseDateWithFormats(unittest.TestCase): @@ -154,13 +154,13 @@ def test_should_parse_date(self): result = date.parse_with_formats('25-03-14', ['%d-%m-%y']) - self.assertEquals(datetime(2014, 3, 25).date(), result.date()) + self.assertEqual(datetime(2014, 3, 25).date(), result.date()) def test_should_use_current_year_for_dates_without_year(self): today = datetime.today() result = date.parse_with_formats('09.16', ["%m.%d"]) - self.assertEquals(datetime(today.year, 9, 16).date(), result.date()) + self.assertEqual(datetime(today.year, 9, 16).date(), result.date()) def test_should_use_current_date_for_dates_without_day(self): twelfth = datetime(2014, 8, 12) @@ -171,8 +171,8 @@ dt_data = date.parse_with_formats('August 2WARNING: couldn't encode ../python3/tests/test_date.py's diff for your terminal RefactoringTool: No changes to ../python3/setup.py RefactoringTool: Refactored ../python3/docs/conf.py RefactoringTool: Refactored ../python3/dateparser/timezones.py RefactoringTool: Refactored ../python3/dateparser/freshness_date_parser.py 014', ['%B %Y'], final_call=True) self.assertIsNotNone(dt_data) - self.assertEquals('month', dt_data['period']) - self.assertEquals(datetime(2014, 8, 31).date(), dt_data['date_obj'].date()) + self.assertEqual('month', dt_data['period']) + self.assertEqual(datetime(2014, 8, 31).date(), dt_data['date_obj'].date()) twelfth = datetime(2014, 2, 12) datetime_mock = Mock(wraps=datetime) @@ -182,8 +182,8 @@ dt_data = date.parse_with_formats('February 2014', ['%B %Y'], final_call=True) self.assertIsNotNone(dt_data) - self.assertEquals('month', dt_data['period']) - self.assertEquals(datetime(2014, 2, 28).date(), dt_data['date_obj'].date()) + self.assertEqual('month', dt_data['period']) + self.assertEqual(datetime(2014, 2, 28).date(), dt_data['date_obj'].date()) class DateDataParserTest(unittest.TestCase): @@ -235,11 +235,11 @@ def test_should_not_assume_language_too_early(self): date_fixtures = [ - (u'07/07/2014', datetime(2014, 7, 7)), - (u'07.jul.2014 | 12:52', datetime(2014, 7, 7)), - (u'07.ago.2014 | 12:52', datetime(2014, 8, 7)), - (u'07.feb.2014 | 12:52', datetime(2014, 2, 7)), - (u'07.ene.2014 | 12:52', datetime(2014, 1, 7)), + ('07/07/2014', datetime(2014, 7, 7)), + ('07.jul.2014 | 12:52', datetime(2014, 7, 7)), + ('07.ago.2014 | 12:52', datetime(2014, 8, 7)), + ('07.feb.2014 | 12:52', datetime(2014, 2, 7)), + ('07.ene.2014 | 12:52', datetime(2014, 1, 7)), ] for date_string, correct_date in date_fixtures: @@ -251,11 +251,11 @@ def test_should_enable_redetection_for_multiple_languages(self): date_fixtures = [ - (u'13 Ago, 2014', datetime(2014, 8, 13)), - (u'11 Marzo, 2014', datetime(2014, 3, 11)), - (u'13 Septiembre, 2014', datetime(2014, 9, 13)), - (u'13 Setembro, 2014', datetime(2014, 9, 13)), --- ../python3/docs/conf.py (original) +++ ../python3/docs/conf.py (refactored) @@ -55,8 +55,8 @@ master_doc = 'index' # General information about the project. -project = u'DateParser' -copyright = u'2014, Scrapinghub' +project = 'DateParser' +copyright = '2014, Scrapinghub' # The version info for the project you're documenting, acts as replacement # for |version| and |release|, also used in various other places throughout @@ -209,8 +209,8 @@ # [howto/manual]). latex_documents = [ ('index', 'dateparser.tex', - u'DateParser Documentation', - u'Scrapinghub', 'manual'), + 'DateParser Documentation', + 'Scrapinghub', 'manual'), ] # The name of an image file (relative to this directory) to place at @@ -240,8 +240,8 @@ # (source start file, name, description, authors, manual section). man_pages = [ ('index', 'dateparser', - u'DateParser Documentation', - [u'Scrapinghub'], 1) + 'DateParser Documentation', + ['Scrapinghub'], 1) ] # If true, show URL addresses after external links. @@ -255,8 +255,8 @@ # dir menu entry, description, category) texinfo_documents = [ ('index', 'dateparser', - u'DateParser Documentation', - u'Scrapinghub', + 'DateParser Documentation', + 'Scrapinghub', 'dateparser', 'One line description of project.', 'Miscellaneous'), --- ../python3/dateparser/timezones.py (original) +++ ../python3/dateparser/timezones.py (refactored) @@ -15,12 +15,12 @@ _tz_offsets = { re.compile(r'\b%s$' % timezone): timedelta(seconds=offset) - for timezone, offset in tz_offsets.iteritems() + for timezone, offset in tz_offsets.items() } def pop_tz_offset_from_string(date_string): - for timezone_re, offset in _tz_offsets.iteritems(): + for timezone_re, offset in _tz_offsets.items(): if timezone_re.search(date_string): date_string = timezone_re.sub('', date_string).rstrip() return date_string, offset --- ../python3/dateparser/freshness_date_parser.py (original) +++ ..RefactoringTool: Refactored ../python3/dateparser/date_parser.py WARNING: couldn't encode ../python3/dateparser/date_parser.py's diff for your terminal RefactoringTool: Refactored ../python3/dateparser/date.py RefactoringTool: No changes to ../python3/dateparser/__init__.py RefactoringTool: Files that were modified: RefactoringTool: ../python3/tests/test_timezones.py RefactoringTool: ../python3/tests/test_freshness_date_parser.py RefactoringTool: ../python3/tests/test_date_parser.py RefactoringTool: ../python3/tests/test_date.py RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/docs/conf.py RefactoringTool: ../python3/dateparser/timezones.py RefactoringTool: ../python3/dateparser/freshness_date_parser.py RefactoringTool: ../python3/dateparser/date_parser.py RefactoringTool: ../python3/dateparser/date.py RefactoringTool: ../python3/dateparser/__init__.py /python3/dateparser/freshness_date_parser.py (refactored) @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from __future__ import unicode_literals + import re from datetime import datetime @@ -185,15 +185,15 @@ self.now = now or datetime.utcnow() self.units_map = {} - for lang in self.langs.itervalues(): + for lang in self.langs.values(): d = lang['units'] - for k, vlist in d.iteritems(): + for k, vlist in d.items(): for v in vlist: self.units_map[v.lower()] = k def parse(self, date_string): kwargs = {} - for lang in self.langs.itervalues(): + for lang in self.langs.values(): td_kwargs = self.try_lang(date_string, lang) if len(td_kwargs) > len(kwargs): kwargs = td_kwargs @@ -218,7 +218,7 @@ if 'word_replacements' in lang: for replacement, words in lang['word_replacements']: for w in words: - date_string = re.sub(ur'\b%s\b' % w, replacement, date_string, + date_string = re.sub(r'\b%s\b' % w, replacement, date_string, flags=re.IGNORECASE | re.UNICODE) return date_string @@ -230,7 +230,7 @@ pattern = r'(\d+)\s*(%s)' else: pattern = r'(\d+)\s*(%s)\b' - pattern = pattern % '|'.join(flatten(lang['units'].values())) + pattern = pattern % '|'.join(flatten(list(lang['units'].values()))) m = re.findall(pattern, date_string, re.I | re.S | re.U) if not m: --- ../python3/dateparser/date_parser.py (original) +++ ../python3/dateparser/date_parser.py (refactored) @@ -1,5 +1,5 @@ # coding: utf-8 -from __future__ import unicode_literals + import re from collections import OrderedDict @@ -8,7 +8,7 @@ from dateutil import parser from dateutil.relativedelta import relativedelta -from timezones import pop_tz_offset_from_string, convert_to_local_tz +from .timezones import pop_tz_offset_from_string, convert_to_local_tz DATE_WORDS = 'Year|Month|Week|Day|Hour|Minute|Second' @@ -29,7 +29,7 @@ self._ampm, self._utczone, self._pertain): - for token in dct.keys(): + for token in list(dct.keys()): self._known_tokens.add(token) def is_token_known(self, name): @@ -135,18 +135,18 @@ ] MONTHS = [ - ('janeiro', u'jan'), - ('fevereiro', u'fev'), --- ../python3/dateparser/date.py (original) +++ ../python3/dateparser/date.py (refactored) @@ -10,7 +10,7 @@ def sanitize_spaces(html_string): - html_string = re.sub(u'\xa0', ' ', html_string) + html_string = re.sub('\xa0', ' ', html_string) html_string = re.sub(r'\s+', ' ', html_string) html_string = re.sub(r'^\s+(\S.*?)\s+$', r'\1', html_string) return html_string @@ -69,7 +69,7 @@ def sanitize_date(date_string): date_string = re.sub( - u'\t|\n|\r|\u00bb|\xe0|,\s\u0432|\u0433\.|\u200e|\xb7', ' ', date_string, flags=re.M + '\t|\n|\r|\u00bb|\xe0|,\s\u0432|\u0433\.|\u200e|\xb7', ' ', date_string, flags=re.M ) date_string = sanitize_spaces(date_string) date_string = re.sub('([AP]M).*', r'\1', date_string, flags=re.DOTALL) @@ -99,7 +99,7 @@ #Encode to support locale setting in spiders data = {'period': 'day', 'date_obj': None} - if isinstance(date_string, unicode): + if isinstance(date_string, str): date_string = date_string.encode('utf-8') for date_format in date_formats: try: + 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.29277 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-dateparser-0.1.0 + 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/dateparser copying dateparser/timezones.py -> build/lib/dateparser copying dateparser/freshness_date_parser.py -> build/lib/dateparser copying dateparser/date_parser.py -> build/lib/dateparser copying dateparser/date.py -> build/lib/dateparser copying dateparser/__init__.py -> build/lib/dateparser running egg_info creating dateparser.egg-info writing requirements to dateparser.egg-info/requires.txt writing dateparser.egg-info/PKG-INFO writing top-level names to dateparser.egg-info/top_level.txt writing dependency_links to dateparser.egg-info/dependency_links.txt writing manifest file 'dateparser.egg-info/SOURCES.txt' reading manifest file 'dateparser.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' writing manifest file 'dateparser.egg-info/SOURCES.txt' + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-dateparser-0.1.0 + 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/dateparser copying dateparser/timezones.py -> build/lib/dateparser copying dateparser/freshness_date_parser.py -> build/lib/dateparser copying dateparser/date_parser.py -> build/lib/dateparser copying dateparser/date.py -> build/lib/dateparser copying dateparser/__init__.py -> build/lib/dateparser running egg_info creating dateparser.egg-info writing top-level names to dateparser.egg-info/top_level.txt writing requirements to dateparser.egg-info/requires.txt writing dependency_links to dateparser.egg-info/dependency_links.txt writing dateparser.egg-info/PKG-INFO writing manifest file 'dateparser.egg-info/SOURCES.txt' reading manifest file 'dateparser.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' writing manifest file 'dateparser.egg-info/SOURCES.txt' + popd ~/RPM/BUILD/python-module-dateparser-0.1.0 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.9047 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-dateparser-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-dateparser-buildroot + cd python-module-dateparser-0.1.0 + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-dateparser-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-dateparser-buildroot creating /usr/src/tmp/python-module-dateparser-buildroot/usr creating /usr/src/tmp/python-module-dateparser-buildroot/usr/lib creating /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages creating /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser copying build/lib/dateparser/__init__.py -> /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser copying build/lib/dateparser/date.py -> /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser copying build/lib/dateparser/date_parser.py -> /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser copying build/lib/dateparser/freshness_date_parser.py -> /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser copying build/lib/dateparser/timezones.py -> /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser byte-compiling /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/date.py to date.pyc byte-compiling /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/date_parser.py to date_parser.pyc byte-compiling /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/freshness_date_parser.py to freshness_date_parser.pyc byte-compiling /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/timezones.py to timezones.pyc running install_egg_info running egg_info writing requirements to dateparser.egg-info/requires.txt writing dateparser.egg-info/PKG-INFO writing top-level names to dateparser.egg-info/top_level.txt writing dependency_links to dateparser.egg-info/dependency_links.txt reading manifest file 'dateparser.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' writing manifest file 'dateparser.egg-info/SOURCES.txt' Copying dateparser.egg-info to /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser-0.1.0-py2.7.egg-info running install_scripts + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-dateparser-0.1.0 + python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-dateparser-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser copying build/lib/dateparser/__init__.py -> /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser copying build/lib/dateparser/date.py -> /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser copying build/lib/dateparser/date_parser.py -> /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser copying build/lib/dateparser/freshness_date_parser.py -> /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser copying build/lib/dateparser/timezones.py -> /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser byte-compiling /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/date.py to date.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/date_parser.py to date_parser.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/freshness_date_parser.py to freshness_date_parser.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/timezones.py to timezones.cpython-35.pyc running install_egg_info running egg_info writing dateparser.egg-info/PKG-INFO writing dependency_links to dateparser.egg-info/dependency_links.txt writing requirements to dateparser.egg-info/requires.txt writing top-level names to dateparser.egg-info/top_level.txt reading manifest file 'dateparser.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' writing manifest file 'dateparser.egg-info/SOURCES.txt' Copying dateparser.egg-info to /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser-0.1.0-py3.5.egg-info running install_scripts + popd ~/RPM/BUILD/python-module-dateparser-0.1.0 + export PYTHONPATH=/usr/src/RPM/BUILD/python-module-dateparser-0.1.0 + PYTHONPATH=/usr/src/RPM/BUILD/python-module-dateparser-0.1.0 + make -C docs pickle make: Entering directory `/usr/src/RPM/BUILD/python-module-dateparser-0.1.0/docs' sphinx-build -b pickle -d _build/doctrees . _build/pickle Running Sphinx v1.4a0+ making output directory... loading pickled environment... not yet created building [mo]: targets for 0 po files that are out of date building [pickle]: targets for 9 source files that are out of date updating environment: 9 added, 0 changed, 0 removed reading sources... [ 11%] authors reading sources... [ 22%] contributing reading sources... [ 33%] dateparser reading sources... [ 44%] history reading sources... [ 55%] index reading sources... [ 66%] installation reading sources... [ 77%] modules reading sources... [ 88%] readme reading sources... [100%] usage /usr/src/RPM/BUILD/python-module-dateparser-0.1.0/docs/dateparser.rst:2: SEVERE: Duplicate ID: "module-dateparser". ../README.rst:None: WARNING: nonlocal image URI found: https://badge.fury.io/py/dateparser.png ../README.rst:None: WARNING: nonlocal image URI found: https://travis-ci.org/scrapinghub/dateparser.png?branch=master ../README.rst:None: WARNING: nonlocal image URI found: https://pypip.in/d/dateparser/badge.png looking for now-outdated files... none found pickling environment... done checking consistency... /usr/src/RPM/BUILD/python-module-dateparser-0.1.0/docs/modules.rst:: WARNING: document isn't included in any toctree done preparing documents... done writing output... [ 11%] authors writing output... [ 22%] contributing writing output... [ 33%] dateparser writing output... [ 44%] history writing output... [ 55%] index writing output... [ 66%] installation writing output... [ 77%] modules writing output... [ 88%] readme writing output... [100%] usage generating indices... genindex py-modindex highlighting module code... [ 25%] dateparser.timezones highlighting module code... [ 50%] dateparser.freshness_date_parser highlighting module code... [ 75%] dateparser.date highlighting module code... [100%] dateparser.date_parser writing additional pages... search opensearch copying static files... WARNING: html_static_path entry u'/usr/src/RPM/BUILD/python-module-dateparser-0.1.0/docs/_static' does not exist done copying extra files... done dumping search index in English (code: en) ... done dumping object inventory... done build succeeded, 6 warnings. Build finished; now you can process the pickle files. make: Leaving directory `/usr/src/RPM/BUILD/python-module-dateparser-0.1.0/docs' + make -C docs html make: Entering directory `/usr/src/RPM/BUILD/python-module-dateparser-0.1.0/docs' sphinx-build -b html -d _build/doctrees . _build/html Running Sphinx v1.4a0+ making output directory... loading pickled environment... done building [mo]: targets for 0 po files that are out of date building [html]: targets for 9 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... [ 11%] authors writing output... [ 22%] contributing writing output... [ 33%] dateparser writing output... [ 44%] history writing output... [ 55%] index writing output... [ 66%] installation writing output... [ 77%] modules writing output... [ 88%] readme writing output... [100%] usage generating indices... genindex py-modindex highlighting module code... [ 25%] dateparser.date_parser highlighting module code... [ 50%] dateparser.freshness_date_parser highlighting module code... [ 75%] dateparser.date highlighting module code... [100%] dateparser.timezones writing additional pages... search opensearch copying static files... WARNING: html_static_path entry u'/usr/src/RPM/BUILD/python-module-dateparser-0.1.0/docs/_static' does not exist done copying extra files... done dumping search index in English (code: en) ... done dumping object inventory... done build succeeded, 1 warning. Build finished. The HTML pages are in _build/html. make: Leaving directory `/usr/src/RPM/BUILD/python-module-dateparser-0.1.0/docs' + cp -fR docs/_build/pickle /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/ + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-dateparser-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-dateparser-buildroot (binconfig,pkgconfig,libtool,desktop) Compressing files in /usr/src/tmp/python-module-dateparser-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-dateparser-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-dateparser-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-dateparser-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/__init__.pyc unlink /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/date.pyc unlink /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/date_parser.pyc unlink /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/freshness_date_parser.pyc unlink /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/timezones.pyc compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/__init__.py compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/date.py compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/date_parser.py compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/freshness_date_parser.py compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/timezones.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-dateparser-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/__init__.py compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/date.py compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/date_parser.py compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/freshness_date_parser.py compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/timezones.py Bytecompiling python3 modules in /usr/src/tmp/python-module-dateparser-buildroot using python3 unlink /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/__pycache__/date.cpython-35.pyc unlink /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/__pycache__/date_parser.cpython-35.pyc unlink /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/__pycache__/freshness_date_parser.cpython-35.pyc unlink /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/__pycache__/timezones.cpython-35.pyc compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/__init__.py compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/date.py compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/date_parser.py compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/freshness_date_parser.py compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/timezones.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-dateparser-buildroot using python3 -O compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/__init__.py compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/date.py compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/date_parser.py compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/freshness_date_parser.py compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/timezones.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-dateparser-buildroot using python3 -OO compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/__init__.py compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/date.py compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/date_parser.py compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/freshness_date_parser.py compile /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/timezones.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/dateparser/__pycache__/timezones.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/dateparser/__pycache__/timezones.cpython-35.pyc' './usr/lib/python3/site-packages/dateparser/__pycache__/timezones.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/dateparser/__pycache__/timezones.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/dateparser/__pycache__/freshness_date_parser.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/dateparser/__pycache__/freshness_date_parser.cpython-35.pyc' './usr/lib/python3/site-packages/dateparser/__pycache__/date_parser.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/dateparser/__pycache__/date_parser.cpython-35.pyc' './usr/lib/python3/site-packages/dateparser/__pycache__/date.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/dateparser/__pycache__/date.cpython-35.pyc' './usr/lib/python3/site-packages/dateparser/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/dateparser/__pycache__/__init__.cpython-35.pyc' './usr/lib/python3/site-packages/dateparser/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/dateparser/__pycache__/__init__.cpython-35.opt-1.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/dateparser/timezones.pyo' => './usr/lib/python2.7/site-packages/dateparser/timezones.pyc' './usr/lib/python2.7/site-packages/dateparser/freshness_date_parser.pyo' => './usr/lib/python2.7/site-packages/dateparser/freshness_date_parser.pyc' './usr/lib/python2.7/site-packages/dateparser/date_parser.pyo' => './usr/lib/python2.7/site-packages/dateparser/date_parser.pyc' './usr/lib/python2.7/site-packages/dateparser/date.pyo' => './usr/lib/python2.7/site-packages/dateparser/date.pyc' './usr/lib/python2.7/site-packages/dateparser/__init__.pyo' => './usr/lib/python2.7/site-packages/dateparser/__init__.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.80607 Check is turned off by --disable check Processing files: python-module-dateparser-0.1.0-alt1.git20141125.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.72706 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-dateparser-0.1.0 + DOCDIR=/usr/src/tmp/python-module-dateparser-buildroot/usr/share/doc/python-module-dateparser-0.1.0 + export DOCDIR + rm -rf /usr/src/tmp/python-module-dateparser-buildroot/usr/share/doc/python-module-dateparser-0.1.0 + /bin/mkdir -p /usr/src/tmp/python-module-dateparser-buildroot/usr/share/doc/python-module-dateparser-0.1.0 + cp -prL AUTHORS.rst CONTRIBUTING.rst HISTORY.rst README.rst /usr/src/tmp/python-module-dateparser-buildroot/usr/share/doc/python-module-dateparser-0.1.0 + chmod -R go-w /usr/src/tmp/python-module-dateparser-buildroot/usr/share/doc/python-module-dateparser-0.1.0 + chmod -R a+rX /usr/src/tmp/python-module-dateparser-buildroot/usr/share/doc/python-module-dateparser-0.1.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.yqH9Lc 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.JPY4pM 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-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/date.py: line=7 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/date.py: line=8 possible relative import from ., UNIMPLEMENTED python.req: /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/date_parser.py: hiding timezones, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python2.7/site-packages/dateparser/date_parser.py: line=451 IGNORE (for REQ=slight and deep=12) module=scrapy Provides: python2.7(dateparser), python2.7(dateparser.date), python2.7(dateparser.date_parser), python2.7(dateparser.freshness_date_parser), python2.7(dateparser.timezones) Requires: /usr/lib/python2.7/site-packages, python-modules, python2.7(dateutil) Processing files: python3-module-dateparser-0.1.0-alt1.git20141125.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.26095 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-dateparser-0.1.0 + DOCDIR=/usr/src/tmp/python-module-dateparser-buildroot/usr/share/doc/python3-module-dateparser-0.1.0 + export DOCDIR + rm -rf /usr/src/tmp/python-module-dateparser-buildroot/usr/share/doc/python3-module-dateparser-0.1.0 + /bin/mkdir -p /usr/src/tmp/python-module-dateparser-buildroot/usr/share/doc/python3-module-dateparser-0.1.0 + cp -prL AUTHORS.rst CONTRIBUTING.rst HISTORY.rst README.rst /usr/src/tmp/python-module-dateparser-buildroot/usr/share/doc/python3-module-dateparser-0.1.0 + chmod -R go-w /usr/src/tmp/python-module-dateparser-buildroot/usr/share/doc/python3-module-dateparser-0.1.0 + chmod -R a+rX /usr/src/tmp/python-module-dateparser-buildroot/usr/share/doc/python3-module-dateparser-0.1.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.UQ195p 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.ZsDjX6 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-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/date.py: line=7 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/date.py: line=8 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/date_parser.py: line=11 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-dateparser-buildroot/usr/lib/python3/site-packages/dateparser/date_parser.py: line=451 IGNORE (for REQ=slight and deep=12) module=scrapy Provides: python3(dateparser), python3.3(dateparser), python3(dateparser.date), python3(dateparser.date_parser), python3(dateparser.freshness_date_parser), python3(dateparser.timezones), python3.3(dateparser.date), python3.3(dateparser.date_parser), python3.3(dateparser.freshness_date_parser), python3.3(dateparser.timezones) Requires: /usr/lib/python3/site-packages, python3(calendar) < 0, python3(collections) < 0, python3(datetime) < 0, python3(dateutil) < 0, python3(math) < 0, python3(re) < 0 Processing files: python-module-dateparser-pickles-0.1.0-alt1.git20141125.1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.wzNYAT 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.7N2akJ 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-dateparser-docs-0.1.0-alt1.git20141125.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.38294 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-dateparser-0.1.0 + DOCDIR=/usr/src/tmp/python-module-dateparser-buildroot/usr/share/doc/python-module-dateparser-docs-0.1.0 + export DOCDIR + rm -rf /usr/src/tmp/python-module-dateparser-buildroot/usr/share/doc/python-module-dateparser-docs-0.1.0 + /bin/mkdir -p /usr/src/tmp/python-module-dateparser-buildroot/usr/share/doc/python-module-dateparser-docs-0.1.0 + cp -prL docs/_build/html/_modules docs/_build/html/_sources docs/_build/html/_static docs/_build/html/authors.html docs/_build/html/contributing.html docs/_build/html/dateparser.html docs/_build/html/genindex.html docs/_build/html/history.html docs/_build/html/index.html docs/_build/html/installation.html docs/_build/html/modules.html docs/_build/html/objects.inv docs/_build/html/py-modindex.html docs/_build/html/readme.html docs/_build/html/search.html docs/_build/html/searchindex.js docs/_build/html/usage.html /usr/src/tmp/python-module-dateparser-buildroot/usr/share/doc/python-module-dateparser-docs-0.1.0 + chmod -R go-w /usr/src/tmp/python-module-dateparser-buildroot/usr/share/doc/python-module-dateparser-docs-0.1.0 + chmod -R a+rX /usr/src/tmp/python-module-dateparser-buildroot/usr/share/doc/python-module-dateparser-docs-0.1.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.YSAbwC 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.hgfaLy 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-dateparser-0.1.0-alt1.git20141125.1.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/python3-module-dateparser-0.1.0-alt1.git20141125.1.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/python-module-dateparser-pickles-0.1.0-alt1.git20141125.1.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/python-module-dateparser-docs-0.1.0-alt1.git20141125.1.noarch.rpm 8.83user 1.02system 0:18.05elapsed 54%CPU (0avgtext+0avgdata 52204maxresident)k 0inputs+0outputs (0major+353759minor)pagefaults 0swaps 18.95user 6.09system 0:34.21elapsed 73%CPU (0avgtext+0avgdata 124136maxresident)k 96inputs+0outputs (0major+670646minor)pagefaults 0swaps --- python3-module-dateparser-0.1.0-alt1.git20141125.1.noarch.rpm.repo 2016-03-13 23:35:21.000000000 +0000 +++ python3-module-dateparser-0.1.0-alt1.git20141125.1.noarch.rpm.hasher 2019-04-14 01:34:44.560619234 +0000 @@ -1,19 +1,26 @@ /usr/lib/python3/site-packages/dateparser 40755 -/usr/lib/python3/site-packages/dateparser-0.1.0-py3.3.egg-info 40755 -/usr/lib/python3/site-packages/dateparser-0.1.0-py3.3.egg-info/PKG-INFO 100644 -/usr/lib/python3/site-packages/dateparser-0.1.0-py3.3.egg-info/SOURCES.txt 100644 -/usr/lib/python3/site-packages/dateparser-0.1.0-py3.3.egg-info/dependency_links.txt 100644 -/usr/lib/python3/site-packages/dateparser-0.1.0-py3.3.egg-info/not-zip-safe 100644 -/usr/lib/python3/site-packages/dateparser-0.1.0-py3.3.egg-info/requires.txt 100644 -/usr/lib/python3/site-packages/dateparser-0.1.0-py3.3.egg-info/top_level.txt 100644 +/usr/lib/python3/site-packages/dateparser-0.1.0-py3.5.egg-info 40755 +/usr/lib/python3/site-packages/dateparser-0.1.0-py3.5.egg-info/PKG-INFO 100644 +/usr/lib/python3/site-packages/dateparser-0.1.0-py3.5.egg-info/SOURCES.txt 100644 +/usr/lib/python3/site-packages/dateparser-0.1.0-py3.5.egg-info/dependency_links.txt 100644 +/usr/lib/python3/site-packages/dateparser-0.1.0-py3.5.egg-info/not-zip-safe 100644 +/usr/lib/python3/site-packages/dateparser-0.1.0-py3.5.egg-info/requires.txt 100644 +/usr/lib/python3/site-packages/dateparser-0.1.0-py3.5.egg-info/top_level.txt 100644 /usr/lib/python3/site-packages/dateparser/__init__.py 100644 /usr/lib/python3/site-packages/dateparser/__pycache__ 40755 -/usr/lib/python3/site-packages/dateparser/__pycache__/date.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/dateparser/__pycache__/date.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/dateparser/__pycache__/date_parser.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/dateparser/__pycache__/date_parser.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/dateparser/__pycache__/freshness_date_parser.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/dateparser/__pycache__/freshness_date_parser.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/dateparser/__pycache__/timezones.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/dateparser/__pycache__/timezones.cpython-33.pyo 100644 +/usr/lib/python3/site-packages/dateparser/__pycache__/__init__.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/dateparser/__pycache__/__init__.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/dateparser/__pycache__/__init__.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/dateparser/__pycache__/date.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/dateparser/__pycache__/date.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/dateparser/__pycache__/date.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/dateparser/__pycache__/date_parser.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/dateparser/__pycache__/date_parser.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/dateparser/__pycache__/date_parser.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/dateparser/__pycache__/freshness_date_parser.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/dateparser/__pycache__/freshness_date_parser.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/dateparser/__pycache__/freshness_date_parser.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/dateparser/__pycache__/timezones.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/dateparser/__pycache__/timezones.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/dateparser/__pycache__/timezones.cpython-35.pyc 100644 /usr/lib/python3/site-packages/dateparser/date.py 100644 @@ -28,8 +35,8 @@ Requires: /usr/lib/python3/site-packages -Requires: python3.3(calendar) -Requires: python3.3(collections) -Requires: python3.3(datetime) -Requires: python3.3(dateutil) -Requires: python3.3(math) -Requires: python3.3(re) +Requires: python3(calendar) < 0 +Requires: python3(collections) < 0 +Requires: python3(datetime) < 0 +Requires: python3(dateutil) < 0 +Requires: python3(math) < 0 +Requires: python3(re) < 0 Requires: rpmlib(PayloadIsLzma)