14
0

Accepting request 682851 from home:jayvdb:coala:python3-bears

- Initial spec for v1.2.0

OBS-URL: https://build.opensuse.org/request/show/682851
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pythonfinder?expand=0&rev=1
This commit is contained in:
Tomáš Chvátal
2019-03-08 13:57:50 +00:00
committed by Git OBS Bridge
commit d07bc48333
6 changed files with 123 additions and 0 deletions

75
python-pythonfinder.spec Normal file
View File

@@ -0,0 +1,75 @@
#
# spec file for package python-pythonfinder
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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() python-%{**} python3-%{**}}
Name: python-pythonfinder
Version: 1.2.0
Release: 0
Summary: A cross-platform tool to help locate python on any system
License: MIT
Group: Development/Languages/Python
URL: https://github.com/sarugaku/pythonfinder
Source: https://files.pythonhosted.org/packages/source/p/pythonfinder/pythonfinder-%{version}.tar.gz
# https://github.com/sarugaku/pythonfinder/issues/62
Patch0: setup-ascii.patch
BuildRequires: %{python_module setuptools >= 36.2.2}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-attrs
Requires: python-cached-property
Requires: python-click
Requires: python-crayons
Requires: python-packaging
Requires: python-six
Requires: python-vistir >= 0.2.5
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module attrs}
BuildRequires: %{python_module cached-property}
BuildRequires: %{python_module click}
BuildRequires: %{python_module crayons}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module six}
BuildRequires: %{python_module vistir >= 0.2.5}
# /SECTION
%python_subpackages
%description
A cross-platform python discovery tool to help locate python on any system.
%prep
%setup -q -n pythonfinder-%{version}
%patch0 -p1
# Has no direct dependency on pathlib2 or lru_cache, which it obtains from vistir
# https://github.com/sarugaku/pythonfinder/pull/63
sed -i '/pathlib2/d;/lru_cache/d' setup.cfg
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc CHANGELOG.rst README.rst
%license LICENSE.txt
%python3_only %{_bindir}/pyfinder
%{python_sitelib}/*
%changelog