From 119c0003081708337fd6b5c5508fe54975ca6c7783f12f3a889303ab8a2c124e Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Mon, 21 Aug 2017 05:35:19 +0000 Subject: [PATCH] Accepting request 517681 from home:sebix:branches:devel:languages:python OBS-URL: https://build.opensuse.org/request/show/517681 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-marshmallow?expand=0&rev=1 --- .gitattributes | 23 ++++++ .gitignore | 1 + marshmallow-2.13.6.tar.gz | 3 + patch-remove-unsupported-theme-option.patch | 10 +++ python-marshmallow.changes | 4 + python-marshmallow.spec | 90 +++++++++++++++++++++ 6 files changed, 131 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 marshmallow-2.13.6.tar.gz create mode 100644 patch-remove-unsupported-theme-option.patch create mode 100644 python-marshmallow.changes create mode 100644 python-marshmallow.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/marshmallow-2.13.6.tar.gz b/marshmallow-2.13.6.tar.gz new file mode 100644 index 0000000..f20510d --- /dev/null +++ b/marshmallow-2.13.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3e83f11cade65fc78482a7620f01f82080f032b5fb51756e396635ebc711c75 +size 138739 diff --git a/patch-remove-unsupported-theme-option.patch b/patch-remove-unsupported-theme-option.patch new file mode 100644 index 0000000..0bfd581 --- /dev/null +++ b/patch-remove-unsupported-theme-option.patch @@ -0,0 +1,10 @@ +--- 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.changes b/python-marshmallow.changes new file mode 100644 index 0000000..dc7ff1b --- /dev/null +++ b/python-marshmallow.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sat Aug 19 09:23:52 UTC 2017 - sebix+novell.com@sebix.at + +- initial package diff --git a/python-marshmallow.spec b/python-marshmallow.spec new file mode 100644 index 0000000..06dea94 --- /dev/null +++ b/python-marshmallow.spec @@ -0,0 +1,90 @@ +# +# spec file for package python-marshmallow +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{!?license: %global license %doc} +%bcond_without test +Name: python-marshmallow +Version: 2.13.6 +Release: 0 +License: MIT AND BSD-3-Clause +Summary: Converting complex datatypes to and from native Python datatypes +Url: http://marshmallow.readthedocs.io/ +Group: Development/Languages/Python +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 +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python3-Sphinx +BuildRequires: python3-sphinx-issues +# 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 +Suggests: %{name}-docs +BuildArch: noarch + +%python_subpackages + +%package -n %{name}-docs +Summary: Documentation files for %name +Group: Documentation/Other + +%description +marshmallow is an ORM/ODM/framework-agnostic library for converting complex +datatypes, such as objects, to and from native Python datatypes. + +%description -n %name-docs +HTML Documentation and examples for %name. + +%prep +%setup -q -n marshmallow-%{version} +%patch0 -p1 + +%build +%python_build +pushd docs +make html +rm _build/html/.buildinfo +popd + +%install +%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 +%license LICENSE NOTICE +%{python_sitelib}/* + +%files -n %{name}-docs +%doc examples docs/_build/html/ + +%changelog