Hello community,
here is the log from the commit of package python-objgraph for openSUSE:Factory
checked in at 2019-06-05 11:38:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-objgraph (Old)
and /work/SRC/openSUSE:Factory/.python-objgraph.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-objgraph"
Wed Jun 5 11:38:33 2019 rev:4 rq:707157 version:3.4.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-objgraph/python-objgraph.changes
2018-12-24 11:40:32.829497092 +0100
+++
/work/SRC/openSUSE:Factory/.python-objgraph.new.5148/python-objgraph.changes
2019-06-05 11:38:34.571082939 +0200
@@ -1,0 +2,7 @@
+Mon Jun 3 11:21:35 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 3.4.1:
+ * Add support for Python 3.7.
+ * Drop support for Python 3.3 and 3.4.
+
+-------------------------------------------------------------------
Old:
----
objgraph-3.4.0.tar.gz
New:
----
objgraph-3.4.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-objgraph.spec ++++++
--- /var/tmp/diff_new_pack.BRmGpr/_old 2019-06-05 11:38:35.443082828 +0200
+++ /var/tmp/diff_new_pack.BRmGpr/_new 2019-06-05 11:38:35.443082828 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-objgraph
#
-# 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
@@ -16,29 +16,27 @@
#
-%bcond_without tests
-
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define oldpython python
Name: python-objgraph
-Version: 3.4.0
+Version: 3.4.1
Release: 0
Summary: Python module to draw object reference graphs with graphviz
License: MIT
Group: Development/Languages/Python
-Url: http://mg.pov.lt/objgraph/
+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
-# Test requirements
-BuildRequires: %{python_module mock}
Requires: graphviz-gd
Requires: graphviz-gnome
Requires: python-graphviz
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
+Obsoletes: %{oldpython}-objgraph-doc
BuildArch: noarch
%python_subpackages
@@ -48,14 +46,6 @@
graphviz is needed if pretty graphs are desired.
xdot can be used 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}
@@ -64,22 +54,14 @@
%install
%python_install
-%python_expand %fdupes %{buildroot}%{$python_sitearch}
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
-%if %{with tests}
%check
%python_exec setup.py test
-%endif
%files %{python_files}
-%defattr(-,root,root,-)
-%doc README.rst
+%doc README.rst CHANGES.rst HACKING.rst
%license LICENSE
%{python_sitelib}/*
-%files -n python-objgraph-doc
-%defattr(-,root,root,-)
-%doc docs/
-%doc CHANGES.rst HACKING.rst
-
%changelog
++++++ objgraph-3.4.0.tar.gz -> objgraph-3.4.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/objgraph-3.4.0/.travis.yml
new/objgraph-3.4.1/.travis.yml
--- old/objgraph-3.4.0/.travis.yml 2017-01-20 10:22:05.000000000 +0100
+++ new/objgraph-3.4.1/.travis.yml 2019-04-23 19:07:10.000000000 +0200
@@ -1,15 +1,14 @@
language: python
-sudo: false
+dist: xenial
python:
- 2.7
- - 3.3
- - 3.4
- 3.5
- 3.6
+ - 3.7
addons:
- apt:
- packages:
- - graphviz
+ apt:
+ packages:
+ - graphviz
install:
- pip install coverage coveralls flake8 -e .
before_script:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/objgraph-3.4.0/CHANGES.rst
new/objgraph-3.4.1/CHANGES.rst
--- old/objgraph-3.4.0/CHANGES.rst 2018-02-13 16:15:47.000000000 +0100
+++ new/objgraph-3.4.1/CHANGES.rst 2019-04-23 19:32:17.000000000 +0200
@@ -3,6 +3,14 @@
.. currentmodule:: objgraph
+3.4.1 (2019-04-23)
+------------------
+
+- Add support for Python 3.7.
+
+- Drop support for Python 3.3 and 3.4.
+
+
3.4.0 (2018-02-13)
------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/objgraph-3.4.0/Makefile new/objgraph-3.4.1/Makefile
--- old/objgraph-3.4.0/Makefile 2018-02-13 16:17:56.000000000 +0100
+++ new/objgraph-3.4.1/Makefile 2019-04-23 19:33:06.000000000 +0200
@@ -5,8 +5,6 @@
VCS_DIFF_IMAGES = git diff docs/*.png
-SUPPORTED_PYTHON_VERSIONS = 2.7 3.3 3.4 3.5 3.6
-
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXBUILDDIR = docs/_build
@@ -40,16 +38,7 @@
.PHONY: test-all-pythons
test-all-pythons:
- set -e; \
- for ver in $(SUPPORTED_PYTHON_VERSIONS); do \
- if which python$$ver > /dev/null; then \
- $(MAKE) test PYTHON=python$$ver; \
- else \
- echo "=================================="; \
- echo "Skipping python$$ver, not available."; \
- echo "=================================="; \
- fi; \
- done
+ tox
.PHONY: preview-pypi-description
preview-pypi-description:
@@ -58,14 +47,13 @@
.PHONY: coverage
coverage:
- coverage run --source=objgraph tests.py
+ python2 -m coverage run --source=objgraph tests.py
python3 -m coverage run -a --source=objgraph tests.py
coverage report -m --fail-under=100
.PHONY: lint
lint:
- flake8 --exclude=build,docs/conf.py --ignore=E226
- flake8 --exclude=build,docs/conf.py --doctests --ignore=E226,F821
+ flake8
# Make sure $(VCS_DIFF_IMAGES) can work
.PHONY: config-imgdiff
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/objgraph-3.4.0/PKG-INFO new/objgraph-3.4.1/PKG-INFO
--- old/objgraph-3.4.0/PKG-INFO 2018-02-13 16:21:15.000000000 +0100
+++ new/objgraph-3.4.1/PKG-INFO 2019-04-23 19:35:25.000000000 +0200
@@ -1,12 +1,11 @@
Metadata-Version: 1.1
Name: objgraph
-Version: 3.4.0
+Version: 3.4.1
Summary: Draws Python object reference graphs with graphviz
Home-page: https://mg.pov.lt/objgraph/
Author: Marius Gedminas
Author-email: [email protected]
License: MIT
-Description-Content-Type: UNKNOWN
Description: Python Object Graphs
====================
@@ -82,6 +81,14 @@
+ 3.4.1 (2019-04-23)
+ ------------------
+
+ - Add support for Python 3.7.
+
+ - Drop support for Python 3.3 and 3.4.
+
+
3.4.0 (2018-02-13)
------------------
@@ -394,10 +401,7 @@
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
-Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
-Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.3
-Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/objgraph-3.4.0/appveyor.yml
new/objgraph-3.4.1/appveyor.yml
--- old/objgraph-3.4.0/appveyor.yml 2017-11-24 17:31:38.000000000 +0100
+++ new/objgraph-3.4.1/appveyor.yml 2019-04-23 19:07:11.000000000 +0200
@@ -5,10 +5,9 @@
# https://www.appveyor.com/docs/installed-software#python lists available
# versions
- PYTHON: "C:\\Python27"
- - PYTHON: "C:\\Python33"
- - PYTHON: "C:\\Python34"
- PYTHON: "C:\\Python35"
- PYTHON: "C:\\Python36"
+ - PYTHON: "C:\\Python37"
init:
- "echo %PYTHON%"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/objgraph-3.4.0/objgraph.egg-info/PKG-INFO
new/objgraph-3.4.1/objgraph.egg-info/PKG-INFO
--- old/objgraph-3.4.0/objgraph.egg-info/PKG-INFO 2018-02-13
16:21:15.000000000 +0100
+++ new/objgraph-3.4.1/objgraph.egg-info/PKG-INFO 2019-04-23
19:35:25.000000000 +0200
@@ -1,12 +1,11 @@
Metadata-Version: 1.1
Name: objgraph
-Version: 3.4.0
+Version: 3.4.1
Summary: Draws Python object reference graphs with graphviz
Home-page: https://mg.pov.lt/objgraph/
Author: Marius Gedminas
Author-email: [email protected]
License: MIT
-Description-Content-Type: UNKNOWN
Description: Python Object Graphs
====================
@@ -82,6 +81,14 @@
+ 3.4.1 (2019-04-23)
+ ------------------
+
+ - Add support for Python 3.7.
+
+ - Drop support for Python 3.3 and 3.4.
+
+
3.4.0 (2018-02-13)
------------------
@@ -394,10 +401,7 @@
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
-Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
-Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.3
-Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/objgraph-3.4.0/objgraph.py
new/objgraph-3.4.1/objgraph.py
--- old/objgraph-3.4.0/objgraph.py 2018-02-13 16:17:13.000000000 +0100
+++ new/objgraph-3.4.1/objgraph.py 2019-04-23 19:32:17.000000000 +0200
@@ -56,8 +56,8 @@
__author__ = "Marius Gedminas ([email protected])"
__copyright__ = "Copyright (c) 2008-2017 Marius Gedminas and contributors"
__license__ = "MIT"
-__version__ = '3.4.0'
-__date__ = '2018-02-13'
+__version__ = '3.4.1'
+__date__ = '2019-04-23'
try:
@@ -847,8 +847,10 @@
.. versionadded:: 1.8
"""
- return (inspect.ismodule(obj) and
- obj is sys.modules.get(getattr(obj, '__name__', None)))
+ return (
+ inspect.ismodule(obj)
+ and obj is sys.modules.get(getattr(obj, '__name__', None))
+ )
#
@@ -1171,8 +1173,8 @@
def _edge_label(source, target, shortnames=True):
- if (_isinstance(target, dict) and
- target is getattr(source, '__dict__', None)):
+ if (_isinstance(target, dict)
+ and target is getattr(source, '__dict__', None)):
return ' [label="__dict__",weight=10]'
if _isinstance(source, types.FrameType):
if target is source.f_locals:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/objgraph-3.4.0/release.mk
new/objgraph-3.4.1/release.mk
--- old/objgraph-3.4.0/release.mk 2017-12-28 11:13:20.000000000 +0100
+++ new/objgraph-3.4.1/release.mk 2019-04-23 19:32:17.000000000 +0200
@@ -1,4 +1,4 @@
-# Makefile.rules version 1.1 (2017-12-20)
+# release.mk version 1.4 (2019-04-23)
#
# Helpful Makefile rules for releasing Python packages.
# https://github.com/mgedmin/python-project-skel
@@ -8,10 +8,13 @@
FILE_WITH_CHANGELOG ?= CHANGES.rst
CHANGELOG_DATE_FORMAT ?= %Y-%m-%d
CHANGELOG_FORMAT ?= $(changelog_ver) ($(changelog_date))
+DISTCHECK_DIFF_OPTS ?= $(DISTCHECK_DIFF_DEFAULT_OPTS)
# These should be fine
PYTHON ?= python
-PYPI_PUBLISH ?= rm -rf dist && $(PYTHON) setup.py -q sdist bdist_wheel &&
twine upload dist/*
+PYPI_PUBLISH ?= rm -rf dist && $(PYTHON) setup.py -q sdist bdist_wheel &&
twine check dist/* && twine upload dist/*
+LATEST_RELEASE_MK_URL =
https://raw.githubusercontent.com/mgedmin/python-project-skel/master/release.mk
+DISTCHECK_DIFF_DEFAULT_OPTS = -x PKG-INFO -x setup.cfg -x '*.egg-info' -I'^\#'
# These should be fine, as long as you use Git
VCS_GET_LATEST ?= git pull
@@ -54,7 +57,7 @@
$(VCS_EXPORT) && \
cd tmp && \
tar -xzf ../dist/$$pkg_and_version.tar.gz && \
- diff -ur $$pkg_and_version tree -x PKG-INFO -x setup.cfg -x
'*.egg-info' && \
+ diff -ur $$pkg_and_version tree $(DISTCHECK_DIFF_OPTS) && \
cd $$pkg_and_version && \
make dist check && \
cd .. && \
@@ -64,13 +67,16 @@
cd ../two/ && \
tar -xzf ../$$pkg_and_version/dist/$$pkg_and_version.tar.gz && \
cd .. && \
- diff -ur one two -x SOURCES.txt && \
+ diff -ur one two -x SOURCES.txt -I'^#:' && \
cd .. && \
rm -rf tmp && \
echo "sdist seems to be ok"
-# NB: do not use $(MAKE) because then make -n releasechecklist will
-# actually run the distcheck instead of just printing what it does
+.PHONY: check-latest-rules
+check-latest-rules:
+ifndef FORCE
+ @curl -s $(LATEST_RELEASE_MK_URL) | cmp -s release.mk || { printf
"\nYour release.mk does not match the latest version
at\n$(LATEST_RELEASE_MK_URL)\n\n" 1>&2; exit 1; }
+endif
.PHONY: check-latest-version
check-latest-version:
@@ -91,8 +97,11 @@
grep -q "^$$ver_and_date$$" $(FILE_WITH_CHANGELOG) || { \
echo "$(FILE_WITH_CHANGELOG) has no entry for $$ver_and_date";
exit 1; }
+# NB: do not use $(MAKE) because then make -n releasechecklist will
+# actually run the distcheck instead of just printing what it does
+
.PHONY: releasechecklist
-releasechecklist: check-latest-version check-version-number
check-long-description check-changelog
+releasechecklist: check-latest-rules check-latest-version check-version-number
check-long-description check-changelog
make distcheck
.PHONY: release
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/objgraph-3.4.0/setup.cfg new/objgraph-3.4.1/setup.cfg
--- old/objgraph-3.4.0/setup.cfg 2018-02-13 16:21:15.000000000 +0100
+++ new/objgraph-3.4.1/setup.cfg 2019-04-23 19:35:25.000000000 +0200
@@ -1,5 +1,8 @@
[flake8]
-ignore = E226
+exclude = .tox,build,dist,docs/conf.py
+doctests = yes
+builtins = obj, obj1, obj2, MyClass
+ignore = E226,W503
[zest.releaser]
python-file-with-version = objgraph.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/objgraph-3.4.0/setup.py new/objgraph-3.4.1/setup.py
--- old/objgraph-3.4.0/setup.py 2017-12-20 10:04:47.000000000 +0100
+++ new/objgraph-3.4.1/setup.py 2019-04-23 19:07:06.000000000 +0200
@@ -72,13 +72,10 @@
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
- 'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
- 'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.3',
- 'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
+ 'Programming Language :: Python :: 3.7',
],
keywords='object graph visualization graphviz garbage collection',
py_modules=['objgraph'],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/objgraph-3.4.0/tests.py new/objgraph-3.4.1/tests.py
--- old/objgraph-3.4.0/tests.py 2018-02-13 16:11:25.000000000 +0100
+++ new/objgraph-3.4.1/tests.py 2019-04-23 19:32:17.000000000 +0200
@@ -12,11 +12,11 @@
import types
import unittest
-# distutils imports `imp`, which triggers a DeprecationWarning starting with
+# setuptools imports `imp`, which triggers a DeprecationWarning starting with
# Python 3.4 in the middle of my pristine test suite. But if I do the import
# upfront, there's no warning. I cannot explain this, I'm just happy there's
# no warning.
-import distutils # noqa
+import setuptools # noqa
try:
from unittest import mock
@@ -409,7 +409,7 @@
self.assertRegex(
objgraph._obj_label(x, shortnames=False),
- 'mymodule\.MyClass\\\\n<mymodule\.MyClass object at .*')
+ r'mymodule\.MyClass\\n<mymodule\.MyClass object at .*')
def test_long_typename_with_no_module(self):
x = type('MyClass', (), {'__module__': None})()
@@ -478,8 +478,6 @@
(0.2, 0.3, 0.4), 0, 0))
@skipIf(sys.version_info[0] > 2, "Python 3 has no unbound methods")
- @skipIf(sys.version_info[:2] < (2, 6),
- "Python 2.5 and older has no __func__")
def test_edge_label_unbound_method(self):
class MyClass(object):
def a_method(self):
@@ -494,7 +492,7 @@
self.assertRegex(
objgraph._edge_label(d, 1, shortnames=False),
- ' [label="mymodule\.MyClass\\n<mymodule\.MyClass object at .*"]')
+ r' [label="mymodule\.MyClass\n<mymodule\.MyClass object at .*"]')
def test_short_repr_lambda(self):
f = lambda x: x # noqa
@@ -618,7 +616,7 @@
class IgnoreNodeCountChecker(RandomOutputChecker):
- _r = re.compile('\(\d+ nodes\)$', re.MULTILINE)
+ _r = re.compile(r'\(\d+ nodes\)$', re.MULTILINE)
def check_output(self, want, got, optionflags):
if optionflags & NODES_VARY:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/objgraph-3.4.0/tox.ini new/objgraph-3.4.1/tox.ini
--- old/objgraph-3.4.0/tox.ini 2017-01-02 12:14:26.000000000 +0100
+++ new/objgraph-3.4.1/tox.ini 2019-04-23 19:07:08.000000000 +0200
@@ -1,5 +1,5 @@
[tox]
-envlist = py27, py33, py34, py35, py36
+envlist = py27, py35, py36, py37
[testenv]
deps = mock