Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| bf9d185b4a | |||
| 151c7e0dd6 | |||
| de5c8e05af | |||
| ea6ac7e389 |
@@ -1,3 +0,0 @@
|
|||||||
<multibuild>
|
|
||||||
<package>doc</package>
|
|
||||||
</multibuild>
|
|
||||||
BIN
marshmallow-3.20.2.tar.gz
LFS
Normal file
BIN
marshmallow-3.20.2.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:bbe2adb5a03e6e3571b573f42527c6fe926e17467833660bebd11593ab8dfd57
|
|
||||||
size 222095
|
|
||||||
50
python-marshmallow-no-version-warning.patch
Normal file
50
python-marshmallow-no-version-warning.patch
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
#I can't look into the issue deeply right now, but you can probably just
|
||||||
|
#comment out 'versionwarning.extension' in docs/conf.py temporarily to get
|
||||||
|
#past the error.
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#StevenLoria.com
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#On Wed, Mar 27, 2019 at 4:56 AM pgajdos <pgajdos@suse.cz> wrote:
|
||||||
|
#
|
||||||
|
#> Hello,
|
||||||
|
#>
|
||||||
|
#> I am currently trying to build above, versions:
|
||||||
|
#> marshmallow 2.19.1
|
||||||
|
#> sphinx-version-warning 1.1.2, tried also 1.1.1
|
||||||
|
#>
|
||||||
|
#> I am getting following error:
|
||||||
|
#>
|
||||||
|
#> [ 4s] Exception occurred:
|
||||||
|
#> [ 4s] File
|
||||||
|
#> "/usr/lib/python3.7/site-packages/versionwarning/signals.py", line 66, in
|
||||||
|
#> generate_versionwarning_data_json
|
||||||
|
#> [ 4s] os.mkdir(data_path)
|
||||||
|
#> [ 4s] PermissionError: [Errno 13] Permission denied:
|
||||||
|
#> '/usr/lib/python3.7/site-packages/versionwarning/_static/data'
|
||||||
|
#> [ 4s] The full traceback has been saved in
|
||||||
|
#> /tmp/sphinx-err-ltqp3qvg.log, if you want to report the issue to the
|
||||||
|
#> developers.
|
||||||
|
#> [ 4s] Please also report this if it was a user error, so that a better
|
||||||
|
#> error message can be provided next time.
|
||||||
|
#> [ 4s] A bug report can be filed in the tracker at <
|
||||||
|
#> https://github.com/sphinx-doc/sphinx/issues>. Thanks!
|
||||||
|
#> [ 4s] make: *** [Makefile:53: html] Error 2
|
||||||
|
#> [ 4s] error: Bad exit status from /var/tmp/rpm-tmp.X6uCeq (%build)
|
||||||
|
#>
|
||||||
|
#> I am perhaps hitting
|
||||||
|
#>
|
||||||
|
# https://github.com/humitos/sphinx-version-warning/issues/22
|
||||||
|
Index: marshmallow-3.7.1/docs/conf.py
|
||||||
|
===================================================================
|
||||||
|
--- marshmallow-3.7.1.orig/docs/conf.py
|
||||||
|
+++ marshmallow-3.7.1/docs/conf.py
|
||||||
|
@@ -14,7 +14,6 @@ extensions = [
|
||||||
|
"sphinx.ext.viewcode",
|
||||||
|
"alabaster",
|
||||||
|
"sphinx_issues",
|
||||||
|
- "versionwarning.extension",
|
||||||
|
"autodocsumm",
|
||||||
|
]
|
||||||
|
|
||||||
@@ -1,22 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Mon Dec 29 13:59:28 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
|
||||||
|
|
||||||
- update to 3.26.2 (bsc#1255473)
|
|
||||||
* __version__, __parsed_version__, and __version_info__ attributes
|
|
||||||
are deprecated (:issue:`2227`). Use feature detection or
|
|
||||||
importlib.metadata.version("marshmallow") instead.
|
|
||||||
* Add many Meta option to Schema so it expects a collection by default.
|
|
||||||
* Drop support for Python 3.8.
|
|
||||||
* Improve type hint formatting for Field, Nested, and Function fields
|
|
||||||
to resolve PyCharm warnings.
|
|
||||||
* Custom validators should raise a ValidationError for invalid values.
|
|
||||||
* Deprecate context parameter of Schema.
|
|
||||||
* Field, Mapping, and Number should no longer be used as fields within
|
|
||||||
schemas. Use their subclasses instead.
|
|
||||||
* Typing: Improve type annotations
|
|
||||||
* CVE-2025-68480: Merge error store messages without rebuilding collections.
|
|
||||||
- Drop python-marshmallow-no-version-warning.patch, fixed upstream
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Oct 27 22:54:09 UTC 2024 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
Sun Oct 27 22:54:09 UTC 2024 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-marshmallow
|
# spec file for package python-marshmallow
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC and contributors
|
# 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,27 +16,21 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
|
||||||
%if "%{flavor}" == "doc"
|
|
||||||
%define psuffix -doc
|
|
||||||
%bcond_without doc
|
|
||||||
%else
|
|
||||||
%define psuffix %{nil}
|
|
||||||
%bcond_with doc
|
|
||||||
%endif
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-marshmallow
|
Name: python-marshmallow
|
||||||
Version: 3.26.2
|
Version: 3.20.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: ORM/ODM/framework-agnostic library to convert datatypes from/to Python types
|
Summary: ORM/ODM/framework-agnostic library to convert datatypes from/to Python types
|
||||||
License: BSD-3-Clause AND MIT
|
License: BSD-3-Clause AND MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://marshmallow.readthedocs.io/
|
URL: https://marshmallow.readthedocs.io/
|
||||||
Source: https://files.pythonhosted.org/packages/source/m/marshmallow/marshmallow-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/m/marshmallow/marshmallow-%{version}.tar.gz
|
||||||
|
# https://github.com/humitos/sphinx-version-warning/issues/22
|
||||||
|
Patch0: python-marshmallow-no-version-warning.patch
|
||||||
BuildRequires: %{python_module autodocsumm}
|
BuildRequires: %{python_module autodocsumm}
|
||||||
BuildRequires: %{python_module base >= 3.8}
|
BuildRequires: %{python_module base >= 3.8}
|
||||||
BuildRequires: %{python_module flit-core}
|
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@@ -45,29 +39,22 @@ Suggests: %{name}-doc
|
|||||||
Suggests: python-python-dateutil
|
Suggests: python-python-dateutil
|
||||||
Suggests: python-simplejson
|
Suggests: python-simplejson
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with doc}
|
|
||||||
# SECTION doc build requirements
|
# SECTION doc build requirements
|
||||||
%if 0%{?suse_version} == 1500 && 0%{?sle_version} >= 150400
|
%if 0%{?suse_version} == 1500 && 0%{?sle_version} >= 150400
|
||||||
BuildRequires: %{python_module Sphinx}
|
BuildRequires: %{python_module Sphinx}
|
||||||
BuildRequires: %{python_module furo}
|
BuildRequires: %{python_module alabaster}
|
||||||
BuildRequires: %{python_module marshmallow = %{version}}
|
|
||||||
BuildRequires: %{python_module sphinx-autodoc-typehints}
|
|
||||||
BuildRequires: %{python_module sphinx-copybutton}
|
|
||||||
BuildRequires: %{python_module sphinx-issues}
|
BuildRequires: %{python_module sphinx-issues}
|
||||||
BuildRequires: %{python_module sphinxext-opengraph}
|
BuildRequires: %{python_module sphinx-version-warning}
|
||||||
%else
|
%else
|
||||||
BuildRequires: python3-Sphinx
|
BuildRequires: python3-Sphinx
|
||||||
BuildRequires: python3-furo
|
BuildRequires: python3-alabaster
|
||||||
BuildRequires: python3-marshmallow = %{version}
|
|
||||||
BuildRequires: python3-sphinx-autodoc-typehints
|
|
||||||
BuildRequires: python3-sphinx-issues
|
BuildRequires: python3-sphinx-issues
|
||||||
BuildRequires: python3-sphinxcontrib-copybutton
|
BuildRequires: python3-sphinx-version-warning
|
||||||
BuildRequires: python3-sphinxext-opengraph
|
|
||||||
%endif
|
%endif
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%endif
|
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module pytz}
|
||||||
BuildRequires: %{python_module simplejson}
|
BuildRequires: %{python_module simplejson}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@@ -76,7 +63,7 @@ BuildRequires: %{python_module simplejson}
|
|||||||
marshmallow is an ORM/ODM/framework-agnostic library for converting complex
|
marshmallow is an ORM/ODM/framework-agnostic library for converting complex
|
||||||
datatypes, such as objects, to and from native Python datatypes.
|
datatypes, such as objects, to and from native Python datatypes.
|
||||||
|
|
||||||
%if %{with doc}
|
%if 0%{?suse_version} > 1500
|
||||||
%package -n %{name}-doc
|
%package -n %{name}-doc
|
||||||
Summary: Documentation files for %{name}
|
Summary: Documentation files for %{name}
|
||||||
Group: Documentation/Other
|
Group: Documentation/Other
|
||||||
@@ -92,31 +79,26 @@ HTML Documentation and examples for %{name}.
|
|||||||
%autopatch -p1
|
%autopatch -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if !%{with doc}
|
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
%else
|
|
||||||
sphinx-build docs/ docs/_build/html
|
sphinx-build docs/ docs/_build/html
|
||||||
rm -r docs/_build/html/.buildinfo docs/_build/html/.doctrees
|
rm -r docs/_build/html/.buildinfo docs/_build/html/.doctrees
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if !%{with doc}
|
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# test_from_timestamp_with_overflow_value fails on 32bit with different error (the value gets caught earlier)
|
%pytest
|
||||||
%pytest -k "not test_from_timestamp_with_overflow_value"
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CHANGELOG.rst README.rst
|
%doc AUTHORS.rst CHANGELOG.rst README.rst
|
||||||
%license LICENSE NOTICE
|
%license LICENSE NOTICE
|
||||||
%{python_sitelib}/marshmallow
|
%{python_sitelib}/marshmallow
|
||||||
%{python_sitelib}/marshmallow-*.dist-info
|
%{python_sitelib}/marshmallow-*.dist-info
|
||||||
%else
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
%files -n %{name}-doc
|
%files -n %{name}-doc
|
||||||
%doc docs/examples docs/_build/html/
|
|
||||||
%endif
|
%endif
|
||||||
|
%doc examples docs/_build/html/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user