Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8.x'
python-version: '3.10.x'
- name: Install Poetry
uses: abatilo/actions-poetry@v2.3.0
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "pymp4"
version = "1.4.0"
version = "1.5.0"
description = "Python parser for MP4 boxes"
authors = ["beardypig <git@beardypig.com>"]
license = "Apache-2.0"
Expand All @@ -23,7 +23,7 @@ classifiers = [
]

[tool.poetry.dependencies]
python = ">=3.7,<4.0"
python = ">=3.10,<4.0"
construct = "2.8.8"

[tool.poetry.group.dev.dependencies]
Expand Down
4 changes: 4 additions & 0 deletions src/pymp4/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
import collections
import collections.abc

if not hasattr(collections, "Sequence"):
collections.Sequence = collections.abc.Sequence
1 change: 0 additions & 1 deletion src/pymp4/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
from __future__ import print_function
import io
import logging
import argparse
Expand Down
4 changes: 2 additions & 2 deletions src/pymp4/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class PrefixedIncludingSize(Subconstruct):
__slots__ = ["name", "lengthfield", "subcon"]

def __init__(self, lengthfield, subcon):
super(PrefixedIncludingSize, self).__init__(subcon)
super().__init__(subcon)
self.lengthfield = lengthfield

def _parse(self, stream, context, path):
Expand Down Expand Up @@ -799,7 +799,7 @@ def _encode(self, obj, context):

class TellMinusSizeOf(Subconstruct):
def __init__(self, subcon):
super(TellMinusSizeOf, self).__init__(subcon)
super().__init__(subcon)
self.flagbuildnone = True

def _parse(self, stream, context, path):
Expand Down
2 changes: 1 addition & 1 deletion src/pymp4/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
log = logging.getLogger(__name__)


class BoxUtil(object):
class BoxUtil:
@classmethod
def first(cls, box, type_):
if box.type == type_:
Expand Down