forked from pool/python-behave
* v1.3.2: Broke Python 2.7 support (submitted by: silent-observer) - 1.3.2: * Recursive discovery and import in steps directory is now disabled by default. * RTFD: Enable PDF output format again (for download). * Improve command-line option descriptions (show: value). * Use "confval" directive for config-file parameters. * api: Add "Configuration" class description. * Include changes from pull #1258 * Fix more deadlinks in docs * behave4cmd0: Update version info to v1.3.1 * behave4cmd0.command_shell: Cleanup of BEHAVE_CMD value usage. * Update to python-version: "3.14.0-rc.2" (was: "3.14.0-rc.1") * Update actions/checkout to v5 (was: v4). * Use astral-sh/setup-uv@v6 (was: v3). - 1.3.1: * ImportError: cannot import name 'asynccontextmanager' not found in python 3.6 (submitted by: rzuckerm) * AmbiguousStep error on step import with "re" step-matcher (submitted by: VolodymyrDan00) * Add section with description of "Runners" extension point. * Add section with "Cucumber-Expressions". * docs: userdata (provided by: Therdel, fixes: #1234) * userdata_defines configuration file parameter is not up to date (submitted by: vvavrychuk) - 1.3.0: * Gherkin v6 support * Native support for cucumber-expressions as step matcher * Native support for async-steps * Support for tag-expressions v2 * Distinguish in outcome between failures (assert-failed) and errors (unexpected exceptions at runtime) * Improved captured-output support * Improved logging support and log-to-file support OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-behave?expand=0&rev=17
110 lines
3.6 KiB
RPMSpec
110 lines
3.6 KiB
RPMSpec
#
|
|
# spec file for package python-behave
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%bcond_without libalternatives
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-behave
|
|
Version: 1.3.3
|
|
Release: 0
|
|
Summary: Behaviour-driven development, Python style
|
|
License: BSD-2-Clause
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/behave/behave
|
|
Source: https://files.pythonhosted.org/packages/source/b/behave/behave-%{version}.tar.gz
|
|
# https://github.com/behave/behave/issues/1028
|
|
Patch1: python-behave-no-mock.patch
|
|
BuildRequires: %{python_module cucumber-tag-expressions}
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: alts
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: alts
|
|
Requires: python-parse >= 1.8.2
|
|
Requires: python-parse_type >= 0.4.2
|
|
Requires: python-six >= 1.11
|
|
Suggests: python-argparse
|
|
Suggests: python-coverage
|
|
Suggests: python-enum34
|
|
Suggests: python-importlib
|
|
Suggests: python-invoke >= 0.21.0
|
|
Suggests: python-modernize >= 0.5
|
|
Suggests: python-ordereddict
|
|
Suggests: python-path.py >= 8.1.2
|
|
Suggests: python-pathlib
|
|
Suggests: python-pycmd
|
|
Suggests: python-pylint
|
|
Suggests: python-pytest >= 3.0
|
|
Suggests: python-pytest-cov
|
|
Suggests: python-sphinx >= 1.6
|
|
Suggests: python-sphinx_bootstrap_theme >= 0.6
|
|
Suggests: python-tox
|
|
Suggests: python-traceback2
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module PyHamcrest >= 1.8}
|
|
BuildRequires: %{python_module assertpy >= 1.1}
|
|
BuildRequires: %{python_module chardet}
|
|
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 pytest-html >= 2.0}
|
|
BuildRequires: %{python_module six >= 1.11}
|
|
# /SECTION
|
|
%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
|
|
%autosetup -p1 -n behave-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_clone -a %{buildroot}%{_bindir}/behave
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest tests
|
|
|
|
%pre
|
|
# If libalternatives is used: Removing old update-alternatives entries.
|
|
%python_libalternatives_reset_alternative behave
|
|
|
|
# post and postun macro call is not needed with only libalternatives
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc CHANGES.rst README.rst
|
|
%python_alternative %{_bindir}/behave
|
|
%{python_sitelib}/behave
|
|
%{python_sitelib}/behave-%{version}*-info
|
|
|
|
%changelog
|