Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.13 support #81

Merged
merged 3 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- "3.10"
- "3.11"
- "3.12"
- "3.13"

steps:
- name: Install OS dependencies
Expand Down
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Changes
3.6.2 (unreleased)
------------------

- Nothing changed yet.
- Add support for Python 3.13.


3.6.1 (2024-02-26)
Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ environment:
- PYTHON: "C:\\Python310"
- PYTHON: "C:\\Python311"
- PYTHON: "C:\\Python312"
- PYTHON: "C:\\Python313"

init:
- "echo %PYTHON%"
Expand Down
2 changes: 1 addition & 1 deletion objgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ def _edge_label(source, target, shortnames=True):
and target is getattr(source, '__dict__', None)):
return ' [label="__dict__",weight=10]'
if _isinstance(source, types.FrameType):
if target is source.f_locals:
if target is source.f_locals: # pragma: nocover
return ' [label="f_locals",weight=10]'
if target is source.f_globals:
return ' [label="f_globals",weight=10]'
Expand Down
4 changes: 2 additions & 2 deletions release.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# release.mk version 2.2.2 (2024-10-09)
# release.mk version 2.2.3 (2024-10-10)
#
# Helpful Makefile rules for releasing Python packages.
# https://github.com/mgedmin/python-project-skel
Expand Down Expand Up @@ -79,7 +79,7 @@ endif

.PHONY: distcheck-sdist
distcheck-sdist: dist
pkg_and_version=`$(PYTHON) setup.py --name|tr .- _`-`$(PYTHON) setup.py --version` && \
pkg_and_version=`$(PYTHON) setup.py --name|tr A-Z.- a-z__`-`$(PYTHON) setup.py --version` && \
rm -rf tmp && \
mkdir tmp && \
$(VCS_EXPORT) && \
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def build_images(doctests=()):
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
],
keywords='object graph visualization graphviz garbage collection',
py_modules=['objgraph'],
Expand Down
5 changes: 0 additions & 5 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,11 +465,6 @@ def test_gradient_empty(self):
objgraph._gradient((0.1, 0.2, 0.3),
(0.2, 0.3, 0.4), 0, 0))

def test_edge_label_frame_locals(self):
frame = sys._getframe()
self.assertEqual(' [label="f_locals",weight=10]',
objgraph._edge_label(frame, frame.f_locals))

def test_edge_label_frame_globals(self):
frame = sys._getframe()
self.assertEqual(' [label="f_globals",weight=10]',
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py37, py38, py39, py310, py311, py312
envlist = py37, py38, py39, py310, py311, py312, py313

[testenv]
deps =
Expand Down