17
0

Compare commits

5 Commits

2 changed files with 19 additions and 6 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Jun 5 08:53:51 UTC 2025 - Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
- Enable sle15allpythons to additionally build for modern Python
-------------------------------------------------------------------
Tue May 27 12:22:41 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 21 09:46:04 UTC 2022 - pgajdos@suse.com Mon Mar 21 09:46:04 UTC 2022 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-flatdict # spec file for package python-flatdict
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,8 +16,7 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15allpythons}
%define skip_python2 1
Name: python-flatdict Name: python-flatdict
Version: 4.0.1 Version: 4.0.1
Release: 0 Release: 0
@@ -25,8 +24,10 @@ Summary: Python module for interacting with nested dicts
License: BSD-3-Clause License: BSD-3-Clause
URL: https://github.com/gmr/flatdict URL: https://github.com/gmr/flatdict
Source: https://github.com/gmr/flatdict/archive/%{version}.tar.gz#/flatdict-%{version}.tar.gz Source: https://github.com/gmr/flatdict/archive/%{version}.tar.gz#/flatdict-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
@@ -39,10 +40,10 @@ Python module for interacting with nested dicts as a single level dict with deli
%setup -q -n flatdict-%{version} %setup -q -n flatdict-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -51,6 +52,8 @@ Python module for interacting with nested dicts as a single level dict with deli
%files %{python_files} %files %{python_files}
%doc CHANGELOG.md README.rst %doc CHANGELOG.md README.rst
%license LICENSE %license LICENSE
%{python_sitelib}/* %{python_sitelib}/flatdict.py
%{python_sitelib}/flatdict-%{version}*-info
%pycache_only %{python_sitelib}/__pycache__/flatdict*
%changelog %changelog