Hello community,
here is the log from the commit of package python-parsedatetime for
openSUSE:Leap:15.2 checked in at 2020-03-13 10:58:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-parsedatetime (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-parsedatetime.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-parsedatetime"
Fri Mar 13 10:58:45 2020 rev:12 rq:784032 version:2.5
Changes:
--------
---
/work/SRC/openSUSE:Leap:15.2/python-parsedatetime/python-parsedatetime.changes
2020-03-09 18:09:52.113067824 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-parsedatetime.new.3160/python-parsedatetime.changes
2020-03-13 11:01:14.428600036 +0100
@@ -1,0 +2,11 @@
+Wed Mar 11 15:45:25 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- update version to 2.5
+ * Fix to sanitize abbreviated months from icu
+ * typo in RU locale in abbreviation for January
+ * Fix lint errors for flake8 v3.5.0
+ * Add a constant for start hour
+ * Add 'secs' and 'mins' into base units
+ * Remove unused dependency on future
+
+-------------------------------------------------------------------
Old:
----
parsedatetime-2.4.tar.gz
New:
----
parsedatetime-2.5.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-parsedatetime.spec ++++++
--- /var/tmp/diff_new_pack.Rf2YTH/_old 2020-03-13 11:01:14.844600333 +0100
+++ /var/tmp/diff_new_pack.Rf2YTH/_new 2020-03-13 11:01:14.848600335 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-parsedatetime
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,14 +18,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-parsedatetime
-Version: 2.4
+Version: 2.5
Release: 0
Summary: Python module to parse human-readable date/time text
License: Apache-2.0
Group: Development/Libraries/Python
URL: https://github.com/regebro/parsedatetime
Source:
https://files.pythonhosted.org/packages/source/p/parsedatetime/parsedatetime-%{version}.tar.gz
-BuildRequires: %{python_module future}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
++++++ parsedatetime-2.4.tar.gz -> parsedatetime-2.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/parsedatetime-2.4/CHANGES.txt
new/parsedatetime-2.5/CHANGES.txt
--- old/parsedatetime-2.4/CHANGES.txt 2017-05-14 08:28:01.000000000 +0200
+++ new/parsedatetime-2.5/CHANGES.txt 2019-11-19 05:43:03.000000000 +0100
@@ -1,3 +1,13 @@
+18 Nov 2019 - bear
+ v2.5 release
+
+ PR #222 Fix to sanitize abbreviated months from icu
+ PR #223 typo in RU locale in abbreviation for January
+ PR #224 Fix lint errors for flake8 v3.5.0
+ PR #225 Add a constant for start hour
+ PR #233 Add 'secs' and 'mins' into base units
+ PR #226 Remove unused dependency on future
+
14 May 2017 - bear
v2.4 release
v2.5 bump
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/parsedatetime-2.4/Makefile
new/parsedatetime-2.5/Makefile
--- old/parsedatetime-2.4/Makefile 2017-05-14 09:07:16.000000000 +0200
+++ new/parsedatetime-2.5/Makefile 2019-11-19 05:00:12.000000000 +0100
@@ -3,8 +3,8 @@
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
BREWPATH = $(shell brew --prefix)
- PYICU_LD = -L${BREWPATH}/opt/icu4c/lib
- PYICU_CPP = -I${BREWPATH}/opt/icu4c/include
+ PYICU_LD = "-L${BREWPATH}/opt/icu4c/lib -L${BREWPATH}/opt/[email protected]/lib"
+ PYICU_CPP = "-I${BREWPATH}/opt/icu4c/include
-I${BREWPATH}/opt/[email protected]/include"
ICU_VER = 58.2
else
PYICU_LD =
@@ -28,12 +28,11 @@
pip install -Uqr requirements.testing.txt | tee
@echo "on OS X use homebrew to install icu4c"
LDFLAGS=${PYICU_LD} CPPFLAGS=${PYICU_CPP} ICU_VERSION=${ICU_VER} \
- pip install -U pyicu
- pyenv install -s 2.6.9
+ #pip install -U pyicu
pyenv install -s 2.7.11
pyenv install -s 3.6.1
pyenv install -s pypy-5.3
- pyenv local 2.6.9 2.7.11 3.6.1 pypy-5.3
+ pyenv local 2.7.11 3.6.1 pypy-5.3
info:
@python --version
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/parsedatetime-2.4/PKG-INFO
new/parsedatetime-2.5/PKG-INFO
--- old/parsedatetime-2.4/PKG-INFO 2017-05-14 09:14:27.000000000 +0200
+++ new/parsedatetime-2.5/PKG-INFO 2019-11-19 06:21:51.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: parsedatetime
-Version: 2.4
+Version: 2.5
Summary: Parse human-readable date/time text.
Home-page: https://github.com/bear/parsedatetime
Author: Mike Taylor
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/parsedatetime-2.4/parsedatetime/__init__.py
new/parsedatetime-2.5/parsedatetime/__init__.py
--- old/parsedatetime-2.4/parsedatetime/__init__.py 2017-03-11
00:28:02.000000000 +0100
+++ new/parsedatetime-2.5/parsedatetime/__init__.py 2019-11-19
05:35:16.000000000 +0100
@@ -2,7 +2,7 @@
#
# vim: sw=2 ts=2 sts=2
#
-# Copyright 2004-2016 Mike Taylor
+# Copyright 2004-2019 Mike Taylor
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@
Parse human-readable date/time text.
-Requires Python 2.6 or later
+Requires Python 2.7 or later
"""
from __future__ import with_statement, absolute_import, unicode_literals
@@ -44,7 +44,7 @@
__email__ = '[email protected]'
__copyright__ = 'Copyright (c) 2017 Mike Taylor'
__license__ = 'Apache License 2.0'
-__version__ = '2.4'
+__version__ = '2.5'
__url__ = 'https://github.com/bear/parsedatetime'
__download_url__ = 'https://pypi.python.org/pypi/parsedatetime'
__description__ = 'Parse human-readable date/time text.'
@@ -193,8 +193,7 @@
__tzd_re = r'(?P<tzd>[-+](?P<tzdhours>\d\d)(?::?(?P<tzdminutes>\d\d))|Z)'
# __tzd_rx = re.compile(__tzd_re)
__time_re = (r'(?P<hours>\d\d)(?P<tsep>:|)(?P<minutes>\d\d)'
- r'(?:(?P=tsep)(?P<seconds>\d\d(?:[.,]\d+)?))?' +
- __tzd_re)
+ r'(?:(?P=tsep)(?P<seconds>\d\d(?:[.,]\d+)?))?' + __tzd_re)
__datetime_re = '%s(?:T%s)?' % (__date_re, __time_re)
__datetime_rx = re.compile(__datetime_re)
@@ -790,7 +789,7 @@
startMinute = mn
startSecond = sec
else:
- startHour = 9
+ startHour = self.ptc.StartHour
startMinute = 0
startSecond = 0
@@ -1142,7 +1141,7 @@
startMinute = mn
startSecond = sec
else:
- startHour = 9
+ startHour = self.ptc.StartHour
startMinute = 0
startSecond = 0
@@ -2134,8 +2133,7 @@
# modifier. "Next is the word 'month'" should not parse as a
# date while "next month" should
if m is not None and \
- inputString[startpos:startpos +
- m.start()].strip() == '':
+ inputString[startpos:startpos + m.start()].strip() ==
'':
debug and log.debug('CRE_UNITS_ONLY matched [%s]',
m.group())
if leftmost_match[1] == 0 or \
@@ -2156,8 +2154,7 @@
else:
if leftmost_match[3] > 0:
m = self.ptc.CRE_NLP_PREFIX.search(
- inputString[:leftmost_match[0]] +
- ' ' + str(leftmost_match[3]))
+ inputString[:leftmost_match[0]] + ' ' +
str(leftmost_match[3]))
if m is not None:
leftmost_match[0] = m.start('nlp_prefix')
leftmost_match[2] = inputString[leftmost_match[0]:
@@ -2313,10 +2310,15 @@
self.BirthdayEpoch = 50
# When True the starting time for all relative calculations will come
- # from the given SourceTime, otherwise it will be 9am
+ # from the given SourceTime, otherwise it will be self.StartHour
self.StartTimeFromSourceTime = False
+ # The hour of the day that will be used as the starting time for all
+ # relative calculations when self.StartTimeFromSourceTime is False
+
+ self.StartHour = 9
+
# YearParseStyle controls how we parse "Jun 12", i.e. dates that do
# not have a year present. The default is to compare the date given
# to the current date, and if prior, then assume the next year.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/parsedatetime-2.4/parsedatetime/pdt_locales/base.py
new/parsedatetime-2.5/parsedatetime/pdt_locales/base.py
--- old/parsedatetime-2.4/parsedatetime/pdt_locales/base.py 2016-11-14
02:13:21.000000000 +0100
+++ new/parsedatetime-2.5/parsedatetime/pdt_locales/base.py 2019-11-19
03:25:20.000000000 +0100
@@ -86,8 +86,8 @@
# this will be added to re_values later
units = {
- 'seconds': ['second', 'seconds', 'sec', 's'],
- 'minutes': ['minute', 'minutes', 'min', 'm'],
+ 'seconds': ['second', 'seconds', 'sec', 'secs' 's'],
+ 'minutes': ['minute', 'minutes', 'min', 'mins', 'm'],
'hours': ['hour', 'hours', 'hr', 'h'],
'days': ['day', 'days', 'dy', 'd'],
'weeks': ['week', 'weeks', 'wk', 'w'],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/parsedatetime-2.4/parsedatetime/pdt_locales/fr_FR.py
new/parsedatetime-2.5/parsedatetime/pdt_locales/fr_FR.py
--- old/parsedatetime-2.4/parsedatetime/pdt_locales/fr_FR.py 2016-11-14
02:13:21.000000000 +0100
+++ new/parsedatetime-2.5/parsedatetime/pdt_locales/fr_FR.py 2019-11-19
05:33:45.000000000 +0100
@@ -4,7 +4,7 @@
# don't use an unicode string
localeID = 'fr_FR'
-dateSep = ['\/']
+dateSep = [r'\/']
timeSep = [':', 'h']
meridian = ['du matin', 'du soir']
usesMeridian = True
@@ -104,13 +104,13 @@
# text constants to be used by later regular expressions
re_values = {
- 'specials': 'à|a|le|la|du|de',
- 'timeseparator': '(?:\:|h|\s*heures?\s*)',
- 'rangeseparator': '-',
- 'daysuffix': 'ième|ieme|ème|eme|ère|ere|nde',
+ 'specials': r'à|a|le|la|du|de',
+ 'timeseparator': r'(?:\:|h|\s*heures?\s*)',
+ 'rangeseparator': r'-',
+ 'daysuffix': r'ième|ieme|ème|eme|ère|ere|nde',
'meridian': None,
- 'qunits': 'h|m|s|j|sem|a',
- 'now': ['maintenant', 'tout de suite', 'immédiatement', 'immediatement',
'à l\'instant', 'a l\'instant'],
+ 'qunits': r'h|m|s|j|sem|a',
+ 'now': [r'maintenant', r'tout de suite', r'immédiatement',
r'immediatement', r'à l\'instant', r'a l\'instant'],
}
# Used to adjust the returned date before/after the source
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/parsedatetime-2.4/parsedatetime/pdt_locales/icu.py
new/parsedatetime-2.5/parsedatetime/pdt_locales/icu.py
--- old/parsedatetime-2.4/parsedatetime/pdt_locales/icu.py 2017-05-14
08:22:54.000000000 +0200
+++ new/parsedatetime-2.5/parsedatetime/pdt_locales/icu.py 2019-11-19
05:45:22.000000000 +0100
@@ -35,6 +35,11 @@
def get_icu(locale):
+
+ def _sanitize_key(k):
+ import re
+ return re.sub("\\.(\\||$)", "\\1", k)
+
from . import base
result = dict([(key, getattr(base, key))
for key in dir(base) if not key.startswith('_')])
@@ -58,16 +63,16 @@
# grab ICU list of weekdays, skipping first entry which
# is always blank
- wd = [w.lower() for w in symbols.getWeekdays()[1:]]
- swd = [sw.lower() for sw in symbols.getShortWeekdays()[1:]]
+ wd = [_sanitize_key(w.lower()) for w in symbols.getWeekdays()[1:]]
+ swd = [_sanitize_key(sw.lower()) for sw in symbols.getShortWeekdays()[1:]]
# store them in our list with Monday first (ICU puts Sunday first)
result['Weekdays'] = merge_weekdays(result['Weekdays'],
wd[1:] + wd[0:1])
result['shortWeekdays'] = merge_weekdays(result['shortWeekdays'],
swd[1:] + swd[0:1])
- result['Months'] = [m.lower() for m in symbols.getMonths()]
- result['shortMonths'] = [sm.lower() for sm in symbols.getShortMonths()]
+ result['Months'] = [_sanitize_key(m.lower()) for m in symbols.getMonths()]
+ result['shortMonths'] = [_sanitize_key(sm.lower()) for sm in
symbols.getShortMonths()]
keys = ['full', 'long', 'medium', 'short']
createDateInstance = pyicu.DateFormat.createDateInstance
@@ -138,10 +143,10 @@
result['dateSep'] = [ds]
s = result['dateFormats']['short']
- l = s.lower().split(ds)
+ ll = s.lower().split(ds)
dp_order = []
- for s in l:
+ for s in ll:
if len(s) > 0:
dp_order.append(s[:1])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/parsedatetime-2.4/parsedatetime/pdt_locales/nl_NL.py
new/parsedatetime-2.5/parsedatetime/pdt_locales/nl_NL.py
--- old/parsedatetime-2.4/parsedatetime/pdt_locales/nl_NL.py 2015-10-20
03:11:44.000000000 +0200
+++ new/parsedatetime-2.5/parsedatetime/pdt_locales/nl_NL.py 2019-11-19
03:25:20.000000000 +0100
@@ -71,7 +71,6 @@
'vanaf': 1,
'voor': -1,
'na': 1,
- 'vorige': -1,
'eervorige': -1,
'prev': -1,
'laastste': -1,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/parsedatetime-2.4/parsedatetime/pdt_locales/ru_RU.py
new/parsedatetime-2.5/parsedatetime/pdt_locales/ru_RU.py
--- old/parsedatetime-2.4/parsedatetime/pdt_locales/ru_RU.py 2015-10-20
03:11:44.000000000 +0200
+++ new/parsedatetime-2.5/parsedatetime/pdt_locales/ru_RU.py 2019-11-19
05:45:22.000000000 +0100
@@ -24,7 +24,7 @@
'августа', 'сентября', 'октября', 'ноября', 'декабря',
]
shortMonths = [
- 'явн', 'фев', 'мрт', 'апр', 'май', 'июн',
+ 'янв', 'фев', 'мрт', 'апр', 'май', 'июн',
'июл', 'авг', 'сен', 'окт', 'нбр', 'дек',
]
dateFormats = {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/parsedatetime-2.4/parsedatetime.egg-info/PKG-INFO
new/parsedatetime-2.5/parsedatetime.egg-info/PKG-INFO
--- old/parsedatetime-2.4/parsedatetime.egg-info/PKG-INFO 2017-05-14
09:14:27.000000000 +0200
+++ new/parsedatetime-2.5/parsedatetime.egg-info/PKG-INFO 2019-11-19
06:21:51.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: parsedatetime
-Version: 2.4
+Version: 2.5
Summary: Parse human-readable date/time text.
Home-page: https://github.com/bear/parsedatetime
Author: Mike Taylor
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/parsedatetime-2.4/parsedatetime.egg-info/SOURCES.txt
new/parsedatetime-2.5/parsedatetime.egg-info/SOURCES.txt
--- old/parsedatetime-2.4/parsedatetime.egg-info/SOURCES.txt 2017-05-14
09:14:27.000000000 +0200
+++ new/parsedatetime-2.5/parsedatetime.egg-info/SOURCES.txt 2019-11-19
06:21:51.000000000 +0100
@@ -20,7 +20,6 @@
parsedatetime.egg-info/SOURCES.txt
parsedatetime.egg-info/dependency_links.txt
parsedatetime.egg-info/pbr.json
-parsedatetime.egg-info/requires.txt
parsedatetime.egg-info/top_level.txt
parsedatetime/pdt_locales/__init__.py
parsedatetime/pdt_locales/base.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/parsedatetime-2.4/parsedatetime.egg-info/requires.txt
new/parsedatetime-2.5/parsedatetime.egg-info/requires.txt
--- old/parsedatetime-2.4/parsedatetime.egg-info/requires.txt 2017-05-14
09:14:27.000000000 +0200
+++ new/parsedatetime-2.5/parsedatetime.egg-info/requires.txt 1970-01-01
01:00:00.000000000 +0100
@@ -1 +0,0 @@
-future
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/parsedatetime-2.4/setup.py
new/parsedatetime-2.5/setup.py
--- old/parsedatetime-2.4/setup.py 2017-05-14 08:22:54.000000000 +0200
+++ new/parsedatetime-2.5/setup.py 2019-11-19 03:25:20.000000000 +0100
@@ -35,7 +35,6 @@
packages=find_packages(exclude=['tests', 'docs']),
platforms=['Any'],
long_description=read('README.rst'),
- install_requires=['future'],
tests_require=['pytest'],
test_suite='tests',
classifiers=[