diff --git a/pytest-datafiles-2.0.tar.gz b/pytest-datafiles-2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..1b0bca97d2e7df3490ca6f3306743f21fd0a4de6 Binary files /dev/null and b/pytest-datafiles-2.0.tar.gz differ diff --git a/python-pytest-datafiles.spec b/python-pytest-datafiles.spec new file mode 100644 index 0000000000000000000000000000000000000000..529d6a0d3ee0d06de1978bd8dbbf903968761bca --- /dev/null +++ b/python-pytest-datafiles.spec @@ -0,0 +1,60 @@ +%global pypi_name pytest-datafiles + +Name: python-%{pypi_name} +Version: 2.0 +Release: 1 +Summary: py.test plugin to create a 'tmpdir' containing predefined files/directories + +License: MIT +URL: https://github.com/omarkohl/pytest-datafiles +Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(py) +BuildRequires: python3dist(pytest) >= 3.6 +BuildRequires: python3dist(setuptools) + +%description +pytest plugin to create a tmpdir containing a preconfigured set of files and/or directories. +This plugin allows you to specify one or several files/directories that are copied to a +temporary directory (tmpdir) before the execution of the test. This means the original files +are not modified and every test runs on its own version of the same files. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3dist(py) +Requires: python3dist(pytest) >= 3.6 +Requires: python3dist(setuptools) +%description -n python3-%{pypi_name} +pytest plugin to create a tmpdir containing a preconfigured set of files and/or directories. +This plugin allows you to specify one or several files/directories that are copied to a +temporary directory (tmpdir) before the execution of the test. This means the original files +are not modified and every test runs on its own version of the same files. + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +%{__python3} setup.py test + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/__pycache__/* +%{python3_sitelib}/pytest_datafiles.py +%{python3_sitelib}/pytest_datafiles-%{version}-py%{python3_version}.egg-info + +%changelog +* Tue Jun 29 2021 wangqing - 2.0-1 +- Initial package.