Commit c84bedff authored by SVN-Git Migration's avatar SVN-Git Migration

Imported Upstream version 2.0.0

parent 48f4ff31
language: python
sudo: required
python:
- 2.6
- 2.7
......@@ -6,9 +7,10 @@ python:
- 3.3
- 3.4
install:
- sudo apt-get install graphviz
- pip install coverage coveralls
- pip install -e .
- sudo apt-get install graphviz || sudo apt-get update && sudo apt-get install graphviz
- pip install coverage coveralls flake8 -e .
before_script:
- make lint
script:
- coverage run --source=objgraph tests.py
after_success:
......
......@@ -3,6 +3,24 @@ Changes
.. currentmodule:: objgraph
2.0.0 (2015-04-18)
------------------
- :func:`show_ref` and :func:`show_backref` now accept a file-like object 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.
Fixes `issue 16 <https://github.com/mgedmin/objgraph/pull/16>`_. Contributed
by Mike Lambert.
1.8.1 (2014-05-15)
------------------
......
......@@ -10,10 +10,10 @@ VCS_COMMIT_AND_PUSH = git commit -av -m "Post-release version bump" && git push
SUPPORTED_PYTHON_VERSIONS = 2.4 2.5 2.6 2.7 3.1 3.2 3.3 3.4
SPHINXOPTS =
SPHINXBUILD = sphinx-build
BUILDDIR = docs/_build
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(SPHINXOPTS) docs/
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXBUILDDIR = docs/_build
ALLSPHINXOPTS = -d $(SPHINXBUILDDIR)/doctrees $(SPHINXOPTS) docs/
.PHONY: default
......@@ -26,13 +26,13 @@ images:
.PHONY: docs
docs:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(SPHINXBUILDDIR)/html
@echo
@echo "Now look at $(BUILDDIR)/html/index.html"
@echo "Now look at $(SPHINXBUILDDIR)/html/index.html"
.PHONY: clean
clean:
-rm -rf $(BUILDDIR)/*
-rm -rf $(SPHINXBUILDDIR)/* build
.PHONY: test check
test check:
......@@ -58,9 +58,15 @@ preview-pypi-description:
.PHONY: coverage
coverage:
PYTHONPATH=.:$$PYTHONPATH coverage run --source=objgraph tests.py
coverage run --source=objgraph tests.py
python3 -m coverage run -a --source=objgraph tests.py
coverage report
.PHONY: lint
lint:
flake8 --exclude=build,docs/conf.py --ignore=E226
flake8 --exclude=build,docs/conf.py --doctests --ignore=E226,F821
.PHONY: dist
dist:
$(PYTHON) setup.py sdist
......@@ -125,7 +131,7 @@ release: releasechecklist config-imgdiff
@echo
@echo "then either revert or commit the new images and run"
@echo
@echo " $(PYTHON) setup.py sdist register upload --unicode-description && $(VCS_TAG) `$(PYTHON) setup.py --version`"
@echo " rm -rf dist && $(PYTHON) setup.py sdist --unicode-description && twine upload dist/* && $(VCS_TAG) `$(PYTHON) setup.py --version`"
@echo " make publish-docs"
@echo
@echo "Please increment the version number in $(FILE_WITH_VERSION)"
......@@ -140,7 +146,7 @@ publish-docs:
echo "There's no ~/www/objgraph, do you have the website checked out?"; exit 1; }
make clean docs
cp -r docs/_build/html/* ~/www/objgraph/
svn add ~/www/objgraph/*.html ~/www/objgraph/_images/*.png ~/www/objgraph/_sources/* ~/www/objgraph/_static/* 2>/dev/null
-svn add ~/www/objgraph/*.html ~/www/objgraph/_images/*.png ~/www/objgraph/_sources/* ~/www/objgraph/_static/* 2>/dev/null
svn st ~/www/objgraph/
@echo
@echo "If everything looks fine, please run"
......
Metadata-Version: 1.1
Name: objgraph
Version: 1.8.1
Version: 2.0.0
Summary: Draws Python object reference graphs with graphviz
Home-page: http://mg.pov.lt/objgraph/
Author: Marius Gedminas
......@@ -9,10 +9,10 @@ License: MIT
Description: Python Object Graphs
====================
.. image:: https://travis-ci.org/mgedmin/objgraph.png?branch=master
.. image:: https://travis-ci.org/mgedmin/objgraph.svg?branch=master
:target: https://travis-ci.org/mgedmin/objgraph
.. image:: https://coveralls.io/repos/mgedmin/objgraph/badge.png?branch=master
.. image:: https://coveralls.io/repos/mgedmin/objgraph/badge.svg?branch=master
:target: https://coveralls.io/r/mgedmin/objgraph?branch=master
......@@ -64,8 +64,6 @@ Description: Python Object Graphs
Report bugs at https://github.com/mgedmin/objgraph/issues.
If you want to leave a tip, see https://www.gittip.com/mgedmin/
Changes
......@@ -73,6 +71,24 @@ Description: Python Object Graphs
2.0.0 (2015-04-18)
------------------
- `show_ref` and `show_backref` now accept a file-like object as an
alternative to a filename.
- Made internal helper methods private. This includes `find_chain`,
`show_graph`, `obj_node_id`, `obj_label`, `quote`,
`long_typename`, `safe_repr`, `short_repr`,
`gradient`, `edge_label`, and `_program_in_path`.
- Correctly determine the name of old-style classes in `count`,
`by_type`, and graph drawing functions.
Fixes `issue 16 <https://github.com/mgedmin/objgraph/pull/16>`_. Contributed
by Mike Lambert.
1.8.1 (2014-05-15)
------------------
......
Python Object Graphs
====================
.. image:: https://travis-ci.org/mgedmin/objgraph.png?branch=master
.. image:: https://travis-ci.org/mgedmin/objgraph.svg?branch=master
:target: https://travis-ci.org/mgedmin/objgraph
.. image:: https://coveralls.io/repos/mgedmin/objgraph/badge.png?branch=master
.. image:: https://coveralls.io/repos/mgedmin/objgraph/badge.svg?branch=master
:target: https://coveralls.io/r/mgedmin/objgraph?branch=master
......@@ -55,5 +55,3 @@ https://github.com/mgedmin/objgraph.
To check it out, use ``git clone https://github.com/mgedmin/objgraph``.
Report bugs at https://github.com/mgedmin/objgraph/issues.
If you want to leave a tip, see https://www.gittip.com/mgedmin/
docs/42.png

18.4 KB | W: | H:

docs/42.png

15.7 KB | W: | H:

docs/42.png
docs/42.png
docs/42.png
docs/42.png
  • 2-up
  • Swipe
  • Onion skin
This source diff could not be displayed because it is too large. You can view the blob instead.
docs/canary-chain.png

57.2 KB | W: | H:

docs/canary-chain.png

64.6 KB | W: | H:

docs/canary-chain.png
docs/canary-chain.png
docs/canary-chain.png
docs/canary-chain.png
  • 2-up
  • Swipe
  • Onion skin
docs/canary.png

101 KB | W: | H:

docs/canary.png

107 KB | W: | H:

docs/canary.png
docs/canary.png
docs/canary.png
docs/canary.png
  • 2-up
  • Swipe
  • Onion skin
docs/chain.png

63.4 KB | W: | H:

docs/chain.png

64.7 KB | W: | H:

docs/chain.png
docs/chain.png
docs/chain.png
docs/chain.png
  • 2-up
  • Swipe
  • Onion skin
docs/class-with-finalizers.png

8.94 KB | W: | H:

docs/class-with-finalizers.png

8.99 KB | W: | H:

docs/class-with-finalizers.png
docs/class-with-finalizers.png
docs/class-with-finalizers.png
docs/class-with-finalizers.png
  • 2-up
  • Swipe
  • Onion skin
docs/extra-info.png

18.1 KB | W: | H:

docs/extra-info.png

19.9 KB | W: | H:

docs/extra-info.png
docs/extra-info.png
docs/extra-info.png
docs/extra-info.png
  • 2-up
  • Swipe
  • Onion skin
docs/finalizers.png

26.9 KB | W: | H:

docs/finalizers.png

28.9 KB | W: | H:

docs/finalizers.png
docs/finalizers.png
docs/finalizers.png
docs/finalizers.png
  • 2-up
  • Swipe
  • Onion skin
docs/forward-chain.png

12.9 KB | W: | H:

docs/forward-chain.png

14.9 KB | W: | H:

docs/forward-chain.png
docs/forward-chain.png
docs/forward-chain.png
docs/forward-chain.png
  • 2-up
  • Swipe
  • Onion skin
docs/highlight.png

47.2 KB | W: | H:

docs/highlight.png

54.3 KB | W: | H:

docs/highlight.png
docs/highlight.png
docs/highlight.png
docs/highlight.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -24,6 +24,10 @@ You should see a graph like this:
.. figure:: sample-graph.png
:alt: [graph of objects reachable from y]
If you prefer to handle your own file output, you can provide a file object to
the ``output`` parameter of ``show_refs`` and ``show_backrefs`` instead of a
filename. The contents of this file will contain the graph source in DOT format.
Backreferences
--------------
......
docs/refcounts.png

23.3 KB | W: | H:

docs/refcounts.png

21.7 KB | W: | H:

docs/refcounts.png
docs/refcounts.png
docs/refcounts.png
docs/refcounts.png
  • 2-up
  • Swipe
  • Onion skin
docs/roots.png

112 KB | W: | H:

docs/roots.png

165 KB | W: | H:

docs/roots.png
docs/roots.png
docs/roots.png
docs/roots.png
  • 2-up
  • Swipe
  • Onion skin
docs/sample-backref-graph.png

33.9 KB | W: | H:

docs/sample-backref-graph.png

36.7 KB | W: | H:

docs/sample-backref-graph.png
docs/sample-backref-graph.png
docs/sample-backref-graph.png
docs/sample-backref-graph.png
  • 2-up
  • Swipe
  • Onion skin
docs/sample-graph.png

11.6 KB | W: | H:

docs/sample-graph.png

10.7 KB | W: | H:

docs/sample-graph.png
docs/sample-graph.png
docs/sample-graph.png
docs/sample-graph.png
  • 2-up
  • Swipe
  • Onion skin
docs/too-many.png

14.2 KB | W: | H:

docs/too-many.png

13.8 KB | W: | H:

docs/too-many.png
docs/too-many.png
docs/too-many.png
docs/too-many.png
  • 2-up
  • Swipe
  • Onion skin
Metadata-Version: 1.1
Name: objgraph
Version: 1.8.1
Version: 2.0.0
Summary: Draws Python object reference graphs with graphviz
Home-page: http://mg.pov.lt/objgraph/
Author: Marius Gedminas
......@@ -9,10 +9,10 @@ License: MIT
Description: Python Object Graphs
====================
.. image:: https://travis-ci.org/mgedmin/objgraph.png?branch=master
.. image:: https://travis-ci.org/mgedmin/objgraph.svg?branch=master
:target: https://travis-ci.org/mgedmin/objgraph
.. image:: https://coveralls.io/repos/mgedmin/objgraph/badge.png?branch=master
.. image:: https://coveralls.io/repos/mgedmin/objgraph/badge.svg?branch=master
:target: https://coveralls.io/r/mgedmin/objgraph?branch=master
......@@ -64,8 +64,6 @@ Description: Python Object Graphs
Report bugs at https://github.com/mgedmin/objgraph/issues.
If you want to leave a tip, see https://www.gittip.com/mgedmin/
Changes
......@@ -73,6 +71,24 @@ Description: Python Object Graphs
2.0.0 (2015-04-18)
------------------
- `show_ref` and `show_backref` now accept a file-like object as an
alternative to a filename.
- Made internal helper methods private. This includes `find_chain`,
`show_graph`, `obj_node_id`, `obj_label`, `quote`,
`long_typename`, `safe_repr`, `short_repr`,
`gradient`, `edge_label`, and `_program_in_path`.
- Correctly determine the name of old-style classes in `count`,
`by_type`, and graph drawing functions.
Fixes `issue 16 <https://github.com/mgedmin/objgraph/pull/16>`_. Contributed
by Mike Lambert.
1.8.1 (2014-05-15)
------------------
......
......@@ -7,6 +7,7 @@ MANIFEST.in
Makefile
README.rst
objgraph.py
setup.cfg
setup.py
tests.py
tox.ini
......
This diff is collapsed.
[flake8]
ignore = E226
[egg_info]
tag_build =
tag_date = 0
......
#!/usr/bin/python
import codecs, os, re, sys, unittest, doctest
import codecs
import doctest
import os
import re
import sys
import unittest
try:
from setuptools import setup
......@@ -29,7 +34,8 @@ def read(filename):
def unsphinx(text):
# remove Sphinx extensions used in CHANGES.rst from reStructuredText
# so that it can be handled by plain docutils
return text.replace(':func:', '').replace('.. currentmodule:: objgraph', '')
return (text.replace(':func:', '')
.replace('.. currentmodule:: objgraph', ''))
def get_version():
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment