forked from pool/python-pytest-flakes
Accepting request 826232 from home:bnavigator:branches:devel:languages:python:pytest
- Update to Version 4.0.1
* Maintenance of pytest-flakes has moved from fschulze to
asmeurer. The repo for pytest-flakes is now at
https://github.com/asmeurer/pytest-flakes/
* Fix test failures. [asmeurer]
* Fix deprecation warnings from pytest. [asmeurer]
* Fix invalid escape sequences. [akeeman]
- drop patches for fixed test
* remove-bad-test.patch
* replace-pytest-pep8-with-pytest-codestyle.patch
- no pytest-codestyle needed for packaging
OBS-URL: https://build.opensuse.org/request/show/826232
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-flakes?expand=0&rev=9
This commit is contained in:
committed by
Git OBS Bridge
parent
926362620b
commit
7920a68d49
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pytest-flakes
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LLC
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,21 +18,18 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pytest-flakes
|
||||
Version: 4.0.0
|
||||
Version: 4.0.1
|
||||
Release: 0
|
||||
Summary: Pytest plugin to check source code with pyflakes
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/fschulze/pytest-flakes
|
||||
URL: https://github.com/asmeurer/pytest-flakes
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-flakes/pytest-flakes-%{version}.tar.gz
|
||||
Patch0: remove-bad-test.patch
|
||||
Patch1: replace-pytest-pep8-with-pytest-codestyle.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
# Test requirements
|
||||
BuildRequires: %{python_module pyflakes}
|
||||
BuildRequires: %{python_module pytest >= 2.8.0}
|
||||
BuildRequires: %{python_module pytest-codestyle}
|
||||
# End of test requirements
|
||||
BuildRequires: fdupes
|
||||
Requires: python-pyflakes
|
||||
@@ -46,9 +43,6 @@ py.test plugin for efficiently checking python source with pyflakes.
|
||||
|
||||
%prep
|
||||
%setup -q -n pytest-flakes-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
rm tox.ini
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -58,11 +52,13 @@ rm tox.ini
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
%pytest test_flakes.py
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/pytest_flakes.py*
|
||||
%pycache_only %{python_sitelib}/__pycache__/pytest_flakes.*
|
||||
%{python_sitelib}/pytest_flakes-%{version}-py*.egg-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user