Accepting request 928285 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/928285 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-itemadapter?expand=0&rev=2
This commit is contained in:
commit
5672c29830
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:4bfe70d1d621d9341c89190027ac92f5232da1443394977e49a31a1c42d25781
|
|
||||||
size 9184
|
|
3
itemadapter-0.4.0.tar.gz
Normal file
3
itemadapter-0.4.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:b5d3d4681670c74dbebfdacda9d19938bead9d364837cdc37ff3f8291583fa0f
|
||||||
|
size 14682
|
@ -1,3 +1,21 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Oct 30 13:06:13 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Update to v0.4.0
|
||||||
|
* Added ItemAdapter.is_item_class and
|
||||||
|
ItemAdapter.get_field_meta_from_class (#54)
|
||||||
|
* Added built-in support for pydantic models (#53)
|
||||||
|
* Adapter interface: added the ability to support arbitrary
|
||||||
|
types, by implementing a MutableMapping-based interface. By way
|
||||||
|
of this change, now any type can be used as a Scrapy item.
|
||||||
|
* Dropped support for Python 3.5 (#38).
|
||||||
|
* The new get_field_meta_from_class function offers the same
|
||||||
|
functionality as ItemAdapter.get_field_meta but for an item
|
||||||
|
class, as opposed to an item object (#34, #35).
|
||||||
|
* ItemAdapter.__repr__ no longer raises exceptions caused by the
|
||||||
|
underlying item (#31, #41).
|
||||||
|
- Disable python36 build due to Scrapy
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jul 8 06:54:27 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
Wed Jul 8 06:54:27 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-itemadapter
|
# spec file
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
# Copyright (c) 2016, Martin Hauke <mardnh@gmx.de>
|
# Copyright (c) 2016, Martin Hauke <mardnh@gmx.de>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@ -27,8 +27,10 @@
|
|||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
|
# Scrapy on TW has disabled python36 due to uvloop
|
||||||
|
%define skip_python36 1
|
||||||
Name: python-itemadapter%{psuffix}
|
Name: python-itemadapter%{psuffix}
|
||||||
Version: 0.1.0
|
Version: 0.4.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Wrapper for data container objects
|
Summary: Wrapper for data container objects
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
@ -37,10 +39,10 @@ Source: https://github.com/scrapy/itemadapter/archive/v%{version}.tar.gz
|
|||||||
BuildRequires: %{python_module setuptools >= 40.5.0}
|
BuildRequires: %{python_module setuptools >= 40.5.0}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-attrs
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module Scrapy >= 2.0}
|
BuildRequires: %{python_module Scrapy >= 2.0}
|
||||||
BuildRequires: %{python_module attrs}
|
BuildRequires: %{python_module attrs}
|
||||||
|
BuildRequires: %{python_module pydantic}
|
||||||
BuildRequires: %{python_module pytest >= 5.4}
|
BuildRequires: %{python_module pytest >= 5.4}
|
||||||
%endif
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
Loading…
Reference in New Issue
Block a user