commit eda208641c72af90179c3eef7ace336b2193f93a3dc90be866a140285fb93e95 Author: Todd R Date: Thu May 3 06:13:12 2018 +0000 Accepting request 603488 from devel:languages:python:misc Needed by python-dill OBS-URL: https://build.opensuse.org/request/show/603488 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-objgraph?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/objgraph-3.1.0.tar.gz b/objgraph-3.1.0.tar.gz new file mode 100644 index 0000000..c3ca13a --- /dev/null +++ b/objgraph-3.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99b3a39e8bb7a3530324ba50f65415448cf5279d8c67c0556a0bdf3c8f7c6510 +size 629772 diff --git a/python-objgraph.changes b/python-objgraph.changes new file mode 100644 index 0000000..279c733 --- /dev/null +++ b/python-objgraph.changes @@ -0,0 +1,47 @@ +------------------------------------------------------------------- +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 + `). +- 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 + diff --git a/python-objgraph.spec b/python-objgraph.spec new file mode 100644 index 0000000..855d663 --- /dev/null +++ b/python-objgraph.spec @@ -0,0 +1,86 @@ +# +# spec file for package python-objgraph +# +# Copyright (c) 2017 SUSE LINUX Products 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 http://bugs.opensuse.org/ +# + + +%bcond_without tests + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-objgraph +Version: 3.1.0 +Release: 0 +Summary: Draws Python 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: graphviz-gd +BuildRequires: graphviz-gnome +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module graphviz} +# Test requirements +BuildRequires: %{python_module mock} +Requires: graphviz-gd +Requires: graphviz-gnome +Requires: python-graphviz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +%python_subpackages + +%description +objgraph is a module that lets you visually explore Python object graphs. + +You'll need graphviz if you want to draw the pretty graphs. + +I recommend xdot for interactive use. + +%package -n python-objgraph-doc +Summary: Documentation for %{name} +Group: Development/Languages/Python +Provides: %{python_module objgraph-doc = %{version}} + +%description -n python-objgraph-doc +Documentation and help files for %{name} + +%prep +%setup -q -n objgraph-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%if %{with tests} +%check +%python_exec setup.py test +%endif + +%files %{python_files} +%defattr(-,root,root,-) +%doc README.rst +%{python_sitelib}/* + +%files -n python-objgraph-doc +%defattr(-,root,root,-) +%doc docs/ +%doc CHANGES.rst HACKING.rst + +%changelog