2019-02-13 15:31:07 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-behave
|
|
|
|
|
#
|
2020-05-28 07:32:04 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2019-02-13 15:31:07 +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-03-23 16:20:41 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
2019-02-13 15:31:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
Name: python-behave
|
|
|
|
|
Version: 1.2.6
|
|
|
|
|
Release: 0
|
2019-03-25 11:43:39 +00:00
|
|
|
Summary: Behaviour-driven development, Python style
|
2019-03-23 16:20:41 +00:00
|
|
|
License: BSD-2-Clause
|
2019-02-13 15:31:07 +00:00
|
|
|
Group: Development/Languages/Python
|
2020-05-28 07:32:04 +00:00
|
|
|
URL: https://github.com/behave/behave
|
2019-02-13 15:31:07 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/b/behave/behave-%{version}.tar.gz
|
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: fdupes
|
2019-03-23 16:20:41 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-02-13 15:31:07 +00:00
|
|
|
Requires: python-parse >= 1.8.2
|
|
|
|
|
Requires: python-parse_type >= 0.4.2
|
|
|
|
|
Requires: python-six >= 1.11
|
2020-05-28 07:32:04 +00:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
|
Requires(postun): update-alternatives
|
2019-02-13 15:31:07 +00:00
|
|
|
Suggests: python-argparse
|
|
|
|
|
Suggests: python-coverage
|
2019-03-23 16:20:41 +00:00
|
|
|
Suggests: python-enum34
|
|
|
|
|
Suggests: python-importlib
|
2019-02-13 15:31:07 +00:00
|
|
|
Suggests: python-invoke >= 0.21.0
|
2019-03-23 16:20:41 +00:00
|
|
|
Suggests: python-modernize >= 0.5
|
|
|
|
|
Suggests: python-ordereddict
|
2019-02-13 15:31:07 +00:00
|
|
|
Suggests: python-path.py >= 8.1.2
|
|
|
|
|
Suggests: python-pathlib
|
2019-03-23 16:20:41 +00:00
|
|
|
Suggests: python-pycmd
|
2019-02-13 15:31:07 +00:00
|
|
|
Suggests: python-pylint
|
2019-03-23 16:20:41 +00:00
|
|
|
Suggests: python-pytest >= 3.0
|
|
|
|
|
Suggests: python-pytest-cov
|
2019-02-13 15:31:07 +00:00
|
|
|
Suggests: python-sphinx >= 1.6
|
|
|
|
|
Suggests: python-sphinx_bootstrap_theme >= 0.6
|
2019-03-23 16:20:41 +00:00
|
|
|
Suggests: python-tox
|
|
|
|
|
Suggests: python-traceback2
|
2019-02-13 15:31:07 +00:00
|
|
|
BuildArch: noarch
|
2019-03-23 16:20:41 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
|
BuildRequires: %{python_module PyHamcrest >= 1.8}
|
|
|
|
|
BuildRequires: %{python_module mock >= 1.1}
|
|
|
|
|
BuildRequires: %{python_module nose >= 1.3}
|
|
|
|
|
BuildRequires: %{python_module parse >= 1.8.2}
|
|
|
|
|
BuildRequires: %{python_module parse_type >= 0.4.2}
|
|
|
|
|
BuildRequires: %{python_module path.py >= 10.1}
|
|
|
|
|
BuildRequires: %{python_module pytest >= 3.0}
|
|
|
|
|
BuildRequires: %{python_module six >= 1.11}
|
|
|
|
|
# /SECTION
|
2019-02-13 15:31:07 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Behavior-driven development (or BDD) is an agile software development
|
|
|
|
|
technique that encourages collaboration between developers, QA and
|
|
|
|
|
non-technical or business participants in a software project.
|
|
|
|
|
|
|
|
|
|
*behave* uses tests written in a natural language style, backed up by Python
|
|
|
|
|
code.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n behave-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
2020-05-28 07:32:04 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/behave
|
2019-02-13 15:31:07 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2019-03-23 16:20:41 +00:00
|
|
|
|
2019-02-13 15:31:07 +00:00
|
|
|
%check
|
|
|
|
|
|
2020-05-28 07:32:04 +00:00
|
|
|
%post
|
|
|
|
|
%python_install_alternative behave
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative behave
|
|
|
|
|
|
2019-02-13 15:31:07 +00:00
|
|
|
%files %{python_files}
|
2019-03-23 16:20:41 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc CHANGES.rst README.rst
|
2020-05-28 07:32:04 +00:00
|
|
|
%python_alternative %{_bindir}/behave
|
2019-02-13 15:31:07 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|