Skip to content

Commit b1a9de3

Browse files
authored
chore(ci): test Python 3.13 and 3.14 (#598)
* chore(ci): test Python 3.13 and 3.14 * fixes
1 parent 520b798 commit b1a9de3

File tree

4 files changed

+1262
-909
lines changed

4 files changed

+1262
-909
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
os: [macos-13, ubuntu-latest, windows-latest]
20-
pyversion: ['3.9', '3.10', '3.11', '3.12']
19+
os: [macos-latest, ubuntu-latest, windows-latest]
20+
pyversion: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
2121
extras: [pyside6-full, manimgl]
22-
exclude:
23-
- pyversion: '3.12'
24-
extras: manimgl
22+
# exclude:
23+
# - pyversion: '3.12'
24+
# extras: manimgl
2525
runs-on: ${{ matrix.os }}
2626
steps:
2727
- name: Checkout repository
@@ -60,7 +60,7 @@ jobs:
6060
fail-fast: false
6161
matrix:
6262
os: [macos-latest, ubuntu-latest, windows-latest]
63-
pyversion: ['3.9', '3.10', '3.11', '3.12']
63+
pyversion: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
6464
runs-on: ${{ matrix.os }}
6565
env:
6666
QT_QPA_PLATFORM: offscreen
@@ -112,7 +112,7 @@ jobs:
112112
uses: actions/checkout@v4
113113

114114
- name: Check links
115-
uses: gaurav-nelson/github-action-markdown-link-check@v1
115+
uses: tcort/github-action-markdown-link-check@v1
116116
with:
117117
use-quiet-mode: yes
118118
use-verbose-mode: yes

manim_slides/utils.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ def reverse_video_file_in_one_chunk(src_and_dest: tuple[Path, Path]) -> None:
144144

145145
for _ in range(frames_count):
146146
frame = graph.pull()
147-
frame.pict_type = "NONE" # Otherwise we get a warning saying it is changed
147+
frame.pict_type = (
148+
av.video.frame.PictureType.NONE
149+
) # Otherwise we get a warning saying it is changed
148150
output_container.mux(output_stream.encode(frame))
149151

150152
for packet in output_stream.encode():
@@ -182,8 +184,12 @@ def reverse_video_file(
182184
format="segment",
183185
options={"segment_time": str(max_segment_duration)},
184186
) as output_container:
185-
output_stream = output_container.add_stream(
186-
template=input_stream,
187+
output_stream = (
188+
output_container.add_stream_from_template(input_stream)
189+
if AV_VERSION_14
190+
else output_container.add_stream(
191+
template=input_stream,
192+
)
187193
)
188194

189195
for packet in input_container.demux(input_stream):

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ classifiers = [
4242
"Programming Language :: Python :: 3.10",
4343
"Programming Language :: Python :: 3.11",
4444
"Programming Language :: Python :: 3.12",
45+
"Programming Language :: Python :: 3.13",
46+
"Programming Language :: Python :: 3.14",
4547
"License :: OSI Approved :: MIT License",
4648
"Operating System :: OS Independent",
4749
"Topic :: Multimedia :: Video",

0 commit comments

Comments
 (0)