diff --git a/marshmallow-2.13.6.tar.gz b/marshmallow-2.13.6.tar.gz deleted file mode 100644 index f20510d..0000000 --- a/marshmallow-2.13.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e3e83f11cade65fc78482a7620f01f82080f032b5fb51756e396635ebc711c75 -size 138739 diff --git a/marshmallow-2.19.1.tar.gz b/marshmallow-2.19.1.tar.gz new file mode 100644 index 0000000..295066a --- /dev/null +++ b/marshmallow-2.19.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a1a2e13c6a621f4970faf21e5d9b146e451e779d0f334a96eae4fcdef53455f +size 155449 diff --git a/patch-remove-unsupported-theme-option.patch b/patch-remove-unsupported-theme-option.patch deleted file mode 100644 index 0bfd581..0000000 --- a/patch-remove-unsupported-theme-option.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- marshmallow-2.13.6/docs/conf.py 2017-08-16 14:35:37.000000000 +0200 -+++ marshmallow-2.13.6/docs/conf.py 2017-08-19 11:44:53.648747309 +0200 -@@ -80,7 +80,6 @@ - 'github_repo': 'marshmallow', - 'github_banner': True, - 'github_type': 'star', -- 'donate_url': 'https://www.paypal.me/StevenLoria', - 'code_font_size': '0.8em', - 'warn_bg': '#FFC', - 'warn_border': '#EEE', diff --git a/python-marshmallow-no-version-warning.patch b/python-marshmallow-no-version-warning.patch new file mode 100644 index 0000000..65dda83 --- /dev/null +++ b/python-marshmallow-no-version-warning.patch @@ -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 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-2.19.1/docs/conf.py +=================================================================== +--- marshmallow-2.19.1.orig/docs/conf.py 2019-03-16 21:09:37.000000000 +0100 ++++ marshmallow-2.19.1/docs/conf.py 2019-04-01 10:00:19.833567622 +0200 +@@ -35,7 +35,6 @@ extensions = [ + 'sphinx.ext.viewcode', + 'alabaster', + 'sphinx_issues', +- 'versionwarning.extension', + ] + + primary_domain = 'py' diff --git a/python-marshmallow.changes b/python-marshmallow.changes index eb9516c..bd8cb59 100644 --- a/python-marshmallow.changes +++ b/python-marshmallow.changes @@ -1,3 +1,67 @@ +------------------------------------------------------------------- +Fri Apr 5 09:07:04 UTC 2019 - Petr Gajdos + +- version update to 2.19.1 + - Fix bug where ``Nested(many=True)`` would skip first element when + serializing a generator (:issue:`1163`). Thanks :user:`khvn26` for the + catch and patch. + - A `RemovedInMarshmallow3` warning is raised when using + `fields.FormattedString`. Use `fields.Method` or `fields.Function` + instead (:issue:`1141`). + - A ``ChangedInMarshmallow3Warning`` is no longer raised when + ``strict=False`` (:issue:`1108`). Thanks :user:`Aegdesil` for + reporting. + - Add warnings for functions in ``marshmallow.utils`` that are removed in + marshmallow 3. + - Copying ``missing`` with ``copy.copy`` or ``copy.deepcopy`` will not + duplicate it (:pr:`1099`). + - Add ``marshmallow.__version_info__`` (:pr:`1074`). + - Add warnings for API that is deprecated or changed to help users + prepare for marshmallow 3 (:pr:`1075`). + - Prevent memory leak when dynamically creating classes with ``type()`` + (:issue:`732`). Thanks :user:`asmodehn` for writing the tests to + reproduce this issue. + - Prevent warning about importing from ``collections`` on Python 3.7 + (:issue:`1027`). Thanks :user:`nkonin` for reporting and + :user:`jmargeta` for the PR. + - Remove spurious warning about implicit collection handling + (:issue:`998`). Thanks :user:`lalvarezguillen` for reporting. + - Allow username without password in basic auth part of the url in + ``fields.Url`` (:pr:`982`). Thanks user:`alefnula` for the PR. + - Prevent ``TypeError`` when a non-collection is passed to a ``Schema`` with ``many=True``. + Instead, raise ``ValidationError`` with ``{'_schema': ['Invalid input type.']}`` (:issue:`906`). + - Fix ``root`` attribute for nested container fields on list + on inheriting schemas (:issue:`956`). Thanks :user:`bmcbu` + for reporting. + - Handle empty SQLAlchemy lazy lists gracefully when dumping (:issue:`948`). + Thanks :user:`vke-code` for the catch and :user:`YuriHeupa` for the patch. + - Respect ``load_from`` when reporting errors for ``@validates('field_name')`` + (:issue:`748`). Thanks :user:`m-novikov` for the catch and patch. + - Fix passing ``only`` as a string to ``nested`` when the passed field + defines ``dump_to`` (:issue:`800`, :issue:`822`). Thanks + :user:`deckar01` for the catch and patch. + - Fix a race condition in validation when concurrent threads use the + same ``Schema`` instance (:issue:`783`). Thanks :user:`yupeng0921` and + :user:`lafrech` for the fix. + - Fix serialization behavior of + ``fields.List(fields.Integer(as_string=True))`` (:issue:`788`). Thanks + :user:`cactus` for reporting and :user:`lafrech` for the fix. + - Fix behavior of ``exclude`` parameter when passed from parent to + nested schemas (:issue:`728`). Thanks :user:`timc13` for reporting and + :user:`deckar01` for the fix. + - :cve:`CVE-2018-17175`: Fix behavior when an empty list is passed as the ``only`` argument + (:issue:`772`). Thanks :user:`deckar01` for reporting and thanks + :user:`lafrech` for the fix. + - Handle ``UnicodeDecodeError`` when deserializing ``bytes`` with a + ``String`` field (:issue:`650`). Thanks :user:`dan-blanchard` for the + suggestion and thanks :user:`4lissonsilveira` for the PR. + - Add ``require_tld`` parameter to ``validate.URL`` (:issue:`664`). + Thanks :user:`sduthil` for the suggestion and the PR. +- added patches + + python-marshmallow-no-version-warning.patch +- deleted patches + + patch-remove-unsupported-theme-option.patch (upstreamed) + ------------------------------------------------------------------- Wed Dec 19 00:15:31 UTC 2018 - Jan Engelhardt diff --git a/python-marshmallow.spec b/python-marshmallow.spec index 48cfbd9..993dea3 100644 --- a/python-marshmallow.spec +++ b/python-marshmallow.spec @@ -18,28 +18,28 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %{!?license: %global license %doc} -%bcond_without test Name: python-marshmallow -Version: 2.13.6 +Version: 2.19.1 Release: 0 Summary: ORM/ODM/framework-agnostic library to convert datatypes from/to Python types License: MIT AND BSD-3-Clause Group: Development/Languages/Python Url: http://marshmallow.readthedocs.io/ Source: https://files.pythonhosted.org/packages/source/m/marshmallow/marshmallow-%{version}.tar.gz -# PATCH-FIX-OPENSUSE patch-remove-unsupported-theme-option.patch sebix+novell.com@sebix.at -Patch0: patch-remove-unsupported-theme-option.patch +# https://github.com/humitos/sphinx-version-warning/issues/22 +Patch0: python-marshmallow-no-version-warning.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +# SECTION doc build requirements BuildRequires: python3-Sphinx BuildRequires: python3-sphinx-issues +BuildRequires: python3-sphinx-version-warning +# /SECTION # SECTION test requirements -%if %{with test} BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytz} BuildRequires: %{python_module simplejson} -%endif # /SECTION Suggests: python-python-dateutil Suggests: python-simplejson @@ -74,10 +74,8 @@ popd %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check %python_exec setup.py test -%endif %files %{python_files} %doc AUTHORS.rst CHANGELOG.rst README.rst