Hello community, here is the log from the commit of package python-rpy2 for openSUSE:Factory checked in at 2020-02-10 21:56:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-rpy2 (Old) and /work/SRC/openSUSE:Factory/.python-rpy2.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-rpy2" Mon Feb 10 21:56:27 2020 rev:9 rq:773171 version:3.2.6 Changes: -------- --- /work/SRC/openSUSE:Factory/python-rpy2/python-rpy2.changes 2020-02-03 11:13:14.097842404 +0100 +++ /work/SRC/openSUSE:Factory/.python-rpy2.new.26092/python-rpy2.changes 2020-02-10 21:56:30.962293561 +0100 @@ -1,0 +2,13 @@ +Mon Feb 10 15:10:53 UTC 2020 - Todd R <toddrme2...@gmail.com> + +- Update to 3.2.6 + + Bugs fixed + * The conversion of date/time object with specified timezones + was wrong when different than the local time zone + * Iterating over :mod:`rpy2.situation.iter_info()` could result + in a error because of a typo in the code. + + Changes + * :mod:`pandas` 1.0.0 breaks the conversion layer. A warning + is not emitted whenever trying to use `pandas` >= 1.0. + +------------------------------------------------------------------- Old: ---- rpy2-3.2.5.tar.gz New: ---- rpy2-3.2.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-rpy2.spec ++++++ --- /var/tmp/diff_new_pack.4YmD1k/_old 2020-02-10 21:56:32.174294231 +0100 +++ /var/tmp/diff_new_pack.4YmD1k/_new 2020-02-10 21:56:32.174294231 +0100 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-rpy2 -Version: 3.2.5 +Version: 3.2.6 Release: 0 Summary: A Python interface to the R Programming Language License: GPL-2.0-or-later @@ -65,7 +65,7 @@ # %%check # mkdir -p tester # pushd tester -# %%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} +# %%{python_expand export PYTHONPATH=%%{buildroot}%%{$python_sitearch} # $python -B -m rpy2.tests # } # popd ++++++ rpy2-3.2.5.tar.gz -> rpy2-3.2.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpy2-3.2.5/NEWS new/rpy2-3.2.6/NEWS --- old/rpy2-3.2.5/NEWS 2020-01-26 22:04:38.000000000 +0100 +++ new/rpy2-3.2.6/NEWS 2020-02-02 17:13:05.000000000 +0100 @@ -1,3 +1,22 @@ +Release 3.2.6 +============= + +Bugs fixed +---------- + +- The conversion of date/time object with specified timezones + was wrong when different than the local time zone (issue #634) + +- Iterating over :mod:`rpy2.situation.iter_info()` could result + in a error because of a typo in the code. + +Changes +------- + +- :mod:`pandas` 1.0.0 breaks the conversion layer. A warning + is not emitted whenever trying to use `pandas` >= 1.0. + + Release 3.2.5 ============= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpy2-3.2.5/PKG-INFO new/rpy2-3.2.6/PKG-INFO --- old/rpy2-3.2.5/PKG-INFO 2020-01-26 22:08:18.000000000 +0100 +++ new/rpy2-3.2.6/PKG-INFO 2020-02-02 17:14:11.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: rpy2 -Version: 3.2.5 +Version: 3.2.6 Summary: Python interface to the R language (embedded R) Home-page: https://rpy2.bitbucket.io Author: Laurent Gautier diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpy2-3.2.5/rpy2/__init__.py new/rpy2-3.2.6/rpy2/__init__.py --- old/rpy2-3.2.5/rpy2/__init__.py 2020-01-26 22:04:38.000000000 +0100 +++ new/rpy2-3.2.6/rpy2/__init__.py 2020-02-02 16:51:54.000000000 +0100 @@ -1,4 +1,4 @@ -__version_vector__ = (3,2,5) +__version_vector__ = (3,2,6) __version__ = '.'.join(str(x) for x in __version_vector__) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpy2-3.2.5/rpy2/robjects/pandas2ri.py new/rpy2-3.2.6/rpy2/robjects/pandas2ri.py --- old/rpy2-3.2.5/rpy2/robjects/pandas2ri.py 2019-12-18 22:36:55.000000000 +0100 +++ new/rpy2-3.2.6/rpy2/robjects/pandas2ri.py 2020-02-02 17:10:05.000000000 +0100 @@ -30,6 +30,9 @@ # activate in the function activate() below. import rpy2.robjects.numpy2ri as numpy2ri +if not pandas.__version__.startswith('0.'): + warnings.warn('pandas >= 1.0 is not supported.') + original_converter = None ISOdatetime = rinterface.baseenv['ISOdatetime'] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpy2-3.2.5/rpy2/robjects/vectors.py new/rpy2-3.2.6/rpy2/robjects/vectors.py --- old/rpy2-3.2.5/rpy2/robjects/vectors.py 2019-12-18 22:36:55.000000000 +0100 +++ new/rpy2-3.2.6/rpy2/robjects/vectors.py 2020-02-02 03:52:36.000000000 +0100 @@ -922,20 +922,23 @@ def iter_localized_datetime(self): """Iterator yielding localized Python datetime objects.""" try: - tzone_name = self.do_slot('tzone')[0] + r_tzone_name = self.do_slot('tzone')[0] except LookupError: warnings.warn('R object inheriting from "POSIXct" but without ' 'attribute "tzone".') - tzone_name = '' - if tzone_name == '': + r_tzone_name = '' + if r_tzone_name == '': # R is implicitly using the local timezone, while Python # time libraries will assume UTC. - tzone = get_timezone() + r_tzone = get_timezone() else: - tzone = pytz.timezone(tzone_name) + r_tzone = pytz.timezone(r_tzone_name) + for x in self: - yield (None if math.isnan(x) - else tzone.localize(datetime.fromtimestamp(x))) + yield ( + None if math.isnan(x) + else datetime.fromtimestamp(x, r_tzone) + ) class Array(Vector): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpy2-3.2.5/rpy2/situation.py new/rpy2-3.2.6/rpy2/situation.py --- old/rpy2-3.2.5/rpy2/situation.py 2020-01-26 22:04:38.000000000 +0100 +++ new/rpy2-3.2.6/rpy2/situation.py 2020-02-02 16:51:54.000000000 +0100 @@ -256,7 +256,7 @@ yield ' Calling `R RHOME`: %s' % r_home if r_home is not None and r_home_default is not None: - if os.path.abst(r_home) != r_home_default: + if os.path.abspath(r_home) != r_home_default: yield (' Warning: The environment variable R_HOME ' 'differs from the default R in the PATH.') else: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpy2-3.2.5/rpy2/tests/robjects/lib/test_dplyr.py new/rpy2-3.2.6/rpy2/tests/robjects/lib/test_dplyr.py --- old/rpy2-3.2.5/rpy2/tests/robjects/lib/test_dplyr.py 2020-01-26 22:04:38.000000000 +0100 +++ new/rpy2-3.2.6/rpy2/tests/robjects/lib/test_dplyr.py 2020-02-02 16:51:54.000000000 +0100 @@ -14,7 +14,6 @@ mtcars = data(datasets).fetch('mtcars')['mtcars'] @pytest.mark.skipif(not has_dplyr, reason='R package dplyr is not installed.') -@pytest.mark.lib_dplyr class TestDplyr(object): def test_dataframe(self): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpy2-3.2.5/rpy2/tests/robjects/lib/test_ggplot2.py new/rpy2-3.2.6/rpy2/tests/robjects/lib/test_ggplot2.py --- old/rpy2-3.2.5/rpy2/tests/robjects/lib/test_ggplot2.py 2020-01-26 22:04:38.000000000 +0100 +++ new/rpy2-3.2.6/rpy2/tests/robjects/lib/test_ggplot2.py 2020-02-02 16:51:54.000000000 +0100 @@ -13,7 +13,6 @@ mtcars = datasets.__rdata__.fetch('mtcars')['mtcars'] @pytest.mark.skipif(not has_ggplot, reason='R package ggplot is not installed.') -@pytest.mark.lib_ggplot2 class TestGGplot(object): def test_gglot(self): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpy2-3.2.5/rpy2/tests/robjects/test_vector_datetime.py new/rpy2-3.2.6/rpy2/tests/robjects/test_vector_datetime.py --- old/rpy2-3.2.5/rpy2/tests/robjects/test_vector_datetime.py 2019-12-18 22:36:55.000000000 +0100 +++ new/rpy2-3.2.6/rpy2/tests/robjects/test_vector_datetime.py 2020-02-02 03:52:36.000000000 +0100 @@ -81,7 +81,23 @@ def testPOSIXct_getitem(): - dt = (datetime.datetime(2014, 12, 11) - datetime.datetime(1970,1,1)).total_seconds() + dt = ((datetime.datetime(2014, 12, 11) - datetime.datetime(1970,1,1)) + .total_seconds()) sexp = robjects.r('ISOdate(c(2013, 2014), 12, 11, hour = 0, tz = "UTC")') res = robjects.POSIXct(sexp) assert (res[1] - dt) == 0 + + +def testPOSIXct_iter_localized_datetime(): + timestamp = 1234567890 + timezone = 'UTC' + r_vec = robjects.r('as.POSIXct')( + timestamp, + origin='1960-01-01', tz=timezone) + r_times = robjects.r('strftime')(r_vec, + format="%H:%M:%S", + tz=timezone) + py_value = next(r_vec.iter_localized_datetime()) + assert r_times[0] == ':'.join( + ('%i' % getattr(py_value, x) for x in ('hour', 'minute', 'second')) + ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpy2-3.2.5/rpy2.egg-info/PKG-INFO new/rpy2-3.2.6/rpy2.egg-info/PKG-INFO --- old/rpy2-3.2.5/rpy2.egg-info/PKG-INFO 2020-01-26 22:08:17.000000000 +0100 +++ new/rpy2-3.2.6/rpy2.egg-info/PKG-INFO 2020-02-02 17:14:11.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: rpy2 -Version: 3.2.5 +Version: 3.2.6 Summary: Python interface to the R language (embedded R) Home-page: https://rpy2.bitbucket.io Author: Laurent Gautier