diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..481e978 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pytest-lazy-fixture-0.5.2.tar.gz diff --git a/python-pytest-lazy-fixture.spec b/python-pytest-lazy-fixture.spec new file mode 100644 index 0000000..325f8b6 --- /dev/null +++ b/python-pytest-lazy-fixture.spec @@ -0,0 +1,65 @@ +# Enabled by default +%bcond_with tests + +%global pypi_name pytest-lazy-fixture + +%global _description %{expand: +Use fixtures in pytest.mark.parametrize.} + +Name: python-%{pypi_name} +Version: 0.5.2 +Release: 1%{?dist} +Summary: Use fixtures in pytest.mark.parametrize + +# https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Good_Licenses +License: MIT +URL: https://pypi.python.org/pypi/%{pypi_name} +Source0: %pypi_source %{pypi_name} + +BuildArch: noarch + +%{?python_enable_dependency_generator} + +%description %_description + +%package -n python3-%{pypi_name} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: %{py3_dist pytest} + +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} %_description + +%prep +%autosetup -n %{pypi_name}-%{version} +rm -rf %{pypi_name}.egg-info + +# Comment out to remove /usr/bin/env shebangs +# Can use something similar to correct/remove /usr/bin/python shebangs also +# find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';' + +%build +%py3_build + +%install +%py3_install + +%check +%if %{with tests} +PYTHONPATH="%{buildroot}/%{python3_sitelib}/" pytest-3 +%endif + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/pytest_lazy_fixture-%{version}-py%{python3_version}.egg-info +%{python3_sitelib}/pytest_lazyfixture.py +%{python3_sitelib}/__pycache__ + +%changelog +* Fri Jul 12 2019 Ankur Sinha - 0.5.2-1 +- Own pycache directory to fix permission issues #1723047 + +* Sat Jun 22 2019 Ankur Sinha - 0.5.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..1d44c8a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pytest-lazy-fixture-0.5.2.tar.gz) = 57a79ce84a784b9145afeb185c051af75b484c10e6a899e24f4e22a553c574924113ce51ef0a546494ff97bcdaa39d83d95a3ae241719450b370f6be2bc759cd