From 52c7f1e53826b72bceb54a2e1e4af7979a8bfb6b15eefc0599c592bda96c0ac8 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 11 Apr 2024 12:04:47 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-noqa?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + flake8-noqa-1.4.0.tar.gz | 3 ++ python-flake8-noqa.changes | 4 ++ python-flake8-noqa.spec | 86 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 117 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 flake8-noqa-1.4.0.tar.gz create mode 100644 python-flake8-noqa.changes create mode 100644 python-flake8-noqa.spec 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-noqa-1.4.0.tar.gz b/flake8-noqa-1.4.0.tar.gz new file mode 100644 index 0000000..2f57620 --- /dev/null +++ b/flake8-noqa-1.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:771765ab27d1efd157528379acd15131147f9ae578a72d17fb432ca197881243 +size 27077 diff --git a/python-flake8-noqa.changes b/python-flake8-noqa.changes new file mode 100644 index 0000000..99a008c --- /dev/null +++ b/python-flake8-noqa.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Apr 1 03:04:49 UTC 2024 - Richard Rahl + +- initial packaging diff --git a/python-flake8-noqa.spec b/python-flake8-noqa.spec new file mode 100644 index 0000000..e93649f --- /dev/null +++ b/python-flake8-noqa.spec @@ -0,0 +1,86 @@ +# +# spec file for package python-flake8-noqa +# +# Copyright (c) 2024 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-flake8-noqa +Version: 1.4.0 +Release: 0 +Summary: Flake8 noqa comment validation +License: LGPL-3.0-only +URL: https://github.com/plinss/flake8-noqa +Source: https://files.pythonhosted.org/packages/source/f/flake8-noqa/flake8-noqa-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module wheel} +# SECTION test requirements +BuildRequires: %{python_module flake8 >= 3.8.0} +BuildRequires: %{python_module typing_extensions >= 3.7.4.2} +BuildRequires: %{python_module flake8-docstrings} +BuildRequires: %{python_module pytest} +# /SECTION +BuildRequires: fdupes +Requires: python-flake8 >= 3.8.0 +Requires: python-typing_extensions >= 3.7.4.2 +Suggests: python-mypy +Suggests: python-flake8 >= 3.8.0 +Suggests: python-flake8-annotations +Suggests: python-flake8-bandit +Suggests: python-flake8-bugbear +Suggests: python-flake8-commas +Suggests: python-flake8-comprehensions +Suggests: python-flake8-continuation +Suggests: python-flake8-datetimez +Suggests: python-flake8-docstrings +Suggests: python-flake8-import-order +Suggests: python-flake8-literal +Suggests: python-flake8-noqa +Suggests: python-flake8-polyfill +Suggests: python-flake8-pyproject +Suggests: python-flake8-modern-annotations +Suggests: python-flake8-requirements +Suggests: python-flake8-typechecking-import +Suggests: python-flake8-use-fstring +Suggests: python-pep8-naming +BuildArch: noarch +%python_subpackages + +%description +Flake8 noqa comment validation + +%prep +%autosetup -p1 -n flake8-noqa-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest -v test.py + +%files %{python_files} +%doc README.md +%license COPYING.LESSER LICENSE +%{python_sitelib}/flake8_noqa +%{python_sitelib}/flake8_noqa-%{version}.dist-info + +%changelog