14
0
forked from pool/python-pydot

- Skip one failing test:

* pydot-skip-test.patch
- Enable testsuite and add tests dependencies

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydot?expand=0&rev=19
This commit is contained in:
Tomáš Chvátal
2019-04-04 12:59:37 +00:00
committed by Git OBS Bridge
parent 344ede202f
commit 281c736025
3 changed files with 30 additions and 0 deletions

12
pydot-skip-test.patch Normal file
View File

@@ -0,0 +1,12 @@
Index: pydot-1.4.1/test/pydot_unittest.py
===================================================================
--- pydot-1.4.1.orig/test/pydot_unittest.py
+++ pydot-1.4.1/test/pydot_unittest.py
@@ -205,6 +205,7 @@ class TestGraphAPI(unittest.TestCase):
self._render_and_compare_dot_files(path)
+ @unittest.skip("fails even in git on travis")
def test_graphviz_regression_tests(self):
path = os.path.join(test_dir, TESTS_DIR_2)
self._render_and_compare_dot_files(path)

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Apr 4 12:58:15 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Skip one failing test:
* pydot-skip-test.patch
- Enable testsuite and add tests dependencies
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 2 12:56:07 UTC 2019 - Colleen Murphy <comurphy@suse.com> Tue Apr 2 12:56:07 UTC 2019 - Colleen Murphy <comurphy@suse.com>

View File

@@ -25,12 +25,19 @@ License: MIT
Group: Development/Libraries/Python Group: Development/Libraries/Python
URL: https://github.com/erocarrera/pydot URL: https://github.com/erocarrera/pydot
Source: https://files.pythonhosted.org/packages/source/p/pydot/pydot-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/pydot/pydot-%{version}.tar.gz
# https://github.com/pydot/pydot/issues/204
Patch0: pydot-skip-test.patch
BuildRequires: %{python_module chardet}
BuildRequires: %{python_module pyparsing >= 2.1.4} BuildRequires: %{python_module pyparsing >= 2.1.4}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: ghostscript-fonts-std
BuildRequires: graphviz
BuildRequires: graphviz-gd
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: graphviz Requires: graphviz
Requires: python-pyparsing >= 2.1.4 Requires: python-pyparsing >= 2.1.4
Recommends: graphviz-gd
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -41,6 +48,7 @@ Python. All attributes implemented in the Dot language up to Graphviz
%prep %prep
%setup -q -n pydot-%{version} %setup -q -n pydot-%{version}
%patch0 -p1
%build %build
%python_build %python_build
@@ -49,6 +57,9 @@ Python. All attributes implemented in the Dot language up to Graphviz
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python test/pydot_unittest.py --no-check
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README.md %doc README.md