forked from pool/python-launchpadlib
- Add 0001-Remove-support-for-Python-2.patch removing support for Python 2.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-launchpadlib?expand=0&rev=2
This commit is contained in:
@@ -23,18 +23,22 @@ Summary: Python client library for Launchpad's web service
|
||||
License: LGPL-3.0-only
|
||||
URL: https://pypi.org/project/launchpadlib/
|
||||
Source: https://launchpad.net/launchpadlib/trunk/%{version}/+download/launchpadlib-%{version}.tar.gz
|
||||
# PATCH-FEATURE-UPSTREAM 0001-Remove-support-for-Python-2.patch mcepl@suse.com
|
||||
# Code from https://code.launchpad.net/~cjwatson/launchpadlib/+git/launchpadlib/+merge/461678
|
||||
# Remove support for Python 2
|
||||
Patch0: 0001-Remove-support-for-Python-2.patch
|
||||
BuildRequires: %{python_module httplib2}
|
||||
BuildRequires: %{python_module lazr.restfulclient}
|
||||
BuildRequires: %{python_module lazr.uri}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module testresources}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-httplib2
|
||||
Requires: python-lazr.restfulclient
|
||||
Requires: python-lazr.uri
|
||||
Requires: python-six
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -47,18 +51,19 @@ you can integrate your applications into Launchpad without knowing a lot about H
|
||||
%autosetup -p1 -n launchpadlib-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
%pyunittest discover -v src/launchpadlib/tests/
|
||||
|
||||
%files %{python_files}
|
||||
%license COPYING.txt
|
||||
%doc CONTRIBUTING.rst NEWS.rst README.rst
|
||||
%{python_sitelib}/launchpadlib*
|
||||
%{python_sitelib}/launchpadlib
|
||||
%{python_sitelib}/launchpadlib-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user