From ee4bb18f855816e79c8a97482cb51a4ca40663aaa8190c7d1aeeb1862e78d2f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 23 Nov 2023 10:30:18 +0000 Subject: [PATCH] Accepting request 1128281 from home:ojkastl_buildservice:Branch_devel_languages_python new package python-gp-libs, required by python-libtmux OBS-URL: https://build.opensuse.org/request/show/1128281 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gp-libs?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + gp_libs-0.0.4.tar.gz | 3 ++ python-gp-libs.changes | 4 +++ python-gp-libs.spec | 74 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 105 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 gp_libs-0.0.4.tar.gz create mode 100644 python-gp-libs.changes create mode 100644 python-gp-libs.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/gp_libs-0.0.4.tar.gz b/gp_libs-0.0.4.tar.gz new file mode 100644 index 0000000..58d8736 --- /dev/null +++ b/gp_libs-0.0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2f643f1c7d450310689b63c2f07f774e499514e6340fea13167da3f1139c6cb2 +size 17455 diff --git a/python-gp-libs.changes b/python-gp-libs.changes new file mode 100644 index 0000000..78ffb8b --- /dev/null +++ b/python-gp-libs.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Nov 21 06:23:29 UTC 2023 - Johannes Kastl + +- new package python-gp-libs, required by python-libtmux diff --git a/python-gp-libs.spec b/python-gp-libs.spec new file mode 100644 index 0000000..d3a1326 --- /dev/null +++ b/python-gp-libs.spec @@ -0,0 +1,74 @@ +# +# spec file for package python-gp-libs +# +# Copyright (c) 2023 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-gp-libs +Version: 0.0.4 +Release: 0 +Summary: Internal utilities for projects following git-pull python package spec +License: MIT +URL: https://gp-libs.git-pull.com +Source: https://files.pythonhosted.org/packages/source/g/gp-libs/gp_libs-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} +BuildRequires: %{python_module poetry-core >= 1.0.0} +BuildRequires: %{python_module docutils} +BuildRequires: %{python_module myst-parser} +# SECTION test +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-rerunfailures} +# /SECTION +BuildRequires: fdupes +Requires: python-docutils +Requires: python-myst-parser +BuildArch: noarch +%python_subpackages + +%description +Incubating / dogfooding some sphinx extensions and pytest plugins on git-pull projects, e.g. cihai, vcs-python, or tmux-python. + +%prep +%autosetup -p1 -n gp_libs-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# Move src to a different path to do not use in tests +mv src src.bak + +ignore="--ignore=tests/test_doctest_docutils.py" +ignore+=" --ignore=tests/test_linkify_issues.py" +%pytest $ignore + +mv src.bak src + +%files %{python_files} +%{python_sitelib}/doctest_docutils.py +%{python_sitelib}/docutils_compat.py +%{python_sitelib}/gp_libs.py +%{python_sitelib}/linkify_issues.py +%{python_sitelib}/pytest_doctest_docutils.py +%{python_sitelib}/gp_libs-%{version}.dist-info +%pycache_only %{python_sitelib}/__pycache__/* + +%changelog