python-testtools/python-testtools.spec

80 lines
2.5 KiB
RPMSpec
Raw Normal View History

2019-11-30 14:29:26 +08:00
Name: python-testtools
2023-06-14 09:55:09 +08:00
Version: 2.6.0
2022-07-07 18:56:21 +08:00
Release: 1
2019-11-30 14:29:26 +08:00
Summary: Extensions to the Python unit testing framework
License: MIT
URL: https://launchpad.net/testtools
Source0: https://pypi.io/packages/source/t/testtools/testtools-%{version}.tar.gz
2019-11-30 14:29:26 +08:00
BuildRequires: python3-extras python3-mimeparse python3-pbr python3-setuptools python3-unittest2
BuildRequires: python3-traceback2 python3-testscenarios python3-sphinx python3-devel
2019-11-30 14:29:26 +08:00
BuildArch: noarch
%description
Testtools is a set of extensions to the Python standard library's unit testing framework. These
extensions have been derived from years of experience with unit testing in Python and come from
many different sources.
%package -n python3-testtools
Summary: Extensions to the Python unit testing framework
Requires: python3-extras python3-mimeparse python3-pbr python3-unittest2 >= 1.0.0 python3-traceback2
%description -n python3-testtools
Testtools is a set of extensions to the Python standard library's unit testing framework. These
extensions have been derived from years of experience with unit testing in Python and come from
many different sources.
%package help
Summary: Documentation for python-testtools
Requires: python3-testtools = %{version}-%{release}
2019-11-30 14:29:26 +08:00
Provides: bundled(jquery) %{name}-doc = %{version}-%{release}
Obsoletes: %{name}-doc < %{version}-%{release}
%description help
This package contains HTML documentation for python-testtools.
%prep
%autosetup -n testtools-%{version} -p1
rm -rf testtools.egg-info
2019-11-30 14:29:26 +08:00
%build
%py3_build
2019-11-30 14:29:26 +08:00
PYTHONPATH=$PWD make -C doc html
%install
%py3_install
2019-11-30 14:29:26 +08:00
%check
2023-06-14 09:55:09 +08:00
export PYTHONPATH=%{buildroot}%{python3_sitelib}
%{__python3} -m testtools.run testtools.tests.test_suite
2019-11-30 14:29:26 +08:00
%files -n python3-testtools
2022-07-07 18:56:21 +08:00
%doc NEWS README.rst
%license LICENSE
2019-11-30 14:29:26 +08:00
%{python3_sitelib}/*
%files help
%doc doc/_build/html/*
%changelog
2023-06-14 09:55:09 +08:00
* Wed Jun 14 2023 yaoxin <yao_xin001@hoperun.com> - 2.6.0-1
- Update to 2.6.0
2022-07-07 18:56:21 +08:00
* Thu Jul 7 2022 yaoxin <yaoxin30@h-partners.com> - 2.5.0-1
- Update to 2.5.0
2022-06-08 06:35:56 +00:00
* Sat Apr 2 2022 caodongxia <caodongxia@huawei.com> - 2.4.0-2
2022-04-02 11:14:55 +08:00
- Fix test_testresult and test_testsuite failed due to python3.10
* Fri Aug 06 2021 liusheng <liusheng2048@gmail.com> - 2.4.0-1
- Upgrade to version 2.4.0
* Tue Aug 11 2020 zhangtao <zhangtao221@huawei.com> - 2.3.0-12
- Del Python2-testtools python2 is EOL and we recommend python3
2020-02-20 21:14:47 +08:00
* Thu Feb 20 2020 lingsheng <lingsheng@huawei.com> - 2.3.0-11
- Modify buildrequires to fix build fail
2019-11-30 14:29:26 +08:00
* Wed Nov 27 2019 lingsheng <lingsheng@huawei.com> - 2.3.0-10
- Package init