From 1029436a6a83cba7d7d75f912ad4214786dd861f Mon Sep 17 00:00:00 2001 From: Joel Capitao Date: Nov 06 2024 16:06:49 +0000 Subject: Import python-pytest-env-0.6.2^20170617gitafb13a0-1.el10s in CloudSIG Epoxy --- diff --git a/.python-pytest-env.metadata b/.python-pytest-env.metadata new file mode 100644 index 0000000..c46a4c7 --- /dev/null +++ b/.python-pytest-env.metadata @@ -0,0 +1 @@ +003cbbb4d4dd3dd695525d9bbbed3456d5c13c06 SOURCES/pytest-env-afb13a0e908f649b69273f299262ac12f1b71113.tar.gz diff --git a/SOURCES/.gitkeep b/SOURCES/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/SOURCES/.gitkeep diff --git a/SPECS/python-pytest-env.spec b/SPECS/python-pytest-env.spec new file mode 100644 index 0000000..5540ede --- /dev/null +++ b/SPECS/python-pytest-env.spec @@ -0,0 +1,62 @@ +# We must use a GitHub snapshot because the PyPI sdist lacks the LICENSE file +# (https://github.com/MobileDynasty/pytest-env/issues/6) and releases are not +# tagged on GitHub. +%global commit afb13a0e908f649b69273f299262ac12f1b71113 +%global snapdate 20170617 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: python-pytest-env +Version: 0.6.2^%{snapdate}git%{?shortcommit} +Release: %autorelease +Summary: Plugin for pytest that allows you to add environment variables + +# SPDX +License: MIT +URL: https://github.com/MobileDynasty/pytest-env +Source: %{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} + + +%prep +%autosetup -n pytest-env-%{commit} + + +%generate_buildrequires +%pyproject_buildrequires + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files -l pytest_env + + +%check +# Upstream has no tests. +%pyproject_check_import + + +%files -n python3-pytest-env -f %{pyproject_files} +%doc README.md + + +%changelog +%autochangelog