Skip to content

Commit

Permalink
support for Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry committed Feb 14, 2024
1 parent ee8e2ca commit 00518de
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-latest, macos-latest]
pyv: ['3.8', '3.9', '3.10', '3.11']
pyv: ['3.8', '3.9', '3.10', '3.11', '3.12']
include:
- {os: ubuntu-latest, pyv: 'pypy3.8'}
- {os: macos-14, pyv: '3.11'}
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
nox.options.sessions = "lint", "tests"


@nox.session(python=["3.8", "3.9", "3.10", "3.11", "pypy3.8", "pypy3.9"])
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.8", "pypy3.9"])
def tests(session: nox.Session) -> None:
session.install(".[tests,cli]")
session.run(
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Development Status :: 4 - Beta",
]
requires-python = ">=3.8"
Expand Down Expand Up @@ -51,7 +52,7 @@ tests = [
"pytest-cov>=4.1.0",
"pytest-mock",
"pytest-benchmark>=4",
"pytest-servers[s3]==0.1.3",
"pytest-servers[s3]==0.5.0",
]
dev = [
"dvc-data[all]",
Expand Down
4 changes: 1 addition & 3 deletions tests/hashfile/test_istextfile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import os

import pytest

from dvc_data.hashfile.istextfile import istextblock, istextfile
Expand Down Expand Up @@ -30,4 +28,4 @@ def test_istextblock(block, expected):
def test_istextfile(tmp_upath, block, expected):
path = tmp_upath / "file"
path.write_bytes(block)
assert istextfile(os.fspath(path), path.fs) is expected
assert istextfile(path.path, path.fs) is expected

0 comments on commit 00518de

Please sign in to comment.