From c408c492a9887e1b5c8a17d9763f276937f48bad8f84c1c8364f2f5f4d1c43e9 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 14 May 2024 07:57:52 +0000 Subject: [PATCH 1/3] - update to 0.9.0: * Dropped Python 3.7 support, added official Python 3.12 support * Updated the documentation and the type hint about `ItemAdapter.ADAPTER_CLASSES` to say that subclasses can use any iterable, not just `collections.deque` * Documented that `Pydantic >= 2` is not supported yet * Updated CI configuration OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-itemadapter?expand=0&rev=12 --- itemadapter-0.8.0.tar.gz | 3 --- itemadapter-0.9.0.tar.gz | 3 +++ python-itemadapter.changes | 12 ++++++++++++ python-itemadapter.spec | 6 ++---- 4 files changed, 17 insertions(+), 7 deletions(-) delete mode 100644 itemadapter-0.8.0.tar.gz create mode 100644 itemadapter-0.9.0.tar.gz diff --git a/itemadapter-0.8.0.tar.gz b/itemadapter-0.8.0.tar.gz deleted file mode 100644 index 2300a80..0000000 --- a/itemadapter-0.8.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3895c24d2b80015ca9b8422211d753afd172a1205b00b9f5aa71f258222f9c90 -size 17140 diff --git a/itemadapter-0.9.0.tar.gz b/itemadapter-0.9.0.tar.gz new file mode 100644 index 0000000..b63e4f1 --- /dev/null +++ b/itemadapter-0.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d848f6a9815161d97aaa18c663766e045c3daa92f98d921a3cd594b6161972f +size 17324 diff --git a/python-itemadapter.changes b/python-itemadapter.changes index e613403..ea63e7e 100644 --- a/python-itemadapter.changes +++ b/python-itemadapter.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Tue May 14 07:56:28 UTC 2024 - Dirk Müller + +- update to 0.9.0: + * Dropped Python 3.7 support, added official Python 3.12 + support + * Updated the documentation and the type hint about + `ItemAdapter.ADAPTER_CLASSES` to say that subclasses can + use any iterable, not just `collections.deque` + * Documented that `Pydantic >= 2` is not supported yet + * Updated CI configuration + ------------------------------------------------------------------- Wed Mar 20 13:31:31 UTC 2024 - Daniel Garcia diff --git a/python-itemadapter.spec b/python-itemadapter.spec index f0a748c..acb444f 100644 --- a/python-itemadapter.spec +++ b/python-itemadapter.spec @@ -25,11 +25,9 @@ %define psuffix %{nil} %bcond_with test %endif -%define skip_python2 1 -# Scrapy on TW has disabled python36 due to uvloop -%define skip_python36 1 +%{?sle15_python_module_pythons} Name: python-itemadapter%{psuffix} -Version: 0.8.0 +Version: 0.9.0 Release: 0 Summary: Wrapper for data container objects License: BSD-3-Clause From 3fb426d0f1a0a024b183b4ddebf3b3cb2c6103aad7e0d8f41c78750debc7ed57 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 14 May 2024 08:10:30 +0000 Subject: [PATCH 2/3] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-itemadapter?expand=0&rev=13 --- python-itemadapter.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-itemadapter.spec b/python-itemadapter.spec index acb444f..3ae769a 100644 --- a/python-itemadapter.spec +++ b/python-itemadapter.spec @@ -41,6 +41,7 @@ BuildRequires: python-rpm-macros %if %{with test} BuildRequires: %{python_module Scrapy >= 2.0} BuildRequires: %{python_module attrs} +BuildRequires: %{python_module itemadapter >= %{version}} BuildRequires: %{python_module pydantic} BuildRequires: %{python_module pytest >= 5.4} %endif From 423230cf283e6e2d196450a435e47cc2648d544cc080c20b23c9484467a61d97 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 14 May 2024 08:11:22 +0000 Subject: [PATCH 3/3] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-itemadapter?expand=0&rev=14 --- python-itemadapter.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/python-itemadapter.spec b/python-itemadapter.spec index 3ae769a..6e74844 100644 --- a/python-itemadapter.spec +++ b/python-itemadapter.spec @@ -35,7 +35,9 @@ URL: https://github.com/scrapy/itemadapter Source: https://github.com/scrapy/itemadapter/archive/v%{version}.tar.gz#/itemadapter-%{version}.tar.gz # PATCH-FIX-UPSTREAM pydantic2.patch gh#scrapy/itemadapter#76 Patch0: pydantic2.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools >= 40.5.0} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros %if %{with test} @@ -56,11 +58,11 @@ manner, regardless of their underlying implementation. %autosetup -p1 -n itemadapter-%{version} %build -%python_build +%pyproject_wheel %install %if !%{with test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -74,7 +76,7 @@ manner, regardless of their underlying implementation. %license LICENSE %doc README.md %{python_sitelib}/itemadapter -%{python_sitelib}/itemadapter-%{version}-py*.egg-info +%{python_sitelib}/itemadapter-%{version}.dist-info %endif %changelog