python-invocations/python-invocations.spec
Dirk Mueller c90952c5a8 Accepting request 1006810 from home:yarunachalam:branches:devel:languages:python
- Update to version 2.6.0 2022-03-25
  [Feature]: Update packaging.release.publish with a new config option, rebuild_with_env,
  to support a downstream (Fabric) release use-case.
  [Feature]: Enhance packaging.release.test-install so it’s more flexible about the primary directory argument
  (re: a dist dir, or a parent of one) and errors usefully when you (probably) gave it an incorrect path.
- Update to version 2.5.0 2022-03-25
  [Feature]: Port make-sshable from the travis module to the new ci one.
- Update to version 2.4.0 2022-03-17
  [Feature]: Add additional CLI flags to the use of gpg when signing releases,
  to support headless passphrase entry. It was found that modern GPG versions require --batch and
  --pinentry-mode=loopback for --passphrase-fd to function correctly.
  [Feature]: Add a new invocations.ci task module for somewhat-more-generic CI support than the now legacy invocations.travis tasks.
  [Feature]: Allow supplying additional test runners to pytest.coverage; primarily useful for setting up multiple additive test runs before publishing reports.

OBS-URL: https://build.opensuse.org/request/show/1006810
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-invocations?expand=0&rev=25
2022-09-29 10:38:40 +00:00

100 lines
3.3 KiB
RPMSpec

#
# spec file for package python-invocations
#
# Copyright (c) 2022 SUSE LLC
#
# 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-%{**}}
%bcond_without python2
Name: python-invocations
Version: 2.6.1
Release: 0
Summary: Reusable Invoke tasks
License: BSD-2-Clause
URL: https://github.com/pyinvoke/invocations
Source: https://github.com/pyinvoke/invocations/archive/%{version}.tar.gz#/invocations-%{version}.tar.gz
Patch0: invocations-no-bundled.patch
Patch1: invocations-py3.patch
# https://github.com/pyinvoke/invocations/issues/31
Patch2: python-invocations-no-mock.patch
BuildRequires: %{python_module blessings >= 1.6}
BuildRequires: %{python_module invoke >= 1.6}
BuildRequires: %{python_module lexicon}
BuildRequires: %{python_module pytest-relaxed}
BuildRequires: %{python_module releases >= 1.2}
BuildRequires: %{python_module semantic_version >= 2.4}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{python_module tabulate >= 0.7.5}
BuildRequires: %{python_module tqdm >= 4.8.1}
BuildRequires: %{python_module twine >= 1.15}
BuildRequires: %{python_module wheel >= 0.24.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-blessings >= 1.6
Requires: python-invoke >= 1.6
Requires: python-lexicon
Requires: python-releases >= 1.2
Requires: python-semantic_version >= 2.4
Requires: python-six
Requires: python-tabulate >= 0.7.5
Requires: python-tqdm >= 4.8.1
Requires: python-twine >= 1.15
Requires: python-wheel >= 0.24.0
BuildArch: noarch
%if %{with python2}
BuildRequires: python-enum34
%endif
%ifpython2
Requires: python-enum34
%endif
%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
%autosetup -p1 -n invocations-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# 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
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/invocations
%{python_sitelib}/invocations-%{version}*info
%changelog