Blame SPECS/python-pytest-env.spec

102943
# We must use a GitHub snapshot because the PyPI sdist lacks the LICENSE file
102943
# (https://github.com/MobileDynasty/pytest-env/issues/6) and releases are not
102943
# tagged on GitHub.
102943
%global commit afb13a0e908f649b69273f299262ac12f1b71113
102943
%global snapdate 20170617
102943
%global shortcommit %(c=%{commit}; echo ${c:0:7})
102943
102943
Name:           python-pytest-env
102943
Version:        0.6.2^%{snapdate}git%{?shortcommit}
102943
Release:        %autorelease
102943
Summary:        Plugin for pytest that allows you to add environment variables
102943
102943
# SPDX
102943
License:        MIT
102943
URL:            https://github.com/MobileDynasty/pytest-env
102943
Source:         %{url}/archive/%{commit}/pytest-env-%{commit}.tar.gz
102943
102943
BuildArch:      noarch
102943
102943
BuildRequires:  python3-devel
102943
102943
%global common_description %{expand:
102943
This is a py.test plugin that enables you to set environment variables in the
102943
pytest.ini file.}
102943
102943
%description %{common_description}
102943
102943
102943
%package -n     python3-pytest-env
102943
Summary:        %{summary}
102943
102943
%description -n python3-pytest-env %{common_description}
102943
102943
102943
%prep
102943
%autosetup -n pytest-env-%{commit}
102943
102943
102943
%generate_buildrequires
102943
%pyproject_buildrequires
102943
102943
102943
%build
102943
%pyproject_wheel
102943
102943
102943
%install
102943
%pyproject_install
102943
%pyproject_save_files -l pytest_env
102943
102943
102943
%check
102943
# Upstream has no tests.
102943
%pyproject_check_import
102943
102943
102943
%files -n python3-pytest-env -f %{pyproject_files}
102943
%doc README.md
102943
102943
102943
%changelog
102943
%autochangelog