python-behave: openEuler init
This commit is contained in:
parent
6d1d7455ec
commit
cd1b2cfcc8
BIN
behave-1.2.6.tar.gz
Normal file
BIN
behave-1.2.6.tar.gz
Normal file
Binary file not shown.
77
python-behave.spec
Normal file
77
python-behave.spec
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
%?python_enable_dependency_generator
|
||||||
|
Name: python-behave
|
||||||
|
Version: 1.2.6
|
||||||
|
Release: 2
|
||||||
|
Summary: A tool for behavior-driven development, Python style
|
||||||
|
License: BSD
|
||||||
|
URL: http://pypi.python.org/pypi/behave
|
||||||
|
Source0: https://github.com/behave/behave/archive/v%{version}/behave-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
Behave is behaviour-driven development, Python style.
|
||||||
|
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.
|
||||||
|
|
||||||
|
%package -n python3-behave
|
||||||
|
Summary: Python-behave with python 3 support.
|
||||||
|
%{?python_provide:%python_provide python3-behave}
|
||||||
|
BuildRequires: python3-devel python3-setuptools python3-hamcrest python3-mock python3-nose python3-parse
|
||||||
|
BuildRequires: python3-parse_type >= 0.4.2 python3-pytest python3-six
|
||||||
|
Conflicts: python2-behave < 1.2.6
|
||||||
|
|
||||||
|
%description -n python3-behave
|
||||||
|
Behave is behaviour-driven development, Python style.
|
||||||
|
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.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: This package contains help documents
|
||||||
|
BuildRequires: help2man python3-sphinx python3-sphinx-bootstrap-theme
|
||||||
|
Requires: python3-behave = %{version}-%{release}
|
||||||
|
Provides: python-behave-doc = %{version}-%{release}
|
||||||
|
Obsoletes: python-behave-doc < %{version}-%{release}
|
||||||
|
|
||||||
|
%description help
|
||||||
|
Files for help with plexus-component-api.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n behave-%{version} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%py3_build
|
||||||
|
make SPHINXBUILD=sphinx-build-3 html -C docs
|
||||||
|
rm -rf build/docs/html/.buildinfo
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -d %{buildroot}%{_mandir}/man1
|
||||||
|
%py3_install
|
||||||
|
PYTHONPATH=%{buildroot}%{python3_sitelib} help2man --no-info \
|
||||||
|
--name="Run a number of feature tests with behave." \
|
||||||
|
--output=behave.1 %{buildroot}%{_bindir}/behave
|
||||||
|
install -Dpm0644 behave.1 %{buildroot}%{_mandir}/man1/
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{__python3} -m pytest -v
|
||||||
|
|
||||||
|
%files -n python3-behave
|
||||||
|
%doc LICENSE
|
||||||
|
%{_bindir}/behave
|
||||||
|
%{python3_sitelib}/behave-*.egg-info/
|
||||||
|
%{python3_sitelib}/behave/
|
||||||
|
%{python3_sitelib}/setuptools_behave.py
|
||||||
|
%{python3_sitelib}/__pycache__/setuptools_behave.*
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%doc README.rst build/docs/html
|
||||||
|
%doc %{_mandir}/man1/behave.1*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Dec 05 2019 gulining<gulining1@huawei.com> - 1.2.6-2
|
||||||
|
- Pakcage init
|
||||||
Loading…
x
Reference in New Issue
Block a user