Hello community,

here is the log from the commit of package python-Quandl for openSUSE:Factory 
checked in at 2018-07-12 09:19:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Quandl (Old)
 and      /work/SRC/openSUSE:Factory/.python-Quandl.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Quandl"

Thu Jul 12 09:19:17 2018 rev:3 rq:621963 version:3.4.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Quandl/python-Quandl.changes      
2018-01-22 16:20:52.827305364 +0100
+++ /work/SRC/openSUSE:Factory/.python-Quandl.new/python-Quandl.changes 
2018-07-12 09:21:20.914601766 +0200
@@ -1,0 +2,7 @@
+Tue Jul  3 20:33:29 UTC 2018 - sebix+novell....@sebix.at
+
+- update to version 3.4.0:
+ * When returning a list of data, in a Python friendly format, convert 
datetime64 to datetime
+ * Numpy no longer supports Python v3.3, thus we are removing support for it
+
+-------------------------------------------------------------------

Old:
----
  v3.3.0.tar.gz

New:
----
  v3.4.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-Quandl.spec ++++++
--- /var/tmp/diff_new_pack.nnZjIf/_old  2018-07-12 09:21:22.710604279 +0200
+++ /var/tmp/diff_new_pack.nnZjIf/_new  2018-07-12 09:21:22.714604285 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-Quandl
-Version:        3.3.0
+Version:        3.4.0
 Release:        0
 Summary:        Package for quandl API access
 License:        MIT
@@ -45,6 +45,7 @@
 BuildRequires:  %{python_module pandas >= 0.14}
 BuildRequires:  %{python_module pyOpenSSL}
 BuildRequires:  %{python_module pyasn1}
+BuildRequires:  %{python_module pycodestyle}
 BuildRequires:  %{python_module python-dateutil}
 BuildRequires:  %{python_module requests >= 2.7.0}
 BuildRequires:  %{python_module requests}

++++++ v3.3.0.tar.gz -> v3.4.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/quandl-python-3.3.0/.travis.yml 
new/quandl-python-3.4.0/.travis.yml
--- old/quandl-python-3.3.0/.travis.yml 2017-12-20 20:39:43.000000000 +0100
+++ new/quandl-python-3.4.0/.travis.yml 2018-07-03 17:20:00.000000000 +0200
@@ -2,7 +2,6 @@
 language: python
 python:
   - "2.7"
-  - "3.3"
   - "3.4"
   - "3.5"
   - "3.6"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/quandl-python-3.3.0/CHANGELOG.md 
