python-fixtures/python-fixtures.spec

64 lines
2.0 KiB
RPMSpec
Raw Permalink Normal View History

2019-11-30 10:54:15 +08:00
Name: python-fixtures
2024-01-11 11:43:34 +08:00
Version: 4.1.0
2022-07-08 15:14:38 +08:00
Release: 1
2019-11-30 10:54:15 +08:00
Summary: A python contract for writing reusable state / support logic tests
License: ASL 2.0 or BSD
URL: https://launchpad.net/python-fixtures
2020-09-29 10:22:04 +08:00
Source0: https://pypi.python.org/packages/source/f/fixtures/fixtures-%{version}.tar.gz
2019-11-30 10:54:15 +08:00
BuildArch: noarch
%description
Fixtures is a python contract that provides reusable state / support logic
for unit testing. It includes some helper and adaptation logic to write your
own fixtures using the fixtures contract.
%package -n python3-fixtures
Summary: A python3 contract for reusable state / support logic
BuildArch: noarch
2022-07-08 15:14:38 +08:00
BuildRequires: python3-devel python3-pbr >= 5.7.0 python3-mock python3-testtools >= 2.5.0
Requires: python-extras python-pbr >= 5.7.0 python3-testtools >= 2.5.0
2019-11-30 10:54:15 +08:00
%{?python_provide:%python_provide python3-fixtures}
%description -n python3-fixtures
Fixtures is a python3 contract that provides reusable state / support logic
for unit testing. It includes some helper and adaptation logic to write your
own fixtures using the fixtures contract.
%prep
2022-04-01 18:03:53 +08:00
%autosetup -n fixtures-%{version} -p1
2020-08-10 14:14:12 +08:00
2019-11-30 10:54:15 +08:00
%build
2022-07-08 15:14:38 +08:00
export PBR_VERSION=%{version}
2019-11-30 10:54:15 +08:00
%py3_build
2020-08-10 14:14:12 +08:00
2019-11-30 10:54:15 +08:00
%install
2022-07-08 15:14:38 +08:00
export PBR_VERSION=%{version}
2019-11-30 10:54:15 +08:00
%py3_install
2020-08-10 14:14:12 +08:00
2019-11-30 10:54:15 +08:00
%check
%{__python3} -m testtools.run fixtures.test_suite
%files -n python3-fixtures
2022-07-08 15:14:38 +08:00
%doc README.rst GOALS NEWS Apache-2.0 BSD COPYING
2019-11-30 10:54:15 +08:00
%{python3_sitelib}/fixtures
2022-04-01 18:03:53 +08:00
%{python3_sitelib}/fixtures-%{version}-py%{python3_version}.egg-info
2019-11-30 10:54:15 +08:00
%changelog
2024-01-11 11:43:34 +08:00
* Thu Jan 11 2024 liyanan <liyanan61@h-partners.com> - 4.1.0-1
- Update to 4.1.0
2022-07-08 15:14:38 +08:00
* Thu Jul 7 2022 baizhonggui <baizhonggui@h-partners.com> - 4.0.1-1
- Update to 4.0.1
2022-04-01 18:03:53 +08:00
* Fri Apr 1 2022 caodongxia <caodongxia@huawei.com> - 3.0.0-15
- Fix test_monkeypatch failed due to python3.10
2020-09-29 10:22:04 +08:00
* Tue Sep 29 2020 liuweibo <liuweibo10@huawei.com> - 3.0.0-14
- Fix Source0
2020-08-10 14:14:12 +08:00
* Mon Aug 10 2020 lingsheng <lingsheng@huawei.com> - 3.0.0-13
- Remove python2-fixtures subpackage
2019-11-30 10:54:15 +08:00
* Mon Nov 25 2019 Ling Yang <lingyang2@huawei.com> - 3.0.0-12
- Package init