forked from pool/python-abimap
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
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
32
abimap-0.3.0-disable-pytest-console-script-tests.patch
Normal file
32
abimap-0.3.0-disable-pytest-console-script-tests.patch
Normal file
@@ -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")
|
3
abimap-0.3.0.tar.gz
Normal file
3
abimap-0.3.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ff41025ba6995501e0c320fd58a98f80edc76c3ddf3632b5a3beab677ae3181e
|
||||
size 51436
|
8
python-abimap.changes
Normal file
8
python-abimap.changes
Normal file
@@ -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.
|
93
python-abimap.spec
Normal file
93
python-abimap.spec
Normal file
@@ -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
|
Reference in New Issue
Block a user