2014-09-03 17:58:51 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-click
|
|
|
|
#
|
2023-03-24 13:48:46 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2014-09-03 17:58:51 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-01-01 16:23:08 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-07-20 08:51:59 +02:00
|
|
|
#
|
2014-09-03 17:58:51 +02:00
|
|
|
|
|
|
|
|
2023-04-21 17:11:59 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2014-09-03 17:58:51 +02:00
|
|
|
Name: python-click
|
2023-09-07 12:59:41 +02:00
|
|
|
Version: 8.1.7
|
2014-09-03 17:58:51 +02:00
|
|
|
Release: 0
|
2018-12-05 20:24:11 +01:00
|
|
|
Summary: A wrapper around optparse for command line utilities
|
2015-07-20 08:51:59 +02:00
|
|
|
License: BSD-3-Clause
|
2019-10-17 23:04:48 +02:00
|
|
|
Group: Development/Languages/Python
|
2019-10-14 13:43:58 +02:00
|
|
|
URL: https://github.com/mitsuhiko/click
|
2020-03-31 14:18:24 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/c/click/click-%{version}.tar.gz
|
2022-06-05 18:39:42 +02:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
2017-03-22 18:38:25 +01:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2022-06-05 18:39:42 +02:00
|
|
|
BuildArch: noarch
|
2017-03-22 18:38:25 +01:00
|
|
|
%python_subpackages
|
2014-09-03 17:58:51 +02:00
|
|
|
|
|
|
|
%description
|
2018-12-05 20:24:11 +01:00
|
|
|
Click is a Python package for creating command line interfaces
|
2014-09-03 17:58:51 +02:00
|
|
|
in a composable way with as little code as necessary. It's the "Command
|
2018-12-05 20:24:11 +01:00
|
|
|
Line Interface Creation Kit". It is configurable, and comes with
|
|
|
|
defaults out of the box.
|
2014-09-03 17:58:51 +02:00
|
|
|
|
|
|
|
%prep
|
2023-05-05 16:21:21 +02:00
|
|
|
%autosetup -p1 -n click-%{version}
|
2014-09-03 17:58:51 +02:00
|
|
|
|
|
|
|
%build
|
2017-03-22 18:38:25 +01:00
|
|
|
%python_build
|
2014-09-03 17:58:51 +02:00
|
|
|
|
|
|
|
%install
|
2017-03-22 18:38:25 +01:00
|
|
|
%python_install
|
2019-10-14 13:43:58 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2014-09-03 17:58:51 +02:00
|
|
|
|
|
|
|
%check
|
2017-03-22 18:38:25 +01:00
|
|
|
export LANG=en_US.UTF-8
|
2021-08-30 14:56:07 +02:00
|
|
|
%pytest -rs --tb=short
|
2014-09-03 17:58:51 +02:00
|
|
|
|
2017-03-22 18:38:25 +01:00
|
|
|
%files %{python_files}
|
2019-01-01 16:11:51 +01:00
|
|
|
%license LICENSE.rst
|
|
|
|
%doc CHANGES.rst README.rst
|
2017-03-22 18:38:25 +01:00
|
|
|
%{python_sitelib}/click
|
2020-03-31 14:18:24 +02:00
|
|
|
%{python_sitelib}/click-%{version}-py%{python_version}.egg-info
|
2014-09-03 17:58:51 +02:00
|
|
|
|
|
|
|
%changelog
|