Sync from SUSE:SLFO:Main python-objgraph revision b716ec989695db90383cc9205e858e30

This commit is contained in:
Adrian Schröter 2024-05-03 21:42:03 +02:00
commit 776bd15d72
4 changed files with 203 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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

BIN
objgraph-3.5.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

110
python-objgraph.changes Normal file
View File

@ -0,0 +1,110 @@
-------------------------------------------------------------------
Fri Apr 21 12:28:40 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Thu Apr 13 22:42:45 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Make calling of %{sle15modernpython} optional.
-------------------------------------------------------------------
Mon May 31 11:01:37 UTC 2021 - pgajdos@suse.com
- version update to 3.5.0
- Do not require ``mock`` for the test suite on Python 3; use unittest.mock
instead.
- 100% test coverage for each version of Python rather than combined, using
``coverage-python-version``.
- Add the optional ``extra_node_attrs`` parameter to ``show_backrefs`` and
``show_backrefs``
- Fix IPython/Jupyter inline graph support code that would kick in even if you
explicitly passed a filename='foo.png' argument to
``show_refs``/``show_backrefs``. See `issue 47
<https://github.com/mgedmin/objgraph/issues/47>`_.
- Add support for Python 3.8.
- Drop support for Python 3.5.
- %check: use %pytest rpm macro
-------------------------------------------------------------------
Mon Jun 3 11:21:35 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 3.4.1:
* Add support for Python 3.7.
* Drop support for Python 3.3 and 3.4.
-------------------------------------------------------------------
Tue Dec 4 12:50:59 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Thu Jun 7 20:27:33 UTC 2018 - jengelh@inai.de
- Use noun phrase in summary. Replace 1st and 2nd person wording.
-------------------------------------------------------------------
Thu May 3 14:30:39 UTC 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 16:16:46 UTC 2017 - toddrme2178@gmail.com
- Update to version 3.1.0
* Support displaying graphs inline in IPython/Jupyter notebooks (`issue 28
<https://github.com/mgedmin/objgraph/pull/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 11:59:33 UTC 2014 - toddrme2178@gmail.com
- Fix building.
* We don't actually need graphviz-python
* We do need graphviz-gnome after all
-------------------------------------------------------------------
Tue Sep 30 10:47:41 UTC 2014 - toddrme2178@gmail.com
- Initial version

67
python-objgraph.spec Normal file
View File

@ -0,0 +1,67 @@
#
# spec file for package python-objgraph
#
# Copyright (c) 2023 SUSE LLC
#
# 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
%{?sle15_python_module_pythons}
Name: python-objgraph
Version: 3.5.0
Release: 0
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 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
%pyunittest discover -v
%files %{python_files}
%doc README.rst CHANGES.rst HACKING.rst
%license LICENSE
%{python_sitelib}/*
%changelog