- 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:
parent
a5d550f2f4
commit
8329177182
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
14
_service
14
_service
@ -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>
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d4110a05f5b3a4fedb78f44891acd3bde415ee2c76f50eeab5e102c0f92b917b
|
|
||||||
size 371211
|
|
@ -1,5 +0,0 @@
|
|||||||
name: soupsieve
|
|
||||||
version: 1.7.3
|
|
||||||
mtime: 1548223873
|
|
||||||
commit: 0f489f4e79034c5181504913a5c4d67d680efdc5
|
|
||||||
|
|
@ -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>
|
Sun Feb 3 10:28:53 UTC 2019 - Adrian Schröter <adrian@suse.de>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-beautifulsoup4
|
# spec file for package python-soupsieve
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -17,24 +17,38 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-soupsieve
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
Version: 1.7.3
|
%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
|
Release: 0
|
||||||
Summary: A modern CSS selector implementation for BeautifulSoup
|
Summary: A modern CSS selector implementation for BeautifulSoup
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
URL: http://facelessuser.github.io/soupsieve/
|
URL: http://facelessuser.github.io/soupsieve/
|
||||||
Source: soupsieve-%{version}.tar.xz
|
Source: https://files.pythonhosted.org/packages/source/s/soupsieve/soupsieve-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel >= 2.6}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
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
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n soupsieve-%{version}
|
%setup -q -n soupsieve-%{version}
|
||||||
|
|
||||||
@ -42,10 +56,22 @@ BuildArch: noarch
|
|||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if !%{with test}
|
||||||
%python_install
|
%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}
|
%files %{python_files}
|
||||||
%license LICENSE.md
|
%license LICENSE.md
|
||||||
|
%doc README.md
|
||||||
%{python_sitelib}/soupsieve*
|
%{python_sitelib}/soupsieve*
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
3
soupsieve-1.8.tar.gz
Normal file
3
soupsieve-1.8.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:eaed742b48b1f3e2d45ba6f79401b2ed5dc33b2123dfe216adb90d4bfa0ade26
|
||||||
|
size 88211
|
Loading…
x
Reference in New Issue
Block a user