From 2987ccf9fad905bd5a6e65c6d48d70fe14afd3f9f9736c077e05e0682aac7911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 28 Apr 2021 13:46:20 +0000 Subject: [PATCH] Accepting request 889031 from home:bnavigator:branches:devel:languages:python Required by Scrapy 2.5.0 OBS-URL: https://build.opensuse.org/request/show/889031 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-itemloaders?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + itemloaders-1.0.4-gh.tar.gz | 3 ++ python-itemloaders.changes | 5 +++ python-itemloaders.spec | 68 +++++++++++++++++++++++++++++++++++++ 5 files changed, 100 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 itemloaders-1.0.4-gh.tar.gz create mode 100644 python-itemloaders.changes create mode 100644 python-itemloaders.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/itemloaders-1.0.4-gh.tar.gz b/itemloaders-1.0.4-gh.tar.gz new file mode 100644 index 0000000..7d9d393 --- /dev/null +++ b/itemloaders-1.0.4-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c6a0aeb17bbfa822a225897e25222ac02fd4796691f753abe862eb93713c716 +size 26673 diff --git a/python-itemloaders.changes b/python-itemloaders.changes new file mode 100644 index 0000000..fecc254 --- /dev/null +++ b/python-itemloaders.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Wed Apr 28 09:42:02 UTC 2021 - Ben Greiner + +- Initial specfile for v1.0.4 +- Required by python-Scrapy 2.5.0 diff --git a/python-itemloaders.spec b/python-itemloaders.spec new file mode 100644 index 0000000..8bffc42 --- /dev/null +++ b/python-itemloaders.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-itemloaders +# +# Copyright (c) 2021 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python3-%{**}} +%define skip_python2 1 +Name: python-itemloaders +Version: 1.0.4 +Release: 0 +Summary: Base library for scrapy's ItemLoader +License: BSD-3-Clause +URL: https://github.com/scrapy/itemloaders +# Use Github archive, the PyPI sdist does not bundle the tests +Source: https://github.com/scrapy/itemloaders/archive/refs/tags/v%{version}.tar.gz#/itemloaders-%{version}-gh.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-itemadapter >= 0.1.0 +Requires: python-jmespath >= 0.9.5 +Requires: python-parsel >= 1.5.0 +Requires: python-w3lib >= 1.17.0 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module itemadapter >= 0.1.0} +BuildRequires: %{python_module jmespath >= 0.9.5} +BuildRequires: %{python_module parsel >= 1.5.0} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module w3lib >= 1.17.0} +# /SECTION +%python_subpackages + +%description +Library to populate items using XPath and CSS with a convenient API + +%prep +%setup -q -n itemloaders-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/itemloaders +%{python_sitelib}/itemloaders-%{version}*-info + +%changelog