python-pytest-enabler/python-pytest-enabler.spec

64 lines
1.7 KiB
RPMSpec
Raw Permalink Normal View History

2023-07-06 06:55:19 +08:00
%global _empty_manifest_terminate_build 0
%global pypi_name pytest-enabler
Name: python-%{pypi_name}
2024-03-04 14:57:18 +08:00
Version: 3.0.0
2023-07-06 06:55:19 +08:00
Release: 1
Summary: Enable installed pytest plugins.
License: MIT
URL: https://github.com/jaraco/pytest-enabler
2024-03-04 14:57:18 +08:00
Source0: https://github.com/jaraco/pytest-enabler/archive/refs/tags/%{pypi_name}-%{version}.tar.gz
2023-07-06 06:55:19 +08:00
BuildArch: noarch
%description
The enabler plugin allows configuration of plugins if present,
but omits the settings if the plugin is not present.
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
BuildRequires: python3-toml
BuildRequires: python3-jaraco-functools
BuildRequires: python3-jaraco-context
BuildRequires: python3-importlib-resources
%description -n python3-%{pypi_name}
The enabler plugin allows configuration of plugins if present,
but omits the settings if the plugin is not present.
%prep
%autosetup -p1 -n %{pypi_name}-%{version}
# Remove upstreams egg info
rm -rf *.egg*
%build
%pyproject_build
%install
%pyproject_install
%files -n python3-%{pypi_name}
%doc README.rst NEWS.rst
%license LICENSE
%{python3_sitelib}/pytest_enabler
%{python3_sitelib}/pytest_enabler-*.dist-info/
%changelog
2024-03-04 14:57:18 +08:00
* Mon Mar 04 2024 yueyuankun<yueyuankun@kylinos.cn> - 3.0.0-1
- Type:update
- ID:NA
- SUG:NA
- DESC:Update to version 3.0.0
2023-07-06 06:55:19 +08:00
* Thu Jul 6 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.2.0-1
- Initial packaging