- Fetch package from pypi

- Update to 1.8:
  * no obvious changelog
- Run tests
- Add missing dependencies

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-soupsieve?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal 2019-03-01 11:41:30 +00:00 committed by Git OBS Bridge
parent a5d550f2f4
commit 8329177182
7 changed files with 48 additions and 29 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@ -1,14 +0,0 @@
<services>
<service name="obs_scm">
<param name="url">https://github.com/facelessuser/soupsieve.git</param>
<param name="scm">git</param>
<param name="version">1.7.3</param>
<param name="revision">1.7.3</param>
</service>
<service mode="buildtime" name="tar" />
<service mode="buildtime" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="buildtime" name="set_version" />
</services>

View File

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

View File

@ -1,5 +0,0 @@
name: soupsieve
version: 1.7.3
mtime: 1548223873
commit: 0f489f4e79034c5181504913a5c4d67d680efdc5

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Mar 1 11:34:35 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Fetch package from pypi
- Update to 1.8:
* no obvious changelog
- Run tests
- Add missing dependencies
-------------------------------------------------------------------
Sun Feb 3 10:28:53 UTC 2019 - Adrian Schröter <adrian@suse.de>

View File

@ -1,5 +1,5 @@
#
# spec file for package python-beautifulsoup4
# spec file for package python-soupsieve
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
@ -17,24 +17,38 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-soupsieve
Version: 1.7.3
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
Name: python-soupsieve%{psuffix}
Version: 1.8
Release: 0
Summary: A modern CSS selector implementation for BeautifulSoup
License: MIT
Group: Development/Libraries/Python
URL: http://facelessuser.github.io/soupsieve/
Source: soupsieve-%{version}.tar.xz
BuildRequires: %{python_module devel >= 2.6}
Source: https://files.pythonhosted.org/packages/source/s/soupsieve/soupsieve-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module beautifulsoup4}
BuildRequires: %{python_module pytest}
BuildRequires: python-backports.functools_lru_cache
%endif
%ifpython2
Requires: python-backports.functools_lru_cache
%endif
%python_subpackages
%description
%prep
%setup -q -n soupsieve-%{version}
@ -42,10 +56,22 @@ BuildArch: noarch
%python_build
%install
%if !%{with test}
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%python_expand rm -rf %{buildroot}%{$python_sitelib}/tests
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{python_bin_suffix} -v tests
%endif
%if !%{with test}
%files %{python_files}
%license LICENSE.md
%doc README.md
%{python_sitelib}/soupsieve*
%endif
%changelog

3
soupsieve-1.8.tar.gz Normal file
View File

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