From f551925e7259d92a10fc5f5ee9f2d2ddfba56727 Mon Sep 17 00:00:00 2001 From: Jvle Date: Wed, 11 Mar 2026 23:19:30 +0800 Subject: [PATCH] SPECS: add python-pytest-datadir Signed-off-by: Jvle --- python-pytest-datadir.spec | 50 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 python-pytest-datadir.spec diff --git a/python-pytest-datadir.spec b/python-pytest-datadir.spec new file mode 100644 index 0000000..2ab950f --- /dev/null +++ b/python-pytest-datadir.spec @@ -0,0 +1,50 @@ +# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors +# SPDX-FileContributor: Jvle +# +# SPDX-License-Identifier: MulanPSL-2.0 + +%global srcname pytest-datadir +%global pypi_name pytest_datadir + +Name: python-%{srcname} +Version: 1.8.0 +Release: %autorelease +Summary: Pytest plugin for test data directories and files +License: MIT +URL: https://pypi.org/project/pytest-datadir/ +#!RemoteAsset: sha256:7a15faed76cebe87cc91941dd1920a9a38eba56a09c11e9ddf1434d28a0f78eb +Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch +BuildSystem: pyproject + +BuildOption(install): -l %{pypi_name} + +BuildRequires: pkgconfig(python3) +BuildRequires: pyproject-rpm-macros +BuildRequires: python3dist(docutils) + +Provides: python3-%{srcname} = %{version}-%{release} +%python_provide python3-%{srcname} + +%description +This package contains a pytest plugin for manipulating test data +directories and files. + +%prep -p +export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}' + +%generate_buildrequires +%pyproject_buildrequires + +%build -p +export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}' + +%build -a +rst2html --no-datestamp CHANGELOG.rst CHANGELOG.html + +%files -f %{pyproject_files} +%doc AUTHORS CHANGELOG.html README.md + +%changelog +%autochangelog