14
0
forked from pool/python-munch

Accepting request 1091713 from home:pgajdos:python

- version update to 3.0.0
  * Fix munchify for tuples of lists
  * Require Python >=3.6 and upgrade syntax - thanks @EwoutH
  * Update __init__.py  to work with non standard version - thanks @mboisson
  * Allow importing even when VERSION read fails - thanks @mdornseif and @dangillet
  * Add imports to README
  * replace pkg_resources with importlib.metadata - thanks @dhellmann
  * Added RecursiveMunch object - thanks @GuillaumeRochette
- added patches
  fix https://github.com/Infinidat/munch/issues/96
  + python-munch-no-six.patch
- test package

OBS-URL: https://build.opensuse.org/request/show/1091713
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-munch?expand=0&rev=11
This commit is contained in:
2023-06-09 05:13:47 +00:00
committed by Git OBS Bridge
parent 564919b4f6
commit bcc1583cd9
5 changed files with 134 additions and 10 deletions

View File

@@ -16,24 +16,24 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-munch
Version: 2.5.0
Version: 3.0.0
Release: 0
Summary: A dot-accessible dictionary
License: MIT
Group: Development/Languages/Python
URL: http://github.com/Infinidat/munch
URL: https://github.com/Infinidat/munch
Source: https://files.pythonhosted.org/packages/source/m/munch/munch-%{version}.tar.gz
# https://github.com/Infinidat/munch/issues/96
Patch0: python-munch-no-six.patch
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-six
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module six}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
@@ -41,7 +41,7 @@ BuildRequires: %{python_module six}
A dot-accessible dictionary (a la JavaScript objects).
%prep
%setup -q -n munch-%{version}
%autosetup -p1 -n munch-%{version}
%build
%python_build
@@ -50,9 +50,13 @@ A dot-accessible dictionary (a la JavaScript objects).
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE.txt
%doc README.md
%{python_sitelib}/*
%{python_sitelib}/munch
%{python_sitelib}/munch-*.egg-info
%changelog