Compare commits
No commits in common. "fbf9fb436848fffcdb25a387524c945e9295e562" and "df122150352ea210766c9e3ac8ee7f1e7f93de19" have entirely different histories.
fbf9fb4368
...
df12215035
Binary file not shown.
BIN
marshmallow-3.5.1.tar.gz
Normal file
BIN
marshmallow-3.5.1.tar.gz
Normal file
Binary file not shown.
12
ordered_set.patch
Normal file
12
ordered_set.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -Naur marshmallow-3.5.1.orig/src/marshmallow/schema.py marshmallow-3.5.1/src/marshmallow/schema.py
|
||||||
|
--- marshmallow-3.5.1.orig/src/marshmallow/schema.py 2020-03-05 14:01:01.000000000 +0100
|
||||||
|
+++ marshmallow-3.5.1/src/marshmallow/schema.py 2020-03-24 12:40:24.617005030 +0100
|
||||||
|
@@ -14,7 +14,7 @@
|
||||||
|
from marshmallow import base, fields as ma_fields, class_registry, types
|
||||||
|
from marshmallow.error_store import ErrorStore
|
||||||
|
from marshmallow.exceptions import ValidationError, StringNotCollectionError
|
||||||
|
-from marshmallow.orderedset import OrderedSet
|
||||||
|
+from ordered_set import OrderedSet
|
||||||
|
from marshmallow.decorators import (
|
||||||
|
POST_DUMP,
|
||||||
|
POST_LOAD,
|
||||||
@ -1,92 +1,64 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _docdir_fmt python-marshmallow
|
||||||
Name: python-marshmallow
|
Name: python-marshmallow
|
||||||
Version: 3.17.0
|
Version: 3.5.1
|
||||||
Release: 1
|
Release: 4
|
||||||
Summary: A lightweight library for converting complex datatypes to and from native Python datatypes.
|
Summary: Python library for converting complex datatypes to and from primitive types
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/marshmallow-code/marshmallow
|
URL: http://marshmallow.readthedocs.org/
|
||||||
Source0: https://files.pythonhosted.org/packages/50/23/cd717da7c1a78845b3127ba053c2a561d1193b8a0392ca1b4a4e61a5d7d4/marshmallow-%{version}.tar.gz
|
Source0: https://github.com/marshmallow-code/marshmallow/archive/%{version}/marshmallow-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
Patch0000: ordered_set.patch
|
||||||
|
Patch0001: versionwarning-disable.patch
|
||||||
Requires: python3-pytest
|
BuildArch: noarch
|
||||||
Requires: python3-pytz
|
|
||||||
Requires: python3-simplejson
|
|
||||||
Requires: python3-tox
|
|
||||||
Requires: python3-sphinx
|
|
||||||
Requires: python3-sphinx-issues
|
|
||||||
Requires: python3-alabaster
|
|
||||||
Requires: python3-sphinx-version-warning
|
|
||||||
Requires: python3-autodocsumm
|
|
||||||
Requires: python3-mypy
|
|
||||||
Requires: python3-flake8
|
|
||||||
Requires: python3-flake8-bugbear
|
|
||||||
Requires: python3-pre-commit
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
marshmallow is an ORM/ ODM/ framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.
|
arshmallow is a framework-agnostic library for converting complex datatypes,
|
||||||
|
such as objects, to and from primitive Python datatypes.
|
||||||
%package -n python3-marshmallow
|
|
||||||
Summary: A lightweight library for converting complex datatypes to and from native Python datatypes.
|
|
||||||
Provides: python-marshmallow
|
|
||||||
BuildRequires: python3-devel
|
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
|
|
||||||
%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
|
%package help
|
||||||
Summary: Development documents and examples for marshmallow
|
Summary: Documentation for python-marshmallow
|
||||||
Provides: python3-marshmallow-doc
|
Provides: python3-marshmallow-doc = %{version}
|
||||||
|
Obsoletes: python3-marshmallow-doc < 2.8.0-1
|
||||||
|
BuildRequires: python3-sphinx
|
||||||
%description help
|
%description help
|
||||||
marshmallow is an ORM/ ODM/ framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.
|
Documentation for python-marshmallow.
|
||||||
|
|
||||||
|
%package -n python3-marshmallow
|
||||||
|
Summary: %{summary}
|
||||||
|
%{?python_provide:%python_provide python3-marshmallow}
|
||||||
|
BuildRequires: python3-devel python3-setuptools python3-pytest python3-pytz
|
||||||
|
BuildRequires: python3-ordered-set python3-dateutil python3-simplejson
|
||||||
|
Requires: python3-ordered-set
|
||||||
|
Recommends: python3-dateutil python3-simplejson
|
||||||
|
%description -n python3-marshmallow %{_description}
|
||||||
|
Python 3 version.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n marshmallow-%{version} -p1
|
%autosetup -n marshmallow-%{version} -p1
|
||||||
|
rm -f ./marshmallow/orderedset.py
|
||||||
|
sed -i -e "/sphinx_issues/d" docs/conf.py
|
||||||
|
sed -i -e "/donate_url/d" docs/conf.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%{?with_python3:%py3_build}
|
||||||
|
sphinx-build -b html docs html
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%{?with_python3:%py3_install}
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
rm -rf html/{.buildinfo,.doctrees}
|
||||||
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
|
%check
|
||||||
%dir %{python3_sitelib}/*
|
%{?with_pythoN3:py.test-%{python3_version} -v}
|
||||||
|
|
||||||
%files help -f doclist.lst
|
%files help
|
||||||
%{_docdir}/*
|
%license LICENSE
|
||||||
|
%doc html examples
|
||||||
|
|
||||||
|
%files -n python3-marshmallow
|
||||||
|
%license LICENSE
|
||||||
|
%doc CHANGELOG.rst README.rst
|
||||||
|
%{python3_sitelib}/marshmallow/
|
||||||
|
%{python3_sitelib}/marshmallow-*.egg-info/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Jun 29 2022 yaoxin <yaoxin30@h-partners.com> - 3.17.0-1
|
* Mon Jun 22 2020 huanghaitao <huanghaitao8@huawei.com> - 3.5.1-4
|
||||||
- Update to 3.17.0
|
- package init
|
||||||
|
|
||||||
* Wed Aug 11 2021 Python_Bot <Python_Bot@openeuler.org> - 3.13.0-1
|
|
||||||
- Upgrade marshmallow to 3.13.0-1
|
|
||||||
|
|
||||||
* Thu Aug 13 2020 Python_Bot <Python_Bot@openeuler.org>
|
|
||||||
- Package Spec generated
|
|
||||||
|
|||||||
40
versionwarning-disable.patch
Normal file
40
versionwarning-disable.patch
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
diff -Naur marshmallow-3.5.1.orig/docs/conf.py marshmallow-3.5.1/docs/conf.py
|
||||||
|
--- marshmallow-3.5.1.orig/docs/conf.py 2020-03-05 14:01:01.000000000 +0100
|
||||||
|
+++ marshmallow-3.5.1/docs/conf.py 2020-03-24 12:42:34.539237871 +0100
|
||||||
|
@@ -14,7 +14,6 @@
|
||||||
|
"sphinx.ext.viewcode",
|
||||||
|
"alabaster",
|
||||||
|
"sphinx_issues",
|
||||||
|
- "versionwarning.extension",
|
||||||
|
]
|
||||||
|
|
||||||
|
primary_domain = "py"
|
||||||
|
@@ -87,28 +86,3 @@
|
||||||
|
"searchbox.html",
|
||||||
|
],
|
||||||
|
}
|
||||||
|
-
|
||||||
|
-# sphinx-version-warning config
|
||||||
|
-versionwarning_messages = {
|
||||||
|
- "latest": (
|
||||||
|
- "This document is for the development version. "
|
||||||
|
- 'For the stable version documentation, see <a href="/en/stable/">here</a>.'
|
||||||
|
- ),
|
||||||
|
- "stable": (
|
||||||
|
- "This document is for the latest 3.x stable release. "
|
||||||
|
- 'For the 2.x documentation, see <a href="/en/2.x-line/">here</a>.'
|
||||||
|
- ),
|
||||||
|
- "2.x-line": (
|
||||||
|
- "This document is for the 2.x release branch. "
|
||||||
|
- 'For the 3.x documentation, see <a href="/en/stable/">here</a>.'
|
||||||
|
- ),
|
||||||
|
-}
|
||||||
|
-# Show warning at top of page
|
||||||
|
-versionwarning_body_selector = "div.document"
|
||||||
|
-# For debugging locally
|
||||||
|
-# versionwarning_project_version = 'latest'
|
||||||
|
-
|
||||||
|
-
|
||||||
|
-def setup(app):
|
||||||
|
- # https://docs.readthedocs.io/en/latest/guides/adding-custom-css.html
|
||||||
|
- app.add_stylesheet("css/versionwarning.css")
|
||||||
Loading…
x
Reference in New Issue
Block a user