Commit Graph

16 Commits

Author SHA256 Message Date
Ana Guerrero
5ba5a95b22 Accepting request 1173911 from devel:languages:python
- 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/request/show/1173911
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-itemadapter?expand=0&rev=6
2024-05-14 11:39:03 +00:00
423230cf28 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-itemadapter?expand=0&rev=14 2024-05-14 08:11:22 +00:00
3fb426d0f1 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-itemadapter?expand=0&rev=13 2024-05-14 08:10:30 +00:00
c408c492a9 - 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
2024-05-14 07:57:52 +00:00
Dominique Leuenberger
c0620fa69b Accepting request 1159849 from devel:languages:python
- Add pydantic2.patch to make tests compatible with pydantic2
  gh#scrapy/itemadapter#76

OBS-URL: https://build.opensuse.org/request/show/1159849
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-itemadapter?expand=0&rev=5
2024-03-20 20:18:40 +00:00
f9b09bef24 - Add pydantic2.patch to make tests compatible with pydantic2
gh#scrapy/itemadapter#76

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-itemadapter?expand=0&rev=10
2024-03-20 13:32:14 +00:00
Ana Guerrero
e390e96348 Accepting request 1131744 from devel:languages:python
- update to 0.8.0:
  * Dropped Python 3.6 support, and made Python 3.11 support
    official
  * It is now possible to declare custom `ItemAdapter` subclasses
    with their own `ADAPTER_CLASSES` attribute, allowing to
    support different item types in different parts of the same
    code base
  * Improved type hint support

  Improve performance by removing imports inside functions (#60)
- Disable python36 build due to Scrapy

OBS-URL: https://build.opensuse.org/request/show/1131744
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-itemadapter?expand=0&rev=4
2023-12-08 21:32:13 +00:00
da082cccae - update to 0.8.0:
* Dropped Python 3.6 support, and made Python 3.11 support
    official
  * It is now possible to declare custom `ItemAdapter` subclasses
    with their own `ADAPTER_CLASSES` attribute, allowing to
    support different item types in different parts of the same
    code base
  * Improved type hint support
  Improve performance by removing imports inside functions (#60)
- Disable python36 build due to Scrapy

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-itemadapter?expand=0&rev=8
2023-12-07 22:48:55 +00:00
Richard Brown
b8639ffc36 Accepting request 1006920 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1006920
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-itemadapter?expand=0&rev=3
2022-09-29 16:14:32 +00:00
2b8b5c4840 Accepting request 1006813 from home:yarunachalam:branches:devel:languages:python
- Update to 0.7.0 (2022-08-02)
  ItemAdapter.get_field_names_from_class (#64)
- Update to 0.6.0 (2022-05-12)
  Slight performance improvement (#62)
- Update to 0.5.0 (2022-03-18)
  Improve performance by removing imports inside functions (#60)

OBS-URL: https://build.opensuse.org/request/show/1006813
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-itemadapter?expand=0&rev=6
2022-09-29 10:51:04 +00:00
Dominique Leuenberger
5672c29830 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
2021-10-30 21:14:01 +00:00
011f306c06 Accepting request 928266 from home:bnavigator:branches:devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/928266
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-itemadapter?expand=0&rev=5
2021-10-30 16:08:24 +00:00
Dominique Leuenberger
e641486fb2 Accepting request 819360 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/819360
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-itemadapter?expand=0&rev=1
2020-07-08 17:13:56 +00:00
Tomáš Chvátal
daaa1432ab - Switch to multibuild
- Fix the sitelib/sitearch and all the dependencies

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-itemadapter?expand=0&rev=3
2020-07-08 06:54:46 +00:00
Tomáš Chvátal
c731871fc9 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-itemadapter?expand=0&rev=2 2020-07-08 06:38:55 +00:00
Tomáš Chvátal
bfc3be94c2 Accepting request 819305 from home:winski:python
itemadapter is a wrapper for data container objects & required for updating python-Scrapy (already in repos) because it is not a dependency. itemadapter is made by the Scrapy team. I have also updated python-Scrapy (with this package as a dep) and have submitted that as another request.
UPDATED: added tests to package as requested by d:l:p maintainer.

OBS-URL: https://build.opensuse.org/request/show/819305
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-itemadapter?expand=0&rev=1
2020-07-08 06:38:04 +00:00