forked from pool/python-flake8-pyi
Accepting request 680074 from home:jayvdb:flake8
- Remove workaround for two previously failing tests fixed upstream - Add build dependency on Python 3.6+ - Add LICENSE - Update to v19.2.0, notably support 3.7 OBS-URL: https://build.opensuse.org/request/show/680074 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-pyi?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
08d1e85c6e
commit
d5a38c32be
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-flake8-pyi
|
||||
#
|
||||
# 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
|
||||
@@ -19,19 +19,21 @@
|
||||
%define skip_python2 1
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-flake8-pyi
|
||||
Version: 18.3.1
|
||||
Version: 19.2.0
|
||||
Release: 0
|
||||
Summary: A plugin for flake8 to enable linting .pyi files
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/ambv/flake8-pyi
|
||||
Source: https://files.pythonhosted.org/packages/source/f/flake8-pyi/flake8-pyi-%{version}.tar.gz
|
||||
Source1: https://raw.githubusercontent.com/ambv/flake8-pyi/master/LICENSE
|
||||
BuildRequires: %{python_module base > 3.6.0}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module attrs}
|
||||
BuildRequires: %{python_module flake8 >= 3.2.1}
|
||||
# pytest has better way how to exclude some tests
|
||||
# Use pytest directly to bypass setup.py test dependencies
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
@@ -48,6 +50,7 @@ files , especially interesting for linting typeshed.
|
||||
%prep
|
||||
%setup -q -n flake8-pyi-%{version}
|
||||
sed -i '1{\,^#!%{_bindir}/env python,d}' pyi.py
|
||||
cp %{SOURCE1} .
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -57,11 +60,10 @@ sed -i '1{\,^#!%{_bindir}/env python,d}' pyi.py
|
||||
%fdupes %{buildroot}%{python3_sitelib}
|
||||
|
||||
%check
|
||||
# https://github.com/ambv/flake8-pyi/issues/16
|
||||
exc_tests="test_defaults or test_function_def"
|
||||
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test3 -v -k "not ($exc_tests)" tests
|
||||
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test3 -v tests
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python3_sitelib}/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user