2014-09-03 15:58:51 +00:00
#
# spec file for package python-click
#
2023-03-24 12:48:46 +00:00
# Copyright (c) 2023 SUSE LLC
2014-09-03 15:58:51 +00: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 15:23:08 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2015-07-20 06:51:59 +00:00
#
2014-09-03 15:58:51 +00:00
2021-06-21 08:06:03 +00:00
%define oldpython python
%define skip_python2 1
2023-04-21 15:11:59 +00:00
%{?sle15_python_module_pythons}
2014-09-03 15:58:51 +00:00
Name : python-click
2022-06-05 16:39:42 +00:00
Version : 8.1.3
2014-09-03 15:58:51 +00:00
Release : 0
2018-12-05 19:24:11 +00:00
Summary : A wrapper around optparse for command line utilities
2015-07-20 06:51:59 +00:00
License : BSD-3-Clause
2019-10-17 21:04:48 +00:00
Group : Development/Languages/Python
2019-10-14 11:43:58 +00:00
URL : https://github.com/mitsuhiko/click
2020-03-31 12:18:24 +00:00
Source : https://files.pythonhosted.org/packages/source/c/click/click-%{version} .tar.gz
2023-05-05 14:21:21 +00:00
# PATCH-FIX-UPSTREAM https://github.com/pallets/click/commit/6e05e1fa1c2804410f9916b27edc07076e3b156d Update dependencies using pip-compile-multi (#2508)
# our tests were failing in a staging because of some new version and upstream came across the issue while updating dependencies, hence the weird commit message
Patch : fix-tests.patch
2022-06-05 16:39:42 +00:00
BuildRequires : %{python_module base >= 3.7}
2017-03-22 17:38:25 +00:00
BuildRequires : %{python_module pytest}
BuildRequires : %{python_module setuptools}
BuildRequires : fdupes
BuildRequires : python-rpm-macros
2022-06-05 16:39:42 +00:00
BuildArch : noarch
2021-08-30 12:56:07 +00:00
%if "%{python_flavor}" == "python36"
Requires : python-importlib-metadata
%endif
2017-03-22 17:38:25 +00:00
%python_subpackages
2014-09-03 15:58:51 +00:00
%description
2018-12-05 19:24:11 +00:00
Click is a Python package for creating command line interfaces
2014-09-03 15:58:51 +00:00
in a composable way with as little code as necessary. It's the " C o m m a n d
2018-12-05 19:24:11 +00:00
Line Interface Creation Kit" . I t i s c o n f i g u r a b l e , a n d c o m e s w i t h
defaults out of the box.
2014-09-03 15:58:51 +00:00
%prep
2023-05-05 14:21:21 +00:00
%autosetup -p1 -n click-%{version}
2014-09-03 15:58:51 +00:00
%build
2017-03-22 17:38:25 +00:00
%python_build
2014-09-03 15:58:51 +00:00
%install
2017-03-22 17:38:25 +00:00
%python_install
2019-10-14 11:43:58 +00:00
%python_expand %fdupes %{buildroot} %{$python_sitelib}
2014-09-03 15:58:51 +00:00
%check
2017-03-22 17:38:25 +00:00
export LANG=en_US.UTF-8
2021-08-30 12:56:07 +00:00
%pytest -rs --tb=short
2014-09-03 15:58:51 +00:00
2017-03-22 17:38:25 +00:00
%files %{python_files}
2019-01-01 15:11:51 +00:00
%license LICENSE.rst
%doc CHANGES.rst README.rst
2017-03-22 17:38:25 +00:00
%{python_sitelib} /click
2020-03-31 12:18:24 +00:00
%{python_sitelib} /click-%{version} -py%{python_version} .egg-info
2014-09-03 15:58:51 +00:00
%changelog