new/quandl-python-3.4.0/CHANGELOG.md
--- old/quandl-python-3.3.0/CHANGELOG.md        2017-12-20 20:39:43.000000000 
+0100
+++ new/quandl-python-3.4.0/CHANGELOG.md        2018-07-03 17:20:00.000000000 
+0200
@@ -1,3 +1,8 @@
+### 3.4.0 - 2018-07-03
+
+* When returning a list of data, in a Python friendly format, convert 
datetime64 to datetime
+* Numpy no longer supports Python v3.3, thus we are removing support for it
+
 ### 3.3.0 - 2017-12-20
 
 * Unlock the version of requests to allow use with other modern packages
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/quandl-python-3.3.0/LICENSE.txt 
new/quandl-python-3.4.0/LICENSE.txt
--- old/quandl-python-3.3.0/LICENSE.txt 1970-01-01 01:00:00.000000000 +0100
+++ new/quandl-python-3.4.0/LICENSE.txt 2018-07-03 17:20:00.000000000 +0200
@@ -0,0 +1,7 @@
+Copyright (c) 2018 Quandl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy 
of this software and associated documentation files (the "Software"), to deal 
in the Software without restriction, including without limitation the rights to 
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 
of the Software, and to permit persons to whom the Software is furnished to do 
so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all 
copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 
SOFTWARE.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/quandl-python-3.3.0/README.md 
new/quandl-python-3.4.0/README.md
--- old/quandl-python-3.3.0/README.md   2017-12-20 20:39:43.000000000 +0100
+++ new/quandl-python-3.4.0/README.md   2018-07-03 17:20:00.000000000 +0200
@@ -1,4 +1,4 @@
-# Quandl Python Client 
+# Quandl Python Client
 [![Build 
Status](https://travis-ci.org/quandl/quandl-python.svg?branch=master)](https://travis-ci.org/quandl/quandl-python)
 [![PyPI 
version](https://badge.fury.io/py/quandl.svg)](https://badge.fury.io/py/quandl)
 
@@ -39,7 +39,7 @@
 
 ## Retrieving Data
 
-There are two methods for retrieving data in Python: the Quick method and the 
Detailed method. The latter is more suitable to application programming. Both 
methods work with Quandl's two types of data structures: time-series (dataset) 
data and non-time series (datatable). 
+There are two methods for retrieving data in Python: the Quick method and the 
Detailed method. The latter is more suitable to application programming. Both 
methods work with Quandl's two types of data structures: time-series (dataset) 
data and non-time series (datatable).
 
 The following quick call can be used to retrieve a dataset:
 
@@ -85,14 +85,14 @@
 1. Make sure a version of python 2.7 or python 3.x is installed locally in 
your system. To avoid permission issues on OSX we recommend installing the 
packages from: https://www.python.org/downloads/
 2. Install `virtualenv` and `tox` using:
     `pip install tox virtualenv`
-3. Run following command (you may notice slow performance the first time): 
+3. Run following command (you may notice slow performance the first time):
     `python setup.py install`
 4. Run the following command to test the plugin in all versions of python we 
support:
     `tox`
 
 ## Recommended Usage
 
-We would suggest downloading the data in raw format in the highest frequency 
possible and preforming any data manipulation
+We would suggest downloading the data in raw format in the highest frequency 
possible and performing any data manipulation
 in pandas itself.
 
 See [this link](http://pandas.pydata.org/pandas-docs/dev/timeseries.html) for 
more information about timeseries in pandas.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/quandl-python-3.3.0/quandl/model/data_mixin.py 
new/quandl-python-3.4.0/quandl/model/data_mixin.py
--- old/quandl-python-3.3.0/quandl/model/data_mixin.py  2017-12-20 
20:39:43.000000000 +0100
+++ new/quandl-python-3.4.0/quandl/model/data_mixin.py  2018-07-03 
17:20:00.000000000 +0200
@@ -12,8 +12,8 @@
             data = [data]
         if 'columns' in self.meta.keys():
             df = pd.DataFrame(data=data, columns=self.columns)
-            for index, type in enumerate(self.column_types):
-                if type == 'Date':
+            for index, column_type in enumerate(self.column_types):
+                if column_type == 'Date':
                     df[self.columns[index]] = 
df[self.columns[index]].apply(pd.to_datetime)
         else:
             df = pd.DataFrame(data=data, columns=self.column_names)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/quandl-python-3.3.0/quandl/model/merged_data_list.py 
new/quandl-python-3.4.0/quandl/model/merged_data_list.py
--- old/quandl-python-3.3.0/quandl/model/merged_data_list.py    2017-12-20 
20:39:43.000000000 +0100
+++ new/quandl-python-3.4.0/quandl/model/merged_data_list.py    2018-07-03 
17:20:00.000000000 +0200
@@ -1,4 +1,5 @@
 from .data_list import DataList
+import numpy as np
 
 
 class MergedDataList(DataList):
@@ -17,7 +18,17 @@
         return self.__data_frame
 
     def _initialize_raw_data(self):
-        return self.to_numpy().tolist()
+        numpy_results = self.to_numpy()
+        numpy_dtype_names = numpy_results.dtype.names
+
+        python_compatible_dtypes = []
+        for name in numpy_dtype_names:
+            if numpy_results.dtype[name].str == '<M8[ns]':
+                python_compatible_dtypes.append((str(name), 
np.dtype('<M8[ms]')))
+            else:
+                python_compatible_dtypes.append((str(name), 
numpy_results.dtype[name]))
+
+        return numpy_results.astype(python_compatible_dtypes).tolist()
 
     def _column_names(self):
         return self.to_numpy().dtype.names
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/quandl-python-3.3.0/quandl/version.py 
new/quandl-python-3.4.0/quandl/version.py
--- old/quandl-python-3.3.0/quandl/version.py   2017-12-20 20:39:43.000000000 
+0100
+++ new/quandl-python-3.4.0/quandl/version.py   2018-07-03 17:20:00.000000000 
+0200
@@ -1 +1 @@
-VERSION = '3.3.0'
+VERSION = '3.4.0'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/quandl-python-3.3.0/test/test_connection.py 
new/quandl-python-3.4.0/test/test_connection.py
--- old/quandl-python-3.3.0/test/test_connection.py     2017-12-20 
20:39:43.000000000 +0100
+++ new/quandl-python-3.4.0/test/test_connection.py     2018-07-03 
17:20:00.000000000 +0200
@@ -67,6 +67,6 @@
                                  'accept': ('application/json, '
                                             
'application/vnd.quandl+json;version=2015-04-09'),
                                  'request-source': 'python',
-                                 'request-source-version': '3.3.0'},
+                                 'request-source-version': '3.4.0'},
                         params={'per_page': 10, 'page': 2})
         self.assertEqual(mock.call_args, expected)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/quandl-python-3.3.0/test/test_merged_dataset.py 
new/quandl-python-3.4.0/test/test_merged_dataset.py
--- old/quandl-python-3.3.0/test/test_merged_dataset.py 2017-12-20 
20:39:43.000000000 +0100
+++ new/quandl-python-3.4.0/test/test_merged_dataset.py 2018-07-03 
17:20:00.000000000 +0200
@@ -203,7 +203,7 @@
                     [datetime.datetime(2015, 7, 14, 0, 0), 437.5, 3, 437.5, 
437.5, 3, 3],
                     [datetime.datetime(2015, 7, 15, 0, 0), 440.0, 2, 440.0, 
440.0, 2, 3]]
         for index, expected_item in enumerate(expected):
-            self.assertItemsEqual(results[index], expected_item)
+            self.assertItemsEqual(expected_item, results[index])
 
     def 
test_get_merged_dataset_data_is_descending_when_specified_in_params(self):
         data = MergedDataset(['NSE/OIL', 'WIKI/AAPL',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/quandl-python-3.3.0/tox.ini 
new/quandl-python-3.4.0/tox.ini
--- old/quandl-python-3.3.0/tox.ini     2017-12-20 20:39:43.000000000 +0100
+++ new/quandl-python-3.4.0/tox.ini     2018-07-03 17:20:00.000000000 +0200
@@ -3,7 +3,7 @@
 # test suite on all supported python versions. To use it, "pip install tox"
 # and then run "tox" from this directory.
 [tox]
-envlist = py2.7,py3.3,py3.4,py3.5,py3.6
+envlist = py2.7,py3.4,py3.5,py3.6
 
 [testenv]
 commands =


Reply via email to