From 9a95b651348292effb4012bb01f907ff68a12d767a05604224c1c74629d1bdfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 21 Mar 2019 14:35:39 +0000 Subject: [PATCH] Accepting request 687279 from home:jayvdb:coala:test-rig - Convert to single spec - Use %license - Update to v3.1.0 OBS-URL: https://build.opensuse.org/request/show/687279 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-bdd?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + pytest-bdd-3.1.0.tar.gz | 3 ++ python-pytest-bdd.changes | 12 +++++ python-pytest-bdd.spec | 103 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 142 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pytest-bdd-3.1.0.tar.gz create mode 100644 python-pytest-bdd.changes create mode 100644 python-pytest-bdd.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pytest-bdd-3.1.0.tar.gz b/pytest-bdd-3.1.0.tar.gz new file mode 100644 index 0000000..27bca33 --- /dev/null +++ b/pytest-bdd-3.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:236e8dd5307537f742543bb71ed1a0f91f451d77ccabee5ba6c73950203bc881 +size 63639 diff --git a/python-pytest-bdd.changes b/python-pytest-bdd.changes new file mode 100644 index 0000000..0c4124a --- /dev/null +++ b/python-pytest-bdd.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +Thu Mar 21 09:46:01 UTC 2019 - John Vandenberg + +- Convert to single spec +- Use %license +- Update to v3.1.0 + +------------------------------------------------------------------- +Sat Jan 18 16:22:28 UTC 2014 - toms@opensuse.org + +- Initial version 0.6.8 + diff --git a/python-pytest-bdd.spec b/python-pytest-bdd.spec new file mode 100644 index 0000000..4bdc6ae --- /dev/null +++ b/python-pytest-bdd.spec @@ -0,0 +1,103 @@ +# +# spec file for package python-pytest-bdd +# +# Copyright (c) 2019 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/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-pytest-bdd +Version: 3.1.0 +Release: 0 +License: MIT +Summary: BDD for pytest +Url: https://github.com/pytest-dev/pytest-bdd +Group: Development/Languages/Python +Source: https://github.com/pytest-dev/pytest-bdd/archive/%{version}.tar.gz#/pytest-bdd-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +# SECTION test requirements +BuildRequires: %{python_module Mako} +BuildRequires: %{python_module execnet} +BuildRequires: %{python_module glob2} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module parse} +BuildRequires: %{python_module parse_type} +BuildRequires: %{python_module py} +BuildRequires: %{python_module pytest >= 3.0.0} +BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module six >= 1.9.0} +BuildRequires: python-enum34 +# /SECTION +BuildRequires: fdupes +Requires: python-glob2 +Requires: python-Mako +Requires: python-parse +Requires: python-parse_type +Requires: python-py +Requires: python-pytest >= 3.0.0 +Requires: python-six >= 1.9.0 +%ifpython2 +Requires: python-enum34 +%endif +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch + +%python_subpackages + +%description +BDD library for the py.test runner + +pytest-bdd implements a subset of Gherkin language for the automation of the project +requirements testing and easier behavioral driven development. + +Unlike many other BDD tools it doesn't require a separate runner and benefits from +the power and flexibility of the pytest. It allows to unify your unit and functional +tests, easier continuous integration server configuration and maximal reuse of the +tests setup. + +Pytest fixtures written for the unit tests can be reused for the setup and actions +mentioned in the feature steps with dependency injection, which allows a true BDD +just-enough specification of the requirements without maintaining any context object +containing the side effects of the Gherkin imperative declarations. + +%prep +%setup -q -n pytest-bdd-%{version} +sed -i '/tox/d' setup.py + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_clone -a %{buildroot}%{_bindir}/pytest-bdd + +%check +export LANG=en_US.UTF-8 +%python_exec setup.py pytest + +%post +%python_install_alternative pytest-bdd + +%postun +%python_uninstall_alternative pytest-bdd + +%files %{python_files} +%doc AUTHORS.rst CHANGES.rst README.rst +%license LICENSE.txt +%python_alternative %{_bindir}/pytest-bdd +%{python_sitelib}/* + +%changelog