commit 711b09fce15a187237bae6c011dfad11d5f8637e5a2becf2569b509083abd52a Author: Tomáš Chvátal Date: Thu Mar 21 14:37:04 2019 +0000 Accepting request 687314 from home:jayvdb:coala:test-rig - Initial spec for v1.6.0 OBS-URL: https://build.opensuse.org/request/show/687314 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-profiling?expand=0&rev=1 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-profiling-1.6.0.tar.gz b/pytest-profiling-1.6.0.tar.gz new file mode 100644 index 0000000..5d4a4ae --- /dev/null +++ b/pytest-profiling-1.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e44f8cddffa68e1b5a99bce64f60e91d7ec28175dc4b6ac57d7c6ac39135ec1f +size 29836 diff --git a/python-pytest-profiling.changes b/python-pytest-profiling.changes new file mode 100644 index 0000000..4cb9896 --- /dev/null +++ b/python-pytest-profiling.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Mar 21 01:32:01 AM UTC 2019 - John Vandenberg + +- Initial spec for v1.6.0 diff --git a/python-pytest-profiling.spec b/python-pytest-profiling.spec new file mode 100644 index 0000000..5ce00bb --- /dev/null +++ b/python-pytest-profiling.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-pytest-profiling +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-pytest-profiling +Version: 1.6.0 +Release: 0 +Summary: Profiling plugin for pytest +License: MIT +Group: Development/Languages/Python +URL: https://github.com/manahl/pytest-plugins +Source: https://files.pythonhosted.org/packages/source/p/pytest-profiling/pytest-profiling-%{version}.tar.gz +BuildRequires: %{python_module setuptools-git} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-gprof2dot +Requires: python-pytest +Requires: python-six +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module gprof2dot} +BuildRequires: %{python_module more-itertools} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-virtualenv} +BuildRequires: %{python_module six} +# /SECTION +%python_subpackages + +%description +Profiling plugin for py.test + +%prep +%setup -q -n pytest-profiling-%{version} +sed -i 's:pytest<[0-9.]*:pytest:g' setup.py +# Unpin +sed -i 's/more-itertools==5.0.0/more-itertools/' tests/integration/test_profile_integration.py + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# integration tests omit as they try to use the system image instead of buildroot +%python_exec -m pytest -k 'not test_profile_integration' + +%files %{python_files} +%doc CHANGES.md README.md +%license LICENSE +%{python_sitelib}/* + +%changelog