Accepting request 998218 from home:bnavigator:branches:devel:languages:python

- Skip python2: Fixes 15.X build
- Remove flake8 test requirement: no code linting required for
  packaging

OBS-URL: https://build.opensuse.org/request/show/998218
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-furl?expand=0&rev=14
This commit is contained in:
Dirk Mueller 2022-08-19 17:36:41 +00:00 committed by Git OBS Bridge
parent 581b374633
commit cdfac2961e
2 changed files with 13 additions and 10 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Aug 19 16:28:12 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Skip python2: Fixes 15.X build
- Remove flake8 test requirement: no code linting required for
packaging
-------------------------------------------------------------------
Mon May 17 10:41:58 UTC 2021 - pgajdos@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-furl
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,6 +17,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-furl
Version: 2.1.2
Release: 0
@ -28,12 +29,11 @@ Source: https://files.pythonhosted.org/packages/source/f/furl/furl-%{ver
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-orderedmultidict >= 1.0
Requires: python-orderedmultidict >= 1.0.1
Requires: python-six >= 1.8.0
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module flake8}
BuildRequires: %{python_module orderedmultidict >= 1.0}
BuildRequires: %{python_module orderedmultidict >= 1.0.1}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six >= 1.8.0}
# /SECTION
@ -44,18 +44,14 @@ furl is a Python library for parsing and manipulating URLs.
%prep
%autosetup -p1 -n furl-%{version}
chmod -x *.md
chmod -x *.md furl.egg-info/*
%build
%python_build
%install
%python_install
%{python_expand #
chmod -x %{buildroot}%{$python_sitelib}/furl-%{version}*-info/*
%fdupes %{buildroot}%{$python_sitelib}
}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest