From ec9c9a8e20570d1c4240e85fc12c1850e70ba1fc013da70b08641f60756cac55 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 7 Nov 2022 10:14:11 +0000 Subject: [PATCH] Accepting request 1033869 from home:bnavigator:branches:devel:languages:python:numeric required by spyder OBS-URL: https://build.opensuse.org/request/show/1033869 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint-venv?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + pylint-venv-2.3.0.tar.gz | 3 ++ pylint-venv-pr13-fixinclude.patch | 22 ++++++++++++ python-pylint-venv.changes | 6 ++++ python-pylint-venv.spec | 60 +++++++++++++++++++++++++++++++ 6 files changed, 115 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pylint-venv-2.3.0.tar.gz create mode 100644 pylint-venv-pr13-fixinclude.patch create mode 100644 python-pylint-venv.changes create mode 100644 python-pylint-venv.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/pylint-venv-2.3.0.tar.gz b/pylint-venv-2.3.0.tar.gz new file mode 100644 index 0000000..210e316 --- /dev/null +++ b/pylint-venv-2.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3594955502fdee83c98bfcc8c14cd615e6c7c3608aea525df84853ce79f296bf +size 5033 diff --git a/pylint-venv-pr13-fixinclude.patch b/pylint-venv-pr13-fixinclude.patch new file mode 100644 index 0000000..7facc18 --- /dev/null +++ b/pylint-venv-pr13-fixinclude.patch @@ -0,0 +1,22 @@ +From 1948a5060ad2b42c4badc74abadead866dc108fb Mon Sep 17 00:00:00 2001 +From: Ben Greiner +Date: Sun, 6 Nov 2022 16:37:14 +0100 +Subject: [PATCH] Don't install README.rst into purelib toplevel + +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 7d154c8..0125a62 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -25,7 +25,7 @@ classifiers = [ + 'Programming Language :: Python :: Implementation :: PyPy', + 'Topic :: Software Development', + ] +-include = ["README.rst", "CHANGELOG.md", "pylint_venv.py"] ++include = ["pylint_venv.py"] + + [tool.poetry.dependencies] + python = "^3.6" diff --git a/python-pylint-venv.changes b/python-pylint-venv.changes new file mode 100644 index 0000000..255db9f --- /dev/null +++ b/python-pylint-venv.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Sun Nov 6 15:29:38 UTC 2022 - Ben Greiner + +- Initial specfile for v2.3.0 +- Add pylint-venv-pr13-fixinclude.patch gh#jgosmann/pylint-venv#13 +- Required by spyder diff --git a/python-pylint-venv.spec b/python-pylint-venv.spec new file mode 100644 index 0000000..b3fb60f --- /dev/null +++ b/python-pylint-venv.spec @@ -0,0 +1,60 @@ +# +# spec file for package python-pylint-venv +# +# Copyright (c) 2022 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/ +# + + +Name: python-pylint-venv +Version: 2.3.0 +Release: 0 +Summary: Use the same Pylint installation with different virtual environments +License: MIT +URL: https://github.com/jgosmann/pylint-venv/ +Source: https://files.pythonhosted.org/packages/source/p/pylint-venv/pylint-venv-%{version}.tar.gz +# PATCH-FIX-UPSTREAM pylint-venv-pr13-fixinclude.patch gh#jgosmann/pylint-venv#13 +Patch0: pylint-venv-pr13-fixinclude.patch +BuildRequires: %{python_module base >= 3.6} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Provides: python-pylint_venv = %{version}-%{release} +BuildArch: noarch +%python_subpackages + +%description +pylint-venv provides a Pylint init-hook to use the same Pylint installation with different virtual environments. + +%prep +%autosetup -p1 -n pylint-venv-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +#%%check +# upstream has no tests + +%files %{python_files} +%doc README.rst +%license LICENSE.txt +%{python_sitelib}/pylint_venv.py* +%pycache_only %{python_sitelib}/__pycache__/pylint_venv*.pyc +%{python_sitelib}/pylint_venv-%{version}.dist-info + +%changelog