forked from pool/python-pyVows
Accepting request 677851 from home:jayvdb:django
- Update to v2.1.0 - Activate test suite - Use single spec format for Python 2 & 3 rpms - Adds patch pr_133.patch for Python 3 support, and py37-async-keyword.patch for Python 3.7 support. OBS-URL: https://build.opensuse.org/request/show/677851 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyVows?expand=0&rev=1
This commit is contained in:
70
python-pyVows.spec
Normal file
70
python-pyVows.spec
Normal file
@@ -0,0 +1,70 @@
|
||||
#
|
||||
# spec file for package python-pyVows
|
||||
#
|
||||
# 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 https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pyVows
|
||||
Version: 2.1.0
|
||||
Release: 0
|
||||
Summary: BDD test engine based on Vows.js
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/heynemann/pyvows
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pyVows/pyVows-%{version}.tar.gz
|
||||
# Extracted from https://patch-diff.githubusercontent.com/raw/heynemann/pyvows/pull/133.patch
|
||||
Patch0: pr_133.patch
|
||||
Patch1: py37-async-keyword.patch
|
||||
BuildRequires: %{python_module Unidecode}
|
||||
BuildRequires: %{python_module gevent >= 0.13.6}
|
||||
BuildRequires: %{python_module colorama >= 0.3.7}
|
||||
BuildRequires: %{python_module preggy >= 0.5.8}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Unidecode
|
||||
Requires: python-gevent >= 1.2.2
|
||||
Requires: python-preggy >= 1.3.0
|
||||
Recommends: python-colorama >= 0.3.7
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
pyVows is a BDD test engine based on Vows.js <http://vowsjs.org>.
|
||||
|
||||
%prep
|
||||
%setup -q -n pyVows-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
sed -i '/^#!/d' pyvows/__main__.py pyvows/cli.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
export PYTHONPATH=.
|
||||
export PATH=%{buildroot}%{_bindir}:$PATH
|
||||
%python_exec pyvows/cli.py -x tests/
|
||||
|
||||
%files %{python_files}
|
||||
%python3_only %{_bindir}/pyvows
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user