Hello community,
here is the log from the commit of package python-vega_datasets for
openSUSE:Factory checked in at 2019-08-05 10:36:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-vega_datasets (Old)
and /work/SRC/openSUSE:Factory/.python-vega_datasets.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-vega_datasets"
Mon Aug 5 10:36:05 2019 rev:3 rq:720124 version:0.7.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-vega_datasets/python-vega_datasets.changes
2018-12-24 11:48:01.517100466 +0100
+++
/work/SRC/openSUSE:Factory/.python-vega_datasets.new.4126/python-vega_datasets.changes
2019-08-05 10:36:20.095334863 +0200
@@ -1,0 +2,8 @@
+Wed Jul 31 21:04:47 UTC 2019 - Todd R <[email protected]>
+
+- Add fix_pandas_0_25.patch
+ Fix for building with pandas 0.25.0
+ See: gh#altair-viz/vega_datasets#24
+ From: gh#altair-viz/vega_datasets#25
+
+-------------------------------------------------------------------
New:
----
fix_pandas_0_25.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-vega_datasets.spec ++++++
--- /var/tmp/diff_new_pack.xvqTbr/_old 2019-08-05 10:36:21.143334744 +0200
+++ /var/tmp/diff_new_pack.xvqTbr/_new 2019-08-05 10:36:21.175334740 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-vega_datasets
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,8 @@
Group: Development/Languages/Python
URL: http://github.com/altair-viz/vega_datasets
Source:
https://files.pythonhosted.org/packages/source/v/vega_datasets/vega_datasets-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM fix_pandas_0_25.patch - gh#altair-viz/vega_datasets#25
gh#altair-viz/vega_datasets#24
+Patch0: fix_pandas_0_25.patch
BuildRequires: %{python_module pandas}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
@@ -42,6 +44,7 @@
%prep
%setup -q -n vega_datasets-%{version}
+%autopatch -p1
%build
%python_build
++++++ fix_pandas_0_25.patch ++++++
>From d14727405485588c4bf22032cfd6d79211dfe35b Mon Sep 17 00:00:00 2001
From: Jake VanderPlas <[email protected]>
Date: Wed, 31 Jul 2019 13:53:01 -0700
Subject: [PATCH] TST: fix tests for pandas 0.25
---
vega_datasets/tests/test_download.py | 6 +++---
vega_datasets/tests/test_local_datasets.py | 10 +++++-----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/vega_datasets/tests/test_download.py
b/vega_datasets/tests/test_download.py
index acdcf07..810c269 100644
--- a/vega_datasets/tests/test_download.py
+++ b/vega_datasets/tests/test_download.py
@@ -14,8 +14,8 @@
def test_download_iris():
iris = data.iris(use_local=False)
assert type(iris) is pd.DataFrame
- assert tuple(iris.columns) == ('petalLength', 'petalWidth', 'sepalLength',
- 'sepalWidth', 'species')
+ assert sorted(iris.columns) == ['petalLength', 'petalWidth', 'sepalLength',
+ 'sepalWidth', 'species']
iris = data.iris.raw(use_local=False)
assert type(iris) is bytes
@@ -29,7 +29,7 @@ def test_stock_date_parsing():
def test_stock_pivoted():
stocks = data.stocks(pivoted=True)
assert stocks.index.name == 'date'
- assert all(stocks.columns == ['AAPL', 'AMZN', 'GOOG', 'IBM', 'MSFT'])
+ assert sorted(stocks.columns) == ['AAPL', 'AMZN', 'GOOG', 'IBM', 'MSFT']
@skip_if_no_internet
diff --git a/vega_datasets/tests/test_local_datasets.py
b/vega_datasets/tests/test_local_datasets.py
index d458f3b..094664a 100644
--- a/vega_datasets/tests/test_local_datasets.py
+++ b/vega_datasets/tests/test_local_datasets.py
@@ -29,8 +29,8 @@ def test_load_local_dataset(name):
def test_iris_column_names():
iris = data.iris()
assert type(iris) is pd.DataFrame
- assert tuple(iris.columns) == ('petalLength', 'petalWidth', 'sepalLength',
- 'sepalWidth', 'species')
+ assert sorted(iris.columns) == ['petalLength', 'petalWidth', 'sepalLength',
+ 'sepalWidth', 'species']
iris = data.iris.raw()
assert type(iris) is bytes
@@ -39,7 +39,7 @@ def test_iris_column_names():
def test_stocks_column_names():
stocks = data.stocks()
assert type(stocks) is pd.DataFrame
- assert tuple(stocks.columns) == ('symbol', 'date', 'price')
+ assert sorted(stocks.columns) == ['date', 'price', 'symbol']
stocks = data.stocks.raw()
assert type(stocks) is bytes
@@ -48,9 +48,9 @@ def test_stocks_column_names():
def test_cars_column_names():
cars = data.cars()
assert type(cars) is pd.DataFrame
- assert tuple(cars.columns) == ('Acceleration', 'Cylinders', 'Displacement',
+ assert sorted(cars.columns) == ['Acceleration', 'Cylinders',
'Displacement',
'Horsepower', 'Miles_per_Gallon', 'Name',
- 'Origin', 'Weight_in_lbs', 'Year')
+ 'Origin', 'Weight_in_lbs', 'Year']
cars = data.cars.raw()
assert type(cars) is bytes