Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-partd for openSUSE:Factory 
checked in at 2023-09-11 21:21:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-partd (Old)
 and      /work/SRC/openSUSE:Factory/.python-partd.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-partd"

Mon Sep 11 21:21:48 2023 rev:8 rq:1110186 version:1.4.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-partd/python-partd.changes        
2022-10-06 07:42:17.636699307 +0200
+++ /work/SRC/openSUSE:Factory/.python-partd.new.1766/python-partd.changes      
2023-09-11 21:26:15.642097133 +0200
@@ -1,0 +2,8 @@
+Sun Sep 10 14:02:42 UTC 2023 - Ben Greiner <c...@bnavigator.de>
+
+- Update to 1.4.0
+  * no release notes
+  * DataFrame._data deprecation in pandas (#65)
+  * Use pickle for pandas Index with extension dtype (#64)
+
+-------------------------------------------------------------------

Old:
----
  partd-1.3.0.tar.gz

New:
----
  partd-1.4.0.tar.gz

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

Other differences:
------------------
++++++ python-partd.spec ++++++
--- /var/tmp/diff_new_pack.1T7Zu7/_old  2023-09-11 21:26:16.790138059 +0200
+++ /var/tmp/diff_new_pack.1T7Zu7/_new  2023-09-11 21:26:16.794138202 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-partd
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,8 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-partd
-Version:        1.3.0
+Version:        1.4.0
 Release:        0
 Summary:        Appendable key-value storage
 License:        BSD-3-Clause
@@ -26,14 +25,15 @@
 URL:            https://github.com/mrocklin/partd/
 Source:         
https://files.pythonhosted.org/packages/source/p/partd/partd-%{version}.tar.gz
 BuildRequires:  %{python_module locket}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module toolz}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-locket
 Requires:       python-toolz
 Recommends:     python-blosc
-Recommends:     python-msgpack-python
 Recommends:     python-numpy >= 1.9.0
 Recommends:     python-pandas
 Recommends:     python-pyzmq
@@ -56,10 +56,10 @@
 %setup -q -n partd-%{version}
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -68,5 +68,6 @@
 %files %{python_files}
 %doc README.rst
 %license LICENSE.txt
-%{python_sitelib}/*
+%{python_sitelib}/partd
+%{python_sitelib}/partd-%{version}.dist-info
 

++++++ partd-1.3.0.tar.gz -> partd-1.4.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/partd-1.3.0/PKG-INFO new/partd-1.4.0/PKG-INFO
--- old/partd-1.3.0/PKG-INFO    2022-08-12 01:22:05.256742000 +0200
+++ new/partd-1.4.0/PKG-INFO    2023-04-11 22:49:18.794071000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: partd
-Version: 1.3.0
+Version: 1.4.0
 Summary: Appendable key-value storage
 Home-page: http://github.com/dask/partd/
 Maintainer: Matthew Rocklin
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/partd-1.3.0/partd/_version.py 
new/partd-1.4.0/partd/_version.py
--- old/partd-1.3.0/partd/_version.py   2022-08-12 01:22:05.258515100 +0200
+++ new/partd-1.4.0/partd/_version.py   2023-04-11 22:49:18.796062700 +0200
@@ -8,11 +8,11 @@
 
 version_json = '''
 {
- "date": "2022-08-11T18:17:31-0500",
+ "date": "2023-04-11T15:42:23-0500",
  "dirty": false,
  "error": null,
- "full-revisionid": "d1faa885e2a7789ff3599b49be31b4c8cf48ba4d",
- "version": "1.3.0"
+ "full-revisionid": "af83b692e11ad17a2fe671ea5e8e34e2584d59dd",
+ "version": "1.4.0"
 }
 '''  # END VERSION_JSON
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/partd-1.3.0/partd/pandas.py 
new/partd-1.4.0/partd/pandas.py
--- old/partd-1.3.0/partd/pandas.py     2022-08-12 01:16:45.000000000 +0200
+++ new/partd-1.4.0/partd/pandas.py     2023-04-11 21:53:52.000000000 +0200
@@ -108,6 +108,9 @@
         cat = None
         values = ind.values
 
+    if is_extension_array_dtype(ind):
+        return None, dumps(ind)
+
     header = (type(ind), {k: getattr(ind, k, None) for k in ind._attributes}, 
values.dtype, cat)
     bytes = pnp.compress(pnp.serialize(values), values.dtype)
     return header, bytes
@@ -180,7 +183,7 @@
     headers = [col_header, ind_header]
     bytes = [col_bytes, ind_bytes]
 
-    for block in df._data.blocks:
+    for block in df._mgr.blocks:
         h, b = block_to_header_bytes(block)
         headers.append(h)
         bytes.append(b)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/partd-1.3.0/partd/tests/test_pandas.py 
new/partd-1.4.0/partd/tests/test_pandas.py
--- old/partd-1.3.0/partd/tests/test_pandas.py  2022-08-05 23:19:42.000000000 
+0200
+++ new/partd-1.4.0/partd/tests/test_pandas.py  2023-03-17 16:40:45.000000000 
+0100
@@ -6,6 +6,11 @@
 import pandas.testing as tm
 import os
 
+try:
+    import pyarrow as pa
+except ImportError:
+    pa = None
+
 from partd.pandas import PandasColumns, PandasBlocks, serialize, deserialize
 
 
@@ -115,3 +120,29 @@
     df = pd.DataFrame({"A": a})
     df2 = deserialize(serialize(df))
     tm.assert_frame_equal(df, df2)
+
+@pytest.mark.parametrize("dtype", ["Int64", "Int32", "Float64", "Float32"])
+def test_index_numeric_extension_types(dtype):
+    pytest.importorskip("pandas", minversion="1.4.0")
+
+    df = pd.DataFrame({"x": [1, 2, 3]}, index=[4, 5, 6])
+    df.index = df.index.astype(dtype)
+    df2 = deserialize(serialize(df))
+    tm.assert_frame_equal(df, df2)
+    
+@pytest.mark.parametrize(
+    "dtype",
+    [
+        "string[python]",
+        pytest.param(
+            "string[pyarrow]",
+            marks=pytest.mark.skipif(pa is None, reason="Requires pyarrow"),
+        ),
+    ],
+)
+def test_index_non_numeric_extension_types(dtype):
+    pytest.importorskip("pandas", minversion="1.4.0")
+    df = pd.DataFrame({"x": [1, 2, 3]}, index=["a", "b", "c"])
+    df.index = df.index.astype(dtype)
+    df2 = deserialize(serialize(df))
+    tm.assert_frame_equal(df, df2)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/partd-1.3.0/partd.egg-info/PKG-INFO 
new/partd-1.4.0/partd.egg-info/PKG-INFO
--- old/partd-1.3.0/partd.egg-info/PKG-INFO     2022-08-12 01:22:04.000000000 
+0200
+++ new/partd-1.4.0/partd.egg-info/PKG-INFO     2023-04-11 22:49:18.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: partd
-Version: 1.3.0
+Version: 1.4.0
 Summary: Appendable key-value storage
 Home-page: http://github.com/dask/partd/
 Maintainer: Matthew Rocklin

Reply via email to