diff --git a/marshmallow-3.23.0.tar.gz b/marshmallow-3.23.0.tar.gz deleted file mode 100644 index 981ce90ce4253721832db4dd18949a84d5e6937d..0000000000000000000000000000000000000000 Binary files a/marshmallow-3.23.0.tar.gz and /dev/null differ diff --git a/marshmallow-4.0.0.tar.gz b/marshmallow-4.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e2aa27d4c17cefd55c2794cf8a340232f96442d9 Binary files /dev/null and b/marshmallow-4.0.0.tar.gz differ diff --git a/python-marshmallow.spec b/python-marshmallow.spec index 6617f19b5e2487d6297a47cc45a053874c25a2c4..0cca62f52cc29972a3334bf002aff9dd5b598b94 100644 --- a/python-marshmallow.spec +++ b/python-marshmallow.spec @@ -1,6 +1,6 @@ %global _empty_manifest_terminate_build 0 Name: python-marshmallow -Version: 3.23.0 +Version: 4.0.0 Release: 1 Summary: A lightweight library for converting complex datatypes to and from native Python datatypes. License: MIT @@ -33,17 +33,11 @@ Summary: A lightweight library for converting complex datatypes to and from nati Provides: python-marshmallow = %{version}-%{release} BuildRequires: python3-devel BuildRequires: python3-setuptools +Obsoletes: %{name}-help < %{version}-%{release} %description -n python3-marshmallow marshmallow is an ORM/ ODM/ framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes. -%package help -Summary: Development documents and examples for marshmallow -Provides: python3-marshmallow-doc - -%description help -marshmallow is an ORM/ ODM/ framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes. - %prep %autosetup -n marshmallow-%{version} @@ -52,40 +46,25 @@ marshmallow is an ORM/ ODM/ framework-agnostic library for converting complex da %install %pyproject_install -install -d -m755 %{buildroot}/%{_pkgdocdir} -if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi -if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi -if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi -if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi -pushd %{buildroot} -if [ -d usr/lib ]; then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/lib64 ]; then - find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/bin ]; then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/sbin ]; then - find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst -fi -touch doclist.lst -if [ -d usr/share/man ]; then - find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst -fi -popd -mv %{buildroot}/filelist.lst . -mv %{buildroot}/doclist.lst . - -%files -n python3-marshmallow -f filelist.lst -%dir %{python3_sitelib}/* -%{python3_sitelib}/marshmallow/__pycache__/* - -%files help -f doclist.lst -%{_docdir}/* + +%files -n python3-marshmallow +%doc README.rst CHANGELOG.rst +%license LICENSE +%{python3_sitelib}/* %changelog +* Mon Aug 18 2025 yaoxin <1024769339@qq.com> - 4.0.0-1 +- Update to 4.0.0: + * Typing: Add types to all `Field ` constructor kwargs + * Typing: `Field ` is now a generic type with a type + argument for the internal value type. + * `marshmallow.fields.UUID` no longer subclasses `marshmallow.fields.String`. + * *Backwards-incompatible*: Use `datetime.date.fromisoformat`, `datetime.time.fromisoformat`, + and `datetime.datetime.fromisoformat` from the standard library to deserialize dates, times + and datetimes + * `marshmallow.Schema.load` no longer silently fails to call schema validators when a generator + is passed + * Fri Nov 01 2024 zhangyulong - 3.23.0-1 - Update package to version 3.23.0 -schema Nesting:load everything but avoid dumping everythong