From 079fcfe171da2ef242610a6dcff0f20b82bd2a7228bf000e5d095d6b921f1e3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Wed, 10 Nov 2021 13:47:48 +0000 Subject: [PATCH] - initital package - add deps.patch - tests for now broken in our envv OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hunter?expand=0&rev=1 --- .gitattributes | 24 ++++++++++++++++++ .gitignore | 4 +++ deps.patch | 30 +++++++++++++++++++++++ hunter-3.3.8.tar.gz | 3 +++ python-hunter.changes | 6 +++++ python-hunter.spec | 57 +++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 124 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 deps.patch create mode 100644 hunter-3.3.8.tar.gz create mode 100644 python-hunter.changes create mode 100644 python-hunter.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..37a8eaa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +*.changes merge=merge-changes +*.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 +*.tar 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..8b731c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild diff --git a/deps.patch b/deps.patch new file mode 100644 index 0000000..ab2e09c --- /dev/null +++ b/deps.patch @@ -0,0 +1,30 @@ +Index: hunter-3.3.8/pyproject.toml +=================================================================== +--- hunter-3.3.8.orig/pyproject.toml ++++ hunter-3.3.8/pyproject.toml +@@ -2,7 +2,7 @@ + requires = [ + "setuptools>=30.3.0", + "wheel", +- "setuptools_scm>=3.3.1,!=4.0.0,<6.0", ++ "setuptools_scm>=3.3.1,!=4.0.0", + ] + + [tool.ipdb] +Index: hunter-3.3.8/setup.py +=================================================================== +--- hunter-3.3.8.orig/setup.py ++++ hunter-3.3.8/setup.py +@@ -156,10 +156,10 @@ setup( + ':platform_system != "Windows"': ['manhole >= 1.5'], + }, + setup_requires=[ +- 'setuptools_scm>=3.3.1,!=4.0.0,<6.0', ++ 'setuptools_scm>=3.3.1,!=4.0.0', + 'cython', + ] if Cython else [ +- 'setuptools_scm>=3.3.1,!=4.0.0,<6.0', ++ 'setuptools_scm>=3.3.1,!=4.0.0', + ], + entry_points={ + 'console_scripts': [ diff --git a/hunter-3.3.8.tar.gz b/hunter-3.3.8.tar.gz new file mode 100644 index 0000000..2ff3045 --- /dev/null +++ b/hunter-3.3.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b5fcd01da7c8ddf299805d89cbbaa3ba379660335ea709550f01bf6b32b946f7 +size 554086 diff --git a/python-hunter.changes b/python-hunter.changes new file mode 100644 index 0000000..91c5c30 --- /dev/null +++ b/python-hunter.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Wed Nov 10 13:11:53 UTC 2021 - Ondřej Súkup + +- initital package +- add deps.patch +- tests for now broken in our envv diff --git a/python-hunter.spec b/python-hunter.spec new file mode 100644 index 0000000..5f2e6a1 --- /dev/null +++ b/python-hunter.spec @@ -0,0 +1,57 @@ +# +# spec file for package python-hunter +# +# Copyright (c) 2021 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-hunter +Version: 3.3.8 +Release: 0 +Summary: Pytest plugin for coverage reporting +License: BSD-2-Clause +URL: https://github.com/ionelmc/python-hunter +Source: https://files.pythonhosted.org/packages/source/h/hunter/hunter-%{version}.tar.gz +Patch0: deps.patch +BuildRequires: %{python_module Cython} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module six} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%python_subpackages + +%description +Hunter is a flexible code tracing toolkit, not for measuring coverage, +but for debugging, logging, inspection and other nefarious purposes. + +%prep +%autosetup -p1 -n hunter-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch}/ + +%check + +%files %{python_files} +%license LICENSE +%doc AUTHORS.rst CHANGELOG.rst README.rst +%{python_sitelib}/pytest-cov.pth +%{python_sitelib}/pytest_cov +%{python_sitelib}/pytest_cov-%{version}-py%{python_version}.egg-info + +%changelog