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
This commit is contained in:
2024-08-31 12:45:02 +00:00
committed by Git OBS Bridge
commit 80d3d2a3d1
6 changed files with 119 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:88764b8e1d5cfa18809248e0ccc2fc05035f08c35f0b0222ddcfea1c3c4e553e
size 14250

View File

@@ -0,0 +1,9 @@
-------------------------------------------------------------------
Tue Aug 27 17:05:32 UTC 2024 - Meera Belur <mbelur@suse.com>
- list files to be included explicitly
-------------------------------------------------------------------
Tue Aug 20 20:03:34 UTC 2024 - Meera Belur <mbelur@suse.com>
- Initial package

70
python-pytest-pylint.spec Normal file
View File

@@ -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

13
rm-pytest-runner.patch Normal file
View File

@@ -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",