From ae3784a27938b62ea01a574a0cd44dd9bd8c8fd75693804ae0e37728cfb20e6c Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 7 May 2025 07:02:40 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-dotenv?expand=0&rev=10 --- python-pytest-dotenv.changes | 6 ++++++ python-pytest-dotenv.spec | 13 +++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/python-pytest-dotenv.changes b/python-pytest-dotenv.changes index 57e9c44..ead5f40 100644 --- a/python-pytest-dotenv.changes +++ b/python-pytest-dotenv.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 7 06:48:41 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Mon Jun 29 09:48:03 UTC 2020 - Marketa Calabkova diff --git a/python-pytest-dotenv.spec b/python-pytest-dotenv.spec index 3317d2e..c5b3401 100644 --- a/python-pytest-dotenv.spec +++ b/python-pytest-dotenv.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-dotenv # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-pytest-dotenv Version: 0.5.2 Release: 0 @@ -25,9 +23,11 @@ Summary: A pytest plugin that parses environment files License: MIT URL: https://github.com/quiqua/pytest-dotenv Source: https://github.com/quiqua/pytest-dotenv/archive/%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest >= 5.0} BuildRequires: %{python_module python-dotenv >= 0.9.1} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pytest >= 5.0 @@ -42,10 +42,10 @@ A py.test plugin that parses environment files before running tests. %setup -q -n pytest-dotenv-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -54,6 +54,7 @@ A py.test plugin that parses environment files before running tests. %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/pytest_dotenv +%{python_sitelib}/pytest_dotenv-%{version}.dist-info %changelog