Skip to content

Commit

Permalink
Update python compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jcushman committed Dec 2, 2024
1 parent 396a054 commit bf782d8
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 12 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.11", "3.10"]
python-version: ["3.13","3.12", "3.11"]

steps:
- uses: actions/checkout@v4
Expand All @@ -26,11 +26,5 @@ jobs:
with:
enable-cache: true

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install the project
run: uv sync --all-extras --dev

- name: Run tests
run: uv run pytest
run: uv run --python ${{ matrix.python-version }} --frozen pytest
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "nabit"
version = "0.1.0"
description = "Archive and sign datasets"
readme = "README.md"
requires-python = ">=3.12"
requires-python = ">=3.11"
dependencies = [
"click>=8.1.0",
"warcio>=1.7.4",
Expand Down
2 changes: 1 addition & 1 deletion src/nabit/lib/sign.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def validate_signatures(file_to_verify: Path, error=noop, warn=noop, success=noo
error(f"Signature verification failed: {e}", metadata={"file": signature_file})

# warn about all empty directories in bag_dir/data/
for dir in bag_dir.glob("data/**"):
for dir in bag_dir.glob("data/**/*/"):
if not any(dir.iterdir()):
warn(f"Cannot verify the validity of empty directories: {dir}", metadata={"dir": dir})

Expand Down
Loading

0 comments on commit bf782d8

Please sign in to comment.