commit da45bf624ede07445a9358ff29c26eeec8e897703defd4d451b857df7a5d4ae5 Author: Matej Cepl Date: Sun Nov 25 13:25:40 2018 +0000 Accepting request 651626 from home:frispete:python As requested, direct submit to d:l:py OBS-URL: https://build.opensuse.org/request/show/651626 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-peppercorn?expand=0&rev=1 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/peppercorn-0.5-fix-pylons-theme.patch b/peppercorn-0.5-fix-pylons-theme.patch new file mode 100644 index 0000000..4d91946 --- /dev/null +++ b/peppercorn-0.5-fix-pylons-theme.patch @@ -0,0 +1,44 @@ +Index: b/docs/conf.py +=================================================================== +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -15,37 +15,9 @@ + import sys, os + + # Add and use Pylons theme +-if 'sphinx-build' in ' '.join(sys.argv): # protect against dumb importers +- from subprocess import call, Popen, PIPE ++import pylons_sphinx_themes + +- p = Popen('which git', shell=True, stdout=PIPE) +- git = p.stdout.read().strip() +- cwd = os.getcwd() +- _themes = os.path.join(cwd, '_themes') +- +- if not os.path.isdir(_themes): +- call([git, 'clone', 'git://github.com/Pylons/pylons_sphinx_theme.git', +- '_themes']) +- else: +- os.chdir(_themes) +- call([git, 'checkout', 'master']) +- call([git, 'pull']) +- os.chdir(cwd) +- +- sys.path.append(os.path.abspath('_themes')) +- +- parent = os.path.dirname(os.path.dirname(__file__)) +- sys.path.append(os.path.abspath(parent)) +- wd = os.getcwd() +- os.chdir(parent) +- os.system('%s setup.py test -q' % sys.executable) +- os.chdir(wd) +- +- for item in os.listdir(parent): +- if item.endswith('.egg'): +- sys.path.append(os.path.join(parent, item)) +- +-html_theme_path = ['_themes'] ++html_theme_path = pylons_sphinx_themes.get_html_themes_path() + html_theme = 'pylons' + html_theme_options = dict( + github_url='https://github.com/Pylons/peppercorn', diff --git a/peppercorn-0.5.tar.gz b/peppercorn-0.5.tar.gz new file mode 100644 index 0000000..654e867 --- /dev/null +++ b/peppercorn-0.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:921cba5d51fa211e6da0fbd2120b9a98d663422a80f5bb669ad81ffb0909774b +size 19637 diff --git a/python-peppercorn.changes b/python-peppercorn.changes new file mode 100644 index 0000000..b44cbac --- /dev/null +++ b/python-peppercorn.changes @@ -0,0 +1,33 @@ +------------------------------------------------------------------- +Thu Jun 21 15:21:32 UTC 2018 - hpj@urpla.net + +- add patch peppercorn-0.5-fix-pylons-theme.patch to build docs properly + +------------------------------------------------------------------- +Wed Oct 4 18:54:04 UTC 2017 - bruno@ioda-net.ch + +- Build doc with python3 only + +------------------------------------------------------------------- +Tue Sep 19 15:08:47 UTC 2017 - bruno@ioda-net.ch + +- Migrate to singlespec with spec-cleanup + +------------------------------------------------------------------- +Fri Feb 6 17:15:55 UTC 2015 - hpj@urpla.net + +- version 0.5 + - Switch to an iterative parser rather than a recursive parser to avoid DoS + attacks. + - Add the ignore operation. The subsequent data elements in the stream will + be ignored until the corresponding __end__ marker. This feature is useful + for form elements designed for client-side scripting, such as a “select all” + checkbox in the middle of a list of other kinds of fields. + - Add support for Python 3.3. + - Drop support for Python 2.5 / Jython. + +------------------------------------------------------------------- +Mon Aug 5 16:41:09 UTC 2013 - hpj@urpla.net + +- version 0.4: initial build + diff --git a/python-peppercorn.spec b/python-peppercorn.spec new file mode 100644 index 0000000..bf6df16 --- /dev/null +++ b/python-peppercorn.spec @@ -0,0 +1,89 @@ +# +# spec file for package python-peppercorn +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 LISA GmbH, Bingen, 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-%{**}} +Name: python-peppercorn +Version: 0.5 +Release: 0 +Summary: Pyramid exceptions logger +License: BSD-4-Clause AND ZPL-2.1 AND MIT +Group: Development/Languages/Python +Url: http://docs.pylonsproject.org/projects/peppercorn/en/latest/ +Source: https://files.pythonhosted.org/packages/source/p/peppercorn/peppercorn-%{version}.tar.gz +# PATCH-FIX-OPENSUSE hpj@urpla.net peppercorn-0.5-fix-pylons-theme.patch -- use pylons theme properly +Patch: peppercorn-0.5-fix-pylons-theme.patch +# Documentation requirements: +BuildRequires: python3-Sphinx +# Testing requirements: +BuildRequires: %{python_module coverage} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module pylons-sphinx-themes} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +%python_subpackages + +%description +A library for converting a token stream into a data structure comprised of +sequences, mappings, and scalars, developed primarily for converting HTTP form +post data into a richer data structure. + +Please see -doc package or +http://docs.pylonsproject.org/projects/peppercorn/en/latest/ for the +documentation. + +%package -n %{name}-doc +Summary: Documentation for Pyramid exceptions logger +Group: Development/Languages/Python +Requires: %{name} = %{version} + +%description -n %{name}-doc +This package contains documentation files for %{name}. + +%prep +%setup -q -n peppercorn-%{version} +%patch -p1 + +%build +%python_build +python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo + +%install +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} + +%check +%python_exec setup.py nosetests --with-coverage + +%files %{python_files} +%defattr(-,root,root,-) +%if 0%{?leap_version} >= 420200 || 0%{?suse_version} > 1320 +%license LICENSE.txt +%else +%doc LICENSE.txt +%endif +%doc CHANGES.txt CONTRIBUTORS.txt COPYRIGHT.txt README.txt +%{python_sitelib}/* + +%files -n %{name}-doc +%defattr(-,root,root,-) +%doc build/sphinx/html + +%changelog