2018-05-10 05:06:12 +02:00
|
|
|
#
|
2018-08-11 12:02:12 +02:00
|
|
|
# spec file for package python
|
2018-05-10 05:06:12 +02:00
|
|
|
#
|
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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 http://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-%{**}}
|
2018-08-11 12:02:12 +02:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%bcond_with test
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
%bcond_without test
|
|
|
|
%endif
|
|
|
|
%if %{with test}
|
|
|
|
Name: python-requests-%{flavor}
|
|
|
|
%else
|
|
|
|
Name: python-requests
|
|
|
|
%endif
|
|
|
|
Version: 1.4.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
|
2018-05-10 05:06:12 +02:00
|
|
|
Group: Development/Languages/Python
|
2018-08-11 12:02:12 +02:00
|
|
|
URL: http://pyinvoke.org
|
2018-05-10 05:06:12 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/i/invocations/invocations-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
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
|
2018-08-11 12:02:12 +02:00
|
|
|
Requires: python-invoke >= 1.0
|
2018-05-10 05:06:12 +02:00
|
|
|
Requires: python-releases >= 1.2
|
|
|
|
Requires: python-semantic_version >= 2.4
|
|
|
|
Requires: python-tabulate >= 0.7.5
|
|
|
|
Requires: python-tqdm >= 4.8.1
|
2018-08-11 12:02:12 +02:00
|
|
|
%ifpython2
|
|
|
|
Requires: python-enum34
|
|
|
|
%endif
|
|
|
|
BuildRequires: python2-enum34
|
2018-05-10 05:06:12 +02:00
|
|
|
BuildArch: noarch
|
2018-08-11 12:02:12 +02:00
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module blessings >= 1.6}
|
|
|
|
BuildRequires: %{python_module invoke >= 1.0}
|
|
|
|
BuildRequires: %{python_module releases >= 1.2}
|
|
|
|
BuildRequires: %{python_module semantic_version >= 2.4}
|
|
|
|
BuildRequires: %{python_module tabulate >= 0.7.5}
|
|
|
|
BuildRequires: %{python_module tqdm >= 4.8.1}
|
|
|
|
%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
|
|
|
|
%setup -q -n invocations-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
2018-08-11 12:02:12 +02:00
|
|
|
%if !%{with test}
|
2018-05-10 05:06:12 +02:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2018-08-11 12:02:12 +02:00
|
|
|
%endif
|
2018-05-10 05:06:12 +02:00
|
|
|
|
|
|
|
%if %{with test}
|
|
|
|
%check
|
|
|
|
%python_exec setup.py test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
2018-08-11 12:02:12 +02:00
|
|
|
%if !%{with test}
|
2018-05-10 05:06:12 +02:00
|
|
|
%{python_sitelib}/*
|
2018-08-11 12:02:12 +02:00
|
|
|
%endif
|
2018-05-10 05:06:12 +02:00
|
|
|
|
|
|
|
%changelog
|