2018-05-10 05:06:12 +02:00
|
|
|
#
|
2018-08-11 12:04:11 +02:00
|
|
|
# spec file for package python-invocations
|
2018-05-10 05:06:12 +02:00
|
|
|
#
|
2022-03-10 07:26:32 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-05-10 05:06:12 +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-03-29 11:50:34 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-08-11 12:02:12 +02:00
|
|
|
#
|
2018-05-10 05:06:12 +02:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-03-14 09:35:36 +01:00
|
|
|
%bcond_without python2
|
2018-08-11 16:17:02 +02:00
|
|
|
Name: python-invocations
|
2021-12-14 19:28:48 +01:00
|
|
|
Version: 2.3.0
|
2018-05-10 05:06:12 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Reusable Invoke tasks
|
2018-08-11 12:02:12 +02:00
|
|
|
License: BSD-2-Clause
|
2019-03-29 11:50:34 +01:00
|
|
|
URL: https://github.com/pyinvoke/invocations
|
2021-12-14 19:28:48 +01:00
|
|
|
Source: https://github.com/pyinvoke/invocations/archive/%{version}.tar.gz#/invocations-%{version}.tar.gz
|
2018-08-11 16:17:02 +02:00
|
|
|
Patch0: invocations-no-bundled.patch
|
2018-08-11 16:28:33 +02:00
|
|
|
Patch1: invocations-py3.patch
|
2022-05-04 19:47:50 +02:00
|
|
|
# https://github.com/pyinvoke/invocations/issues/31
|
|
|
|
Patch2: python-invocations-no-mock.patch
|
2018-08-11 16:17:02 +02:00
|
|
|
BuildRequires: %{python_module blessings >= 1.6}
|
2021-12-14 19:28:48 +01:00
|
|
|
BuildRequires: %{python_module invoke >= 1.6}
|
2019-03-29 11:50:34 +01:00
|
|
|
BuildRequires: %{python_module lexicon}
|
2022-03-10 07:26:32 +01:00
|
|
|
BuildRequires: %{python_module pytest-relaxed}
|
2018-08-11 16:17:02 +02:00
|
|
|
BuildRequires: %{python_module releases >= 1.2}
|
|
|
|
BuildRequires: %{python_module semantic_version >= 2.4}
|
2018-05-10 05:06:12 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-03-29 11:50:34 +01:00
|
|
|
BuildRequires: %{python_module six}
|
2018-08-11 16:17:02 +02:00
|
|
|
BuildRequires: %{python_module tabulate >= 0.7.5}
|
|
|
|
BuildRequires: %{python_module tqdm >= 4.8.1}
|
2021-12-14 19:28:48 +01:00
|
|
|
BuildRequires: %{python_module twine >= 1.15}
|
|
|
|
BuildRequires: %{python_module wheel >= 0.24.0}
|
2018-05-10 05:06:12 +02:00
|
|
|
BuildRequires: fdupes
|
2018-08-11 12:02:12 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-05-10 05:06:12 +02:00
|
|
|
Requires: python-blessings >= 1.6
|
2021-12-14 19:28:48 +01:00
|
|
|
Requires: python-invoke >= 1.6
|
2019-03-29 11:50:34 +01:00
|
|
|
Requires: python-lexicon
|
2018-05-10 05:06:12 +02:00
|
|
|
Requires: python-releases >= 1.2
|
|
|
|
Requires: python-semantic_version >= 2.4
|
2019-03-29 11:50:34 +01:00
|
|
|
Requires: python-six
|
2018-05-10 05:06:12 +02:00
|
|
|
Requires: python-tabulate >= 0.7.5
|
|
|
|
Requires: python-tqdm >= 4.8.1
|
2021-12-14 19:28:48 +01:00
|
|
|
Requires: python-twine >= 1.15
|
|
|
|
Requires: python-wheel >= 0.24.0
|
2018-08-11 12:21:49 +02:00
|
|
|
BuildArch: noarch
|
2020-03-14 09:35:36 +01:00
|
|
|
%if %{with python2}
|
|
|
|
BuildRequires: python-enum34
|
|
|
|
%endif
|
2018-08-11 12:02:12 +02:00
|
|
|
%ifpython2
|
|
|
|
Requires: python-enum34
|
|
|
|
%endif
|
2018-05-10 05:06:12 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Invocations is a collection of reusable `Invoke <http://pyinvoke.org>`_
|
|
|
|
tasks/task modules, including (but not limited to) Python project management
|
|
|
|
tools such as documentation building and dependency organization.
|
|
|
|
|
|
|
|
It has no stand-alone components and is designed to be imported into your
|
|
|
|
pre-existing Invoke task files.
|
|
|
|
|
|
|
|
Invocations is currently in pre-alpha status and is unsupported. Please follow
|
|
|
|
the Invoke project's communication channels for updates. Thanks!
|
|
|
|
|
|
|
|
%prep
|
2022-05-04 19:47:50 +02:00
|
|
|
%autosetup -p1 -n invocations-%{version}
|
2018-05-10 05:06:12 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2020-10-13 21:04:02 +02:00
|
|
|
# autodoc: With new sphinx this does not work at all so skip it
|
|
|
|
# packaging: not applicable to openSUSE
|
|
|
|
# cannot use --ignore because of pytest-relaxed plugin
|
|
|
|
rm -r tests/autodoc/ tests/packaging/
|
|
|
|
%pytest
|
2018-05-10 05:06:12 +02:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
2020-10-13 21:04:02 +02:00
|
|
|
%{python_sitelib}/invocations
|
|
|
|
%{python_sitelib}/invocations-%{version}*info
|
2018-05-10 05:06:12 +02:00
|
|
|
|
|
|
|
%changelog
|