!1 add stestr spec and src tarball
From: @liksh Reviewed-by: Signed-off-by:
This commit is contained in:
commit
7ab3442323
86
python-stestr.spec
Normal file
86
python-stestr.spec
Normal file
@ -0,0 +1,86 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
|
||||
Name: python-stestr
|
||||
Version: 3.0.1
|
||||
Release: 4
|
||||
Summary: A test runner runner similar to testrepository
|
||||
License: Apache-2.0
|
||||
URL: http://stestr.readthedocs.io/en/latest/
|
||||
Source0: https://files.pythonhosted.org/packages/a4/20/7be12e9e605f9149cf6b4cbd76465832a377e26699a86beefb42e2235099/stestr-3.0.1.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
stestr is a fork of the testrepository that concentrates on being a \
|
||||
dedicated test runner for python projects. The generic abstraction layers \
|
||||
which enabled testr to work with any subunit emitting runner are gone. \
|
||||
stestr hard codes python-subunit-isms into how it works.
|
||||
|
||||
%package -n python3-stestr
|
||||
Summary: A test runner runner similar to testrepository
|
||||
BuildRequires: git
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-pbr
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-mock
|
||||
BuildRequires: python3-future
|
||||
BuildRequires: python3-subunit
|
||||
BuildRequires: python3-fixtures
|
||||
BuildRequires: python3-six
|
||||
BuildRequires: python3-sqlalchemy
|
||||
BuildRequires: python3-testtools
|
||||
BuildRequires: python3-PyYAML
|
||||
BuildRequires: python3-ddt
|
||||
BuildRequires: python3-cliff
|
||||
BuildRequires: python3-voluptuous
|
||||
|
||||
Requires: python3-pbr
|
||||
Requires: python3-future
|
||||
Requires: python3-subunit
|
||||
Requires: python3-fixtures
|
||||
Requires: python3-six
|
||||
Requires: python3-testtools
|
||||
Requires: python3-PyYAML
|
||||
Requires: python3-cliff
|
||||
Requires: python3-voluptuous
|
||||
|
||||
%description -n python3-stestr
|
||||
stestr is a fork of the testrepository that concentrates on being a \
|
||||
dedicated test runner for python projects. The generic abstraction layers \
|
||||
which enabled testr to work with any subunit emitting runner are gone. \
|
||||
stestr hard codes python-subunit-isms into how it works.
|
||||
|
||||
%prep
|
||||
%autosetup -n stestr-%{version} -S git
|
||||
rm -rf stestr.egg-info
|
||||
rm -f test-requirements.txt requirements.txt
|
||||
sed -i 's/pbr>=2.0.0/pbr/g' setup.py
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
ln -s stestr %{buildroot}/%{_bindir}/stestr-3
|
||||
ln -s stestr-3 %{buildroot}/%{_bindir}/stestr-%{python3_version}
|
||||
|
||||
%check
|
||||
export PATH=%{buildroot}/%{_bindir}:$PATH
|
||||
rm -fr .stestr
|
||||
PYTHON=%{__python3} %{__python3} setup.py test || :
|
||||
|
||||
%files -n python3-stestr
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{_bindir}/stestr*
|
||||
%{python3_sitelib}/stestr
|
||||
%{python3_sitelib}/stestr-*.egg-info
|
||||
|
||||
%changelog
|
||||
* Mon Dec 28 2020 liksh <liks11@chinaunicom.cn> - 3.0.1-4
|
||||
- Remove python2 support
|
||||
|
||||
* Fri Nov 20 2020 Python_Bot <Python_Bot@openeuler.org>
|
||||
- Package Spec generated
|
||||
|
||||
|
||||
BIN
stestr-3.0.1.tar.gz
Normal file
BIN
stestr-3.0.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user