commit 2ac909c7c69aff28628a0bd9fd175a70546fa3203805ad131a0ed041408e4568 Author: Tomáš Chvátal Date: Sat Apr 11 07:26:43 2020 +0000 - Initial commit, used by spec-cleaner OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-isort?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/flake8-isort-2.9.1.tar.gz b/flake8-isort-2.9.1.tar.gz new file mode 100644 index 0000000..acdf352 --- /dev/null +++ b/flake8-isort-2.9.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d34b266080e1748412b203a1690792245011706b1858c203476b43460bf3652 +size 16116 diff --git a/python-flake8-isort.changes b/python-flake8-isort.changes new file mode 100644 index 0000000..662ae11 --- /dev/null +++ b/python-flake8-isort.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sat Apr 11 07:07:09 UTC 2020 - Tomáš Chvátal + +- Initial commit, used by spec-cleaner diff --git a/python-flake8-isort.spec b/python-flake8-isort.spec new file mode 100644 index 0000000..a782773 --- /dev/null +++ b/python-flake8-isort.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-flake8-isort +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-flake8-isort +Version: 2.9.1 +Release: 0 +Summary: Plugin integrating isort in flake8 +License: GPL-2.0-only +Group: Development/Languages/Python +URL: https://github.com/gforcada/flake8-isort +Source: https://files.pythonhosted.org/packages/source/f/flake8-isort/flake8-isort-%{version}.tar.gz +BuildRequires: %{python_module flake8 >= 3.2.1} +BuildRequires: %{python_module isort >= 4.3.5} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module testfixtures} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-flake8 >= 3.2.1 +Requires: python-isort >= 4.3.5 +Requires: python-testfixtures +BuildArch: noarch +%python_subpackages + +%description +Use `isort`_ to check if the imports on your python files are sorted the way you expect. + +%prep +%setup -q -n flake8-isort-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# the three skipped tests need to have the extension registered in the flake8 -> same sitelib +%pytest run_tests.py -k 'not (test_config_file or test_default_option or test_isort_uses_pyproject)' + +%files %{python_files} +%doc README.rst CHANGES.rst +%license LICENSE* +%{python_sitelib}/* + +%changelog