From 80d3d2a3d1359b0c41d4e729d630193fa9d3a9b34ec7fdb36ac10922a4011dc1 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 31 Aug 2024 12:45:02 +0000 Subject: [PATCH] Accepting request 1196331 from home:yeey:OpenWebUI Initial Package OBS-URL: https://build.opensuse.org/request/show/1196331 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-pylint?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + pytest-pylint-0.21.0.tar.gz | 3 ++ python-pytest-pylint.changes | 9 +++++ python-pytest-pylint.spec | 70 ++++++++++++++++++++++++++++++++++++ rm-pytest-runner.patch | 13 +++++++ 6 files changed, 119 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pytest-pylint-0.21.0.tar.gz create mode 100644 python-pytest-pylint.changes create mode 100644 python-pytest-pylint.spec create mode 100644 rm-pytest-runner.patch 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/pytest-pylint-0.21.0.tar.gz b/pytest-pylint-0.21.0.tar.gz new file mode 100644 index 0000000..9627362 --- /dev/null +++ b/pytest-pylint-0.21.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:88764b8e1d5cfa18809248e0ccc2fc05035f08c35f0b0222ddcfea1c3c4e553e +size 14250 diff --git a/python-pytest-pylint.changes b/python-pytest-pylint.changes new file mode 100644 index 0000000..d0117c4 --- /dev/null +++ b/python-pytest-pylint.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 27 17:05:32 UTC 2024 - Meera Belur + +- list files to be included explicitly + +------------------------------------------------------------------- +Tue Aug 20 20:03:34 UTC 2024 - Meera Belur + +- Initial package diff --git a/python-pytest-pylint.spec b/python-pytest-pylint.spec new file mode 100644 index 0000000..89bfadb --- /dev/null +++ b/python-pytest-pylint.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-pytest-pylint +# +# 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-pytest-pylint +Version: 0.21.0 +Release: 0 +Summary: A pytest plugin to check source code with pylint +License: MIT +URL: https://github.com/carsongee/pytest-pylint +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/p/pytest-pylint/pytest-pylint-%{version}.tar.gz +# Remove archived https://github.com/pytest-dev/pytest-runner from setup_requires +Patch0: rm-pytest-runner.patch +BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +# SECTION test requirements +BuildRequires: %{python_module pylint >= 2.15.0} +BuildRequires: %{python_module pytest >= 7.0} +BuildRequires: %{python_module black} +BuildRequires: %{python_module coverage} +BuildRequires: %{python_module flake8} +BuildRequires: %{python_module isort} +# /SECTION +BuildRequires: fdupes +Requires: python-pylint >= 2.15.0 +Requires: python-pytest >= 7.0 +Suggests: python-tomli >= 1.1.0 +BuildArch: noarch +%python_subpackages + +%description +pytest plugin to check source code with pylint. Run pylint with pytest and have configurable rule types (i.e. Convention, Warn, and Error) fail the build. You can also specify a pylintrc file. + +%prep +%autosetup -p1 -n pytest-pylint-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/pytest_pylint +%{python_sitelib}/pytest_pylint-%{version}.dist-info + +%changelog diff --git a/rm-pytest-runner.patch b/rm-pytest-runner.patch new file mode 100644 index 0000000..dfc8174 --- /dev/null +++ b/rm-pytest-runner.patch @@ -0,0 +1,13 @@ +index f966a5e..ec1dcbb 100644 +--- a/setup.py ++++ b/setup.py +@@ -28,7 +28,7 @@ setup( + "pylint>=2.15.0", + "tomli>=1.1.0; python_version < '3.11'", + ], +- setup_requires=["pytest-runner"], ++ setup_requires=[""], + tests_require=["coverage", "flake8", "black", "isort"], + classifiers=[ + "Development Status :: 5 - Production/Stable", +