Skip to content

Commit

Permalink
Merge pull request #81 from mgedmin/py313
Browse files Browse the repository at this point in the history
Python 3.13 support
  • Loading branch information
mgedmin authored Oct 10, 2024
2 parents 41bc37f + 4b74017 commit 60c4d4f
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 10 deletions.
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

0 comments on commit 60c4d4f

Please sign in to comment.