Blob Blame History Raw
# We must use a GitHub snapshot because the PyPI sdist lacks the LICENSE file
# ( and releases are not
# tagged on GitHub.
%global commit afb13a0e908f649b69273f299262ac12f1b71113
%global snapdate 20170617

Name:           python-pytest-env
Version:        0.6.2^%{snapdate}git%(echo '%{commit}' | cut -b -7)
Release:        %autorelease
Summary:        Plugin for pytest that allows you to add environment variables

License:        MIT
Source0:        %{url}/archive/%{commit}/pytest-env-%{commit}.tar.gz

BuildArch:      noarch

BuildRequires:  python3-devel

%global common_description %{expand:
This is a py.test plugin that enables you to set environment variables in the
pytest.ini file.}

%description %{common_description}

%package -n     python3-pytest-env
Summary:        %{summary}

%description -n python3-pytest-env %{common_description}

%autosetup -n pytest-env-%{commit}



%pyproject_save_files pytest_env

# Upstream has no tests.

%files -n python3-pytest-env -f %{pyproject_files}
# pyproject_files handles LICENSE; verify with “rpm -qL -p …”