- Remove replace-pytest-pep8-with-pytest-codestyle.patch

- Remove not needed test dependencies:
  * update patch fix-requirements.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-Gravatar?expand=0&rev=5
This commit is contained in:
Tomáš Chvátal 2019-02-26 11:18:52 +00:00 committed by Git OBS Bridge
parent 6820abfdcd
commit 7e58aa0a77
4 changed files with 28 additions and 63 deletions

View File

@ -32,7 +32,17 @@ Index: Flask-Gravatar-0.5.0/setup.py
===================================================================
--- Flask-Gravatar-0.5.0.orig/setup.py
+++ Flask-Gravatar-0.5.0/setup.py
@@ -39,7 +39,7 @@ for reqs in extras_require.values():
@@ -21,9 +21,6 @@ tests_require = [
'coverage>=4.0',
'isort>=4.2.2',
'pydocstyle>=1.0.0',
- 'pytest-cache>=1.0',
- 'pytest-cov>=1.8.0',
- 'pytest-pep8>=1.0.6',
'pytest>=2.8.0',
]
@@ -39,7 +36,7 @@ for reqs in extras_require.values():
extras_require['all'].extend(reqs)
setup_requires = [

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Feb 26 11:15:12 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Remove replace-pytest-pep8-with-pytest-codestyle.patch
- Remove not needed test dependencies:
* update patch fix-requirements.patch
-------------------------------------------------------------------
Wed Oct 10 14:57:17 UTC 2018 - Antonio Larrosa <alarrosa@suse.com> - 0.5.0

View File

@ -1,7 +1,7 @@
#
# spec file for package python-Flask-Gravatar
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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
@ -12,33 +12,31 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-Flask-Gravatar
Version: 0.5.0
Release: 0
License: BSD-3-Clause
Summary: Small extension for Flask to make usage of Gravatar service
Url: https://github.com/zzzsochi/Flask-Gravatar/
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://github.com/zzzsochi/Flask-Gravatar/
Source: https://files.pythonhosted.org/packages/source/F/Flask-Gravatar/Flask-Gravatar-%{version}.tar.gz
Patch0: fix-requirements.patch
Patch1: replace-pytest-pep8-with-pytest-codestyle.patch
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# Test requirements
BuildRequires: %{python_module pytest-runner >= 2.6.2}
BuildRequires: %{python_module Flask >= 0.10}
BuildRequires: %{python_module Pygments}
BuildRequires: %{python_module check-manifest >= 0.25}
BuildRequires: %{python_module coverage >= 4.0}
BuildRequires: %{python_module isort >= 4.2.2}
BuildRequires: %{python_module pydocstyle >= 1.0.0}
BuildRequires: %{python_module pytest >= 2.8.0}
BuildRequires: %{python_module pytest-cache >= 1.0}
BuildRequires: %{python_module pytest-cov >= 1.8.0}
BuildRequires: %{python_module pytest-codestyle >= 1.0.6}
BuildRequires: %{python_module Pygments}
BuildRequires: %{python_module pytest-runner >= 2.6.2}
# End of test requirements
BuildRequires: fdupes
Requires: python-Flask >= 0.10
@ -52,7 +50,7 @@ Small extension for Flask to make usage of the Gravatar service.
%prep
%setup -q -n Flask-Gravatar-%{version}
%patch0 -p1
%patch1 -p1
rm pytest.ini
%build
export LC_CTYPE=en_US@UTF-8

View File

@ -1,50 +0,0 @@
Index: Flask-Gravatar-0.5.0/pytest.ini
===================================================================
--- Flask-Gravatar-0.5.0.orig/pytest.ini
+++ Flask-Gravatar-0.5.0/pytest.ini
@@ -12,7 +12,7 @@
[pytest]
-addopts = --pep8 --doctest-glob="*.rst" --doctest-modules --cov=flask_gravatar --cov-report=term-missing
-pep8ignore = docs/conf.py ALL \
- docs/_themes/flask_theme_support.py ALL
+addopts = --codestyle --doctest-glob="*.rst" --doctest-modules --cov=flask_gravatar --cov-report=term-missing
+codestyle_exclude = docs/conf.py docs/_themes/flask_theme_support.py
+codestyle_ignore = E501 E305
testpaths = docs tests flask_gravatar
Index: Flask-Gravatar-0.5.0/tox.ini
===================================================================
--- Flask-Gravatar-0.5.0.orig/tox.ini
+++ Flask-Gravatar-0.5.0/tox.ini
@@ -11,5 +11,5 @@ envlist = py26, py27, py33, py34
[testenv]
deps = pytest
pytest-cov
- pytest-pep8
+ pytest-codestyle
commands = {envpython} setup.py test
Index: Flask-Gravatar-0.5.0/setup.py
===================================================================
--- Flask-Gravatar-0.5.0.orig/setup.py
+++ Flask-Gravatar-0.5.0/setup.py
@@ -23,7 +23,7 @@ tests_require = [
'pydocstyle>=1.0.0',
'pytest-cache>=1.0',
'pytest-cov>=1.8.0',
- 'pytest-pep8>=1.0.6',
+ 'pytest-codestyle>=1.3.0',
'pytest>=2.8.0',
]
Index: Flask-Gravatar-0.5.0/Flask_Gravatar.egg-info/requires.txt
===================================================================
--- Flask-Gravatar-0.5.0.orig/Flask_Gravatar.egg-info/requires.txt
+++ Flask-Gravatar-0.5.0/Flask_Gravatar.egg-info/requires.txt
@@ -10,5 +10,5 @@ isort>=4.2.2
pydocstyle>=1.0.0
pytest-cache>=1.0
pytest-cov>=1.8.0
-pytest-pep8>=1.0.6
+pytest-codestyle>=1.3.0
pytest>=2.8.0