15
0

Accepting request 704366 from home:pgajdos

- version update to 0.6
  * Add support for Python 3.4, 3.5, 3.6 and 3.7.
  * Drop support for Python 2.6, 3.2 and 3.3.
  * Add contributing.md and update docs.
- deleted patches
  - peppercorn-0.5-fix-pylons-theme.patch (upstreamed)

OBS-URL: https://build.opensuse.org/request/show/704366
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-peppercorn?expand=0&rev=7
This commit is contained in:
Tomáš Chvátal
2019-05-21 08:16:37 +00:00
committed by Git OBS Bridge
parent 99477444a0
commit bfbe665ee2
5 changed files with 16 additions and 53 deletions

View File

@@ -1,44 +0,0 @@
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',

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:921cba5d51fa211e6da0fbd2120b9a98d663422a80f5bb669ad81ffb0909774b
size 19637

3
peppercorn-0.6.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:96d7681d7a04545cfbaf2c6fb66de67b29cfc42421aa263e4c78f2cbb85be4c6
size 16386

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue May 21 07:49:00 UTC 2019 - pgajdos@suse.com
- version update to 0.6
* Add support for Python 3.4, 3.5, 3.6 and 3.7.
* Drop support for Python 2.6, 3.2 and 3.3.
* Add contributing.md and update docs.
- deleted patches
- peppercorn-0.5-fix-pylons-theme.patch (upstreamed)
-------------------------------------------------------------------
Tue Dec 18 23:13:00 UTC 2018 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-peppercorn
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
@@ -19,15 +19,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-peppercorn
Version: 0.5
Version: 0.6
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:
@@ -58,7 +56,6 @@ This package contains documentation for %{name}.
%prep
%setup -q -n peppercorn-%{version}
%patch -p1
%build
%python_build
@@ -78,7 +75,7 @@ python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%else
%doc LICENSE.txt
%endif
%doc CHANGES.txt CONTRIBUTORS.txt COPYRIGHT.txt README.txt
%doc CHANGES.rst CONTRIBUTORS.txt COPYRIGHT.txt README.rst contributing.md
%{python_sitelib}/*
%files -n %{name}-doc