# # spec file for package python-objgraph # # 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 # 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 https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python %define skip_python2 1 Name: python-objgraph Version: 3.4.1 Release: 1.3 Summary: Python module to draw object reference graphs with graphviz License: MIT Group: Development/Languages/Python URL: http://mg.pov.lt/objgraph/ Source: https://files.pythonhosted.org/packages/source/o/objgraph/objgraph-%{version}.tar.gz BuildRequires: %{python_module graphviz} BuildRequires: %{python_module mock} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: graphviz-gd BuildRequires: graphviz-gnome BuildRequires: python-rpm-macros Requires: graphviz-gd Requires: graphviz-gnome Requires: python-graphviz Obsoletes: %{oldpython}-objgraph-doc BuildArch: noarch %python_subpackages %description objgraph is a module for visual exploration of Python object graphs. graphviz is needed if pretty graphs are desired. xdot can be used for interactive use. %prep %setup -q -n objgraph-%{version} %build %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_exec setup.py test %files %{python_files} %doc README.rst CHANGES.rst HACKING.rst %license LICENSE %{python_sitelib}/* %changelog * Mon Jun 3 2019 Tomáš Chvátal - Update to 3.4.1: * Add support for Python 3.7. * Drop support for Python 3.3 and 3.4. * Tue Dec 4 2018 Matej Cepl - Remove superfluous devel dependency for noarch package * Thu Jun 7 2018 jengelh@inai.de - Use noun phrase in summary. Replace 1st and 2nd person wording. * Thu May 3 2018 toddrme2178@gmail.com - Update to version 3.4.0 * New functions: :func:`get_new_ids`, :func:`at_addrs`. - Update to version 3.3.0 * New function: :func:`growth`. - Update to version 3.2.0 * New ``filter`` argument for :func:`typestats`, :func:`most_common_types`, :func:`show_most_common_types`, :func:`show_growth`. * Show lambda functions in a more human-friendly way. - Update to version 3.1.2 * Correct UTF-8 mojibake in the changelog and switch all links to HTTPS. - Update to version 3.1.1 * Add support for Python 3.6. * Replace bare ``except:`` in ``safe_repr()`` with ``except Exception:``. - Use %%license tag * Wed Apr 19 2017 toddrme2178@gmail.com - Update to version 3.1.0 * Support displaying graphs inline in IPython/Jupyter notebooks (`issue 28 `). - Update to version 3.0.1 * The ``file`` argument of :func:`show_most_common_types` and :func:`show_growth` now defaults to ``None`` instead of ``sys.stdout``. ``None`` is interpreted to be the same as ``sys.stdout``, which means the right stdout will be used if you change it at runtime (which happens, in doctests). - Update to version 3.0.0 * :func:`show_most_common_types` and :func:`show_growth` now accept a ``file`` argument if you want to redirect the output elsewhere. * Don't trust ``__class__`` to be accurate and ``__name__`` to be a string. Fixes errors in some convoluted corner cases when mocks are involved. * Drop support for Python 2.4, 2.5, and 2.6. * Drop support for Python 3.1 and 3.2. * Add support for Python 3.5. - Update to version 2.0.1 * Avoid creating reference cycles between the stack frame and the local ``objects`` variable in :func:`by_type`, :func:`count`, and :func:`typestats`. - Update to version 2.0.0 * :func:`show_refs` and :func:`show_backrefs` now accept a file-like object (via the new ``output`` argument) as an alternative to a filename. * Made internal helper methods private. This includes :func:`find_chain`, :func:`show_graph`, :func:`obj_node_id`, :func:`obj_label`, :func:`quote`, :func:`long_typename`, :func:`safe_repr`, :func:`short_repr`, :func:`gradient`, :func:`edge_label`, and :func:`_program_in_path`. * Correctly determine the name of old-style classes in :func:`count`, :func:`by_type`, and graph drawing functions. - Implement singlespec version. * Tue Sep 30 2014 toddrme2178@gmail.com - Fix building. * We don't actually need graphviz-python * We do need graphviz-gnome after all * Tue Sep 30 2014 toddrme2178@gmail.com - Initial version