forked from pool/python-pydot
Accepting request 691521 from devel:languages:python
- Skip one failing test: * pydot-skip-test.patch - Enable testsuite and add tests dependencies - Update to 1.4.1: * Make graph, edge, node attributes order deterministic * Fix string formatting after catching error (#201) * Installation of pydot in conda env on Windows directly supported * Fixed comparing of SHA hash in regression tests (which fail now) * Dropped Python 2.6 support (#185) * Move errno from os to builtin. Fixes #177 (#191, #182) OBS-URL: https://build.opensuse.org/request/show/691521 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydot?expand=0&rev=8
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:92d2e2d15531d00710f2d6fb5540d2acabc5399d464f2f20d5d21073af241eb6
|
||||
size 132018
|
3
pydot-1.4.1.tar.gz
Normal file
3
pydot-1.4.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d49c9d4dd1913beec2a997f831543c8cbd53e535b1a739e921642fe416235f01
|
||||
size 128236
|
12
pydot-skip-test.patch
Normal file
12
pydot-skip-test.patch
Normal 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)
|
@@ -1,3 +1,21 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- Update to 1.4.1:
|
||||
* Make graph, edge, node attributes order deterministic
|
||||
* Fix string formatting after catching error (#201)
|
||||
* Installation of pydot in conda env on Windows directly supported
|
||||
* Fixed comparing of SHA hash in regression tests (which fail now)
|
||||
* Dropped Python 2.6 support (#185)
|
||||
* Move errno from os to builtin. Fixes #177 (#191, #182)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 18 23:56:25 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pydot
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,19 +18,26 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pydot
|
||||
Version: 1.2.4
|
||||
Version: 1.4.1
|
||||
Release: 0
|
||||
Summary: Module to create (dot) graphs from Python
|
||||
License: MIT
|
||||
Group: Development/Libraries/Python
|
||||
URL: https://github.com/erocarrera/pydot
|
||||
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 setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: ghostscript-fonts-std
|
||||
BuildRequires: graphviz
|
||||
BuildRequires: graphviz-gd
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: graphviz
|
||||
Requires: python-pyparsing >= 2.1.4
|
||||
Recommends: graphviz-gd
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -41,6 +48,7 @@ Python. All attributes implemented in the Dot language up to Graphviz
|
||||
|
||||
%prep
|
||||
%setup -q -n pydot-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -49,6 +57,9 @@ Python. All attributes implemented in the Dot language up to Graphviz
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python test/pydot_unittest.py --no-check
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
|
Reference in New Issue
Block a user