Skip to content

Commit 60c4d4f

Browse files
authored
Merge pull request #81 from mgedmin/py313
Python 3.13 support
2 parents 41bc37f + 4b74017 commit 60c4d4f

File tree

8 files changed

+8
-10
lines changed

8 files changed

+8
-10
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
- "3.10"
2727
- "3.11"
2828
- "3.12"
29+
- "3.13"
2930

3031
steps:
3132
- name: Install OS dependencies

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Changes
66
3.6.2 (unreleased)
77
------------------
88

9-
- Nothing changed yet.
9+
- Add support for Python 3.13.
1010

1111

1212
3.6.1 (2024-02-26)

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ environment:
1010
- PYTHON: "C:\\Python310"
1111
- PYTHON: "C:\\Python311"
1212
- PYTHON: "C:\\Python312"
13+
- PYTHON: "C:\\Python313"
1314

1415
init:
1516
- "echo %PYTHON%"

objgraph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ def _edge_label(source, target, shortnames=True):
11851185
and target is getattr(source, '__dict__', None)):
11861186
return ' [label="__dict__",weight=10]'
11871187
if _isinstance(source, types.FrameType):
1188-
if target is source.f_locals:
1188+
if target is source.f_locals: # pragma: nocover
11891189
return ' [label="f_locals",weight=10]'
11901190
if target is source.f_globals:
11911191
return ' [label="f_globals",weight=10]'

release.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# release.mk version 2.2.2 (2024-10-09)
1+
# release.mk version 2.2.3 (2024-10-10)
22
#
33
# Helpful Makefile rules for releasing Python packages.
44
# https://github.com/mgedmin/python-project-skel
@@ -79,7 +79,7 @@ endif
7979

8080
.PHONY: distcheck-sdist
8181
distcheck-sdist: dist
82-
pkg_and_version=`$(PYTHON) setup.py --name|tr .- _`-`$(PYTHON) setup.py --version` && \
82+
pkg_and_version=`$(PYTHON) setup.py --name|tr A-Z.- a-z__`-`$(PYTHON) setup.py --version` && \
8383
rm -rf tmp && \
8484
mkdir tmp && \
8585
$(VCS_EXPORT) && \

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def build_images(doctests=()):
8282
'Programming Language :: Python :: 3.10',
8383
'Programming Language :: Python :: 3.11',
8484
'Programming Language :: Python :: 3.12',
85+
'Programming Language :: Python :: 3.13',
8586
],
8687
keywords='object graph visualization graphviz garbage collection',
8788
py_modules=['objgraph'],

tests.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -465,11 +465,6 @@ def test_gradient_empty(self):
465465
objgraph._gradient((0.1, 0.2, 0.3),
466466
(0.2, 0.3, 0.4), 0, 0))
467467

468-
def test_edge_label_frame_locals(self):
469-
frame = sys._getframe()
470-
self.assertEqual(' [label="f_locals",weight=10]',
471-
objgraph._edge_label(frame, frame.f_locals))
472-
473468
def test_edge_label_frame_globals(self):
474469
frame = sys._getframe()
475470
self.assertEqual(' [label="f_globals",weight=10]',

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py37, py38, py39, py310, py311, py312
2+
envlist = py37, py38, py39, py310, py311, py312, py313
33

44
[testenv]
55
deps =

0 commit comments

Comments
 (0)