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

View File

@@ -1,7 +1,7 @@
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,8 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%{?sle15allpythons}
Name: python-flatdict
Version: 4.0.1
Release: 0
@@ -25,8 +24,10 @@ Summary: Python module for interacting with nested dicts
License: BSD-3-Clause
URL: https://github.com/gmr/flatdict
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 setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
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}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -51,6 +52,8 @@ Python module for interacting with nested dicts as a single level dict with deli
%files %{python_files}
%doc CHANGELOG.md README.rst
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/flatdict.py
%{python_sitelib}/flatdict-%{version}*-info
%pycache_only %{python_sitelib}/__pycache__/flatdict*
%changelog