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
21
LICENSE
Normal file
21
LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 Łukasz Langa
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6a13c305a1b53171add92189e9c55a0ccf9c6295ee25c118a99d29f636564ced
|
||||
size 11108
|
||||
3
flake8-pyi-19.2.0.tar.gz
Normal file
3
flake8-pyi-19.2.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f2e4af113d0004abc3e8e15a66a1b5fe9103bfce731703b4c3b3c8c7633114ef
|
||||
size 11278
|
||||
@@ -1,3 +1,18 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 28 09:43:51 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Remove workaround for two previously failing tests fixed upstream
|
||||
- Add build dependency on Python 3.6+
|
||||
- Add LICENSE
|
||||
- Udpate to v19.2.0
|
||||
* Support 3.7
|
||||
* Be explicit in setup.py about Python 3.6+
|
||||
* add `.flake8` to manifest file
|
||||
* Use --stdin-display-name as filename when reading from stdin
|
||||
* Add rules for checking an empty class
|
||||
* Add a check for non-ellipsis, non-typed arguments
|
||||
* Coding style improvements
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 8 21:23:56 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -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