2019-08-27 00:56:38 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-click-aliases
|
|
|
|
|
#
|
2024-10-22 13:58:32 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-08-27 00:56:38 +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.
|
|
|
|
|
|
2020-04-27 07:16:08 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
2019-08-27 00:56:38 +00:00
|
|
|
|
|
|
|
|
|
2023-12-27 10:10:55 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2019-08-27 00:56:38 +00:00
|
|
|
Name: python-click-aliases
|
2024-10-22 13:58:32 +00:00
|
|
|
Version: 1.0.5
|
2019-08-27 00:56:38 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Command aliases for Click
|
2020-04-27 07:16:08 +00:00
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/click-contrib/click-aliases
|
2023-12-27 10:10:55 +00:00
|
|
|
Source: https://github.com/click-contrib/click-aliases/archive/refs/tags/v%{version}.tar.gz#/click-aliases-%{version}-gh.tar.gz
|
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module poetry-core}
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
2020-04-27 07:16:08 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
Requires: python-click
|
|
|
|
|
BuildArch: noarch
|
2019-08-27 00:56:38 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
|
# See https://github.com/click-contrib/click-aliases/issues/5
|
|
|
|
|
# for problems with click 6.7 currently on Leap.
|
|
|
|
|
BuildRequires: %{python_module click >= 7.0}
|
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
# /SECTION
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Command aliases for Click.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n click-aliases-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2023-12-27 10:10:55 +00:00
|
|
|
%pyproject_wheel
|
2019-08-27 00:56:38 +00:00
|
|
|
|
|
|
|
|
%install
|
2023-12-27 10:10:55 +00:00
|
|
|
%pyproject_install
|
2019-08-27 00:56:38 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
2019-09-19 07:28:52 +00:00
|
|
|
export LANG=en_US.UTF-8
|
2020-04-27 07:16:08 +00:00
|
|
|
# test_invalid fails with new click as the quotes in output changed from single to regular ones
|
|
|
|
|
%pytest -k 'not test_invalid'
|
2019-08-27 00:56:38 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
2023-12-27 10:10:55 +00:00
|
|
|
%{python_sitelib}/click_aliases
|
|
|
|
|
%{python_sitelib}/click_aliases-%{version}.dist-info
|
2019-08-27 00:56:38 +00:00
|
|
|
|
|
|
|
|
%changelog
|