forked from pool/python-abimap
Accepting request 725248 from devel:languages:python
- Drop no longer needed abimap-0.3.0-disable-pytest-console-script-tests.patch and properly depend on pytest-console-scripts - Update to 0.3.2: * Fixed broken builds due to changes in warning output * Changed tests to check error messages * Added python 3.7 to testing matrix * Added requirement to verify SNI when checking URLs in docs OBS-URL: https://build.opensuse.org/request/show/725248 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-abimap?expand=0&rev=4
This commit is contained in:
@@ -1,32 +0,0 @@
|
|||||||
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")
|
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d2c4c7ff6ef2e1b42e0385af5995c5432027fe10ce3278408841e23cb3ca5dcd
|
|
||||||
size 53265
|
|
3
abimap-0.3.2.tar.gz
Normal file
3
abimap-0.3.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:85797f8c99ca240c43130dbd3b51b85d7772735164d4299f9b453b98bf84559a
|
||||||
|
size 51744
|
@@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 22 08:35:33 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Drop no longer needed abimap-0.3.0-disable-pytest-console-script-tests.patch
|
||||||
|
and properly depend on pytest-console-scripts
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 22 08:28:28 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update to 0.3.2:
|
||||||
|
* Fixed broken builds due to changes in warning output
|
||||||
|
* Changed tests to check error messages
|
||||||
|
* Added python 3.7 to testing matrix
|
||||||
|
* Added requirement to verify SNI when checking URLs in docs
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 20 14:34:59 UTC 2018 - tchvatal@suse.com
|
Mon Aug 20 14:34:59 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-abimap
|
# spec file for package python-abimap
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -12,20 +12,19 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-abimap
|
Name: python-abimap
|
||||||
Version: 0.3.1
|
Version: 0.3.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A helper for library maintainers to use symbol versioning
|
Summary: A helper for library maintainers to use symbol versioning
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/ansasaki/abimap
|
URL: https://github.com/ansasaki/abimap
|
||||||
Source: https://files.pythonhosted.org/packages/source/a/abimap/abimap-%{version}.tar.gz
|
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_module Sphinx}
|
BuildRequires: %{python_module Sphinx}
|
||||||
BuildRequires: %{python_module pytest-runner}
|
BuildRequires: %{python_module pytest-runner}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@@ -34,8 +33,8 @@ BuildRequires: python-rpm-macros
|
|||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
#BuildRequires: %%{python_module pytest-console-scripts}
|
|
||||||
BuildRequires: %{python_module PyYAML}
|
BuildRequires: %{python_module PyYAML}
|
||||||
|
BuildRequires: %{python_module pytest-console-scripts}
|
||||||
BuildRequires: %{python_module pytest-cov}
|
BuildRequires: %{python_module pytest-cov}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
@@ -57,8 +56,6 @@ Documentation for the symbol versioning helper %{name}
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n abimap-%{version}
|
%setup -q -n abimap-%{version}
|
||||||
|
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
@@ -77,7 +74,7 @@ install -m 0644 man/abimap.1 %{buildroot}%{_mandir}/man1/
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
make -j1 -C tests ABIMAP_NAME_VERSION="abimap-%{version}" ABIMAP_VERSION="%{version}"
|
make -j1 -C tests ABIMAP_NAME_VERSION="abimap-%{version}" ABIMAP_VERSION="%{version}"
|
||||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:${PWD}/tests py.test-%{$python_version} -vv tests
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:${PWD}/tests py.test-%{$python_version} -vv tests -k 'not test_main'
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc AUTHORS.rst CHANGELOG.rst README.rst
|
%doc AUTHORS.rst CHANGELOG.rst README.rst
|
||||||
|
Reference in New Issue
Block a user