Skip to content

Commit

Permalink
feat: support Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
P403n1x87 committed Sep 10, 2023
1 parent fe90184 commit 039689e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

name: Tests with Python ${{ matrix.python-version }} on Linux
steps:
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

name: Tests with Python ${{ matrix.python-version }} on MacOS
steps:
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

name: Tests with Python ${{ matrix.python-version }} on Windows
steps:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ raw samples by aggregation.

# Compatibility

The `austin-python` package is tested on Linux, macOS and Windows with Python
3.7-3.11.
The latest `austin-python` package is tested on Linux, macOS and Windows with
Python 3.8-3.12.


# Documentation
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

requires-python = ">=3.7"
requires-python = ">=3.8"
dependencies = [
"protobuf~=3.12",
"psutil>=5.7.0",
Expand Down Expand Up @@ -76,7 +76,7 @@ dependencies = [
tests = "pytest --cov=austin --cov-report=term-missing --cov-report=xml {args}"

[[tool.hatch.envs.tests.matrix]]
python = ["3.7", "3.8", "3.9", "3.10", "3.11"]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]

[tool.hatch.envs.checks]
python = "3.10"
Expand Down
7 changes: 5 additions & 2 deletions test/format/test_mojo.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@

import pytest

from austin.format.mojo import MojoFile, MojoFrame, MojoString, MojoStringReference
from austin.format.mojo import MojoFile
from austin.format.mojo import MojoFrame
from austin.format.mojo import MojoString
from austin.format.mojo import MojoStringReference
from austin.format.mojo import main
from austin.format.mojo import to_varint

Expand All @@ -53,7 +56,7 @@ def test_mojo_snapshot(case):

def test_mojo_varint():
for _ in range(100_000):
n = randint(-4e9, 4e9)
n = randint(int(-4e9), int(4e9))
buffer = BytesIO()
buffer.write(b"MOJ\0" + to_varint(n))
buffer.seek(0)
Expand Down

0 comments on commit 039689e

Please sign in to comment.