14
0

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
This commit is contained in:
2021-04-28 13:46:20 +00:00
committed by Git OBS Bridge
commit 2987ccf9fa
5 changed files with 100 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0c6a0aeb17bbfa822a225897e25222ac02fd4796691f753abe862eb93713c716
size 26673

View File

@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Wed Apr 28 09:42:02 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Initial specfile for v1.0.4
- Required by python-Scrapy 2.5.0

68
python-itemloaders.spec Normal file
View File

@@ -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