forked from pool/python-peppercorn
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
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
44
peppercorn-0.5-fix-pylons-theme.patch
Normal file
44
peppercorn-0.5-fix-pylons-theme.patch
Normal file
@@ -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',
|
||||
3
peppercorn-0.5.tar.gz
Normal file
3
peppercorn-0.5.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:921cba5d51fa211e6da0fbd2120b9a98d663422a80f5bb669ad81ffb0909774b
|
||||
size 19637
|
||||
33
python-peppercorn.changes
Normal file
33
python-peppercorn.changes
Normal file
@@ -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
|
||||
|
||||
89
python-peppercorn.spec
Normal file
89
python-peppercorn.spec
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user