From 4dbf9faf599af57d86ac934431c00db7bef56e22981d68dba282427648cefb00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 6 Aug 2018 06:57:32 +0000 Subject: [PATCH] Accepting request 627582 from home:gladiac - Initial package - Add abimap-0.3.0-disable-pytest-console-script-tests.patch * We need to disable the pytest-console-script tests temporarily. The package can't be built yet as the tests are not working. The upstream maintainer of pytest-console-script is aware. OBS-URL: https://build.opensuse.org/request/show/627582 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-abimap?expand=0&rev=1 --- .gitattributes | 23 +++++ .gitignore | 1 + ...-disable-pytest-console-script-tests.patch | 32 +++++++ abimap-0.3.0.tar.gz | 3 + python-abimap.changes | 8 ++ python-abimap.spec | 93 +++++++++++++++++++ 6 files changed, 160 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 abimap-0.3.0-disable-pytest-console-script-tests.patch create mode 100644 abimap-0.3.0.tar.gz create mode 100644 python-abimap.changes create mode 100644 python-abimap.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/abimap-0.3.0-disable-pytest-console-script-tests.patch b/abimap-0.3.0-disable-pytest-console-script-tests.patch new file mode 100644 index 0000000..2b5f289 --- /dev/null +++ b/abimap-0.3.0-disable-pytest-console-script-tests.patch @@ -0,0 +1,32 @@ +Index: abimap-0.3.0/setup.py +=================================================================== +--- abimap-0.3.0.orig/setup.py 2018-08-03 17:00:27.000000000 +0200 ++++ abimap-0.3.0/setup.py 2018-08-03 17:51:50.673376523 +0200 +@@ -25,7 +25,7 @@ requirements = [] + + setup_requirements = ['pytest-runner'] + +-test_requirements = ['pytest', 'pyyaml', 'pytest-cov', 'pytest-console-scripts'] ++test_requirements = ['pytest', 'pyyaml', 'pytest-cov'] + + version = get_version() + +Index: abimap-0.3.0/tests/test_script.py +=================================================================== +--- abimap-0.3.0.orig/tests/test_script.py 2018-08-03 17:00:27.000000000 +0200 ++++ abimap-0.3.0/tests/test_script.py 2018-08-03 17:51:50.673376523 +0200 +@@ -2,6 +2,7 @@ + + """Test running as a command line script""" + ++import pytest + from conftest import cd + + +@@ -58,5 +59,6 @@ def run_script(testcases, datadir, scrip + caplog.clear() + + ++@pytest.mark.skip("script_runner not available") + def test_main(testcases, datadir, script_runner, capsys, caplog): + run_script(testcases, datadir, script_runner, capsys, caplog, "abimap") diff --git a/abimap-0.3.0.tar.gz b/abimap-0.3.0.tar.gz new file mode 100644 index 0000000..1cf3b5a --- /dev/null +++ b/abimap-0.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff41025ba6995501e0c320fd58a98f80edc76c3ddf3632b5a3beab677ae3181e +size 51436 diff --git a/python-abimap.changes b/python-abimap.changes new file mode 100644 index 0000000..982d5b5 --- /dev/null +++ b/python-abimap.changes @@ -0,0 +1,8 @@ +------------------------------------------------------------------- +Fri Aug 3 15:40:38 UTC 2018 - asn@cryptomilk.org + +- Initial package +- Add abimap-0.3.0-disable-pytest-console-script-tests.patch + * We need to disable the pytest-console-script tests temporarily. The package + can't be built yet as the tests are not working. The upstream maintainer of + pytest-console-script is aware. diff --git a/python-abimap.spec b/python-abimap.spec new file mode 100644 index 0000000..ba10057 --- /dev/null +++ b/python-abimap.spec @@ -0,0 +1,93 @@ +# +# spec file for package python-abimap +# +# Copyright (c) 2018 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 http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} + +Name: python-abimap +Version: 0.3.0 +Release: 0 +License: MIT +Summary: A helper for library maintainers to use symbol versioning +Url: https://github.com/ansasaki/abimap +Group: Development/Languages/Python + +Source: https://files.pythonhosted.org/packages/source/a/abimap/abimap-%{version}.tar.gz + +Patch0: abimap-0.3.0-disable-pytest-console-script-tests.patch + +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module pytest-runner} +# SECTION test requirements +BuildRequires: %{python_module pytest} +#BuildRequires: %%{python_module pytest-console-scripts} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module PyYAML} +# /SECTION +BuildRequires: fdupes +BuildArch: noarch + +%python_subpackages + +%description +This script allows to generate and update symbol version linker scripts which +adds version information to the exported symbols. The script is intended to be +integrated as part of a shared library build to check for changes in the set of +exported symbols and update the symbol version linker script accordingly. + +%package doc +Summary: Symbol versioning helper (Documentation) +Group: Documentation/HTML +BuildArch: noarch + +%description doc +Documentation for the symbol versioning helper %{name} + +%prep +%setup -q -n abimap-%{version} + +%patch0 -p1 + +%build +%python_build + +PYTHONPATH=${PWD}/src:${PWD}/tests sphinx-build docs html + +%install +%python_install + +rm -rf html/.{doctrees,buildinfo} + +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +make -C tests ABIMAP_NAME_VERSION="abimap-%{version}" ABIMAP_VERSION="%{version}" +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:${PWD}/tests py.test-%{$python_version} -vv tests + +%files %{python_files} +%doc AUTHORS.rst CHANGELOG.rst README.rst +%license LICENSE +%python3_only %{_bindir}/abimap +%{python_sitelib}/* + +%files %{python_files doc} +%doc html +%license LICENSE + +%changelog