diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a85fb66..f00bd2a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: test suite on: push: - branches: [master] + branches: [master, "asphalt5"] pull_request: jobs: @@ -11,7 +11,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - python-version: ["3.8", "3.10", "3.11", "3.12", "pypy-3.9"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "pypy-3.10"] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 @@ -22,9 +22,11 @@ jobs: cache: pip cache-dependency-path: pyproject.toml - name: Start external services - run: docker-compose up -d + run: docker compose up -d - name: Install dependencies - run: pip install -e .[test] + run: | + pip install git+https://github.com/asphalt-framework/asphalt.git@5.0 + pip install -e .[test] coverage - name: Test with pytest run: coverage run -m pytest -v - name: Generate coverage report diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 15c6963..2da49ab 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ # * Run "pre-commit install". repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-toml - id: check-yaml @@ -16,14 +16,14 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.8 + rev: v0.8.3 hooks: - id: ruff args: [--fix, --show-fixes] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.13.0 hooks: - id: mypy additional_dependencies: diff --git a/.readthedocs.yml b/.readthedocs.yml index 026b967..ac1099a 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -3,7 +3,7 @@ version: 2 build: os: ubuntu-22.04 tools: - python: "3.8" + python: "3.9" sphinx: configuration: docs/conf.py diff --git a/pyproject.toml b/pyproject.toml index d886966..23ac855 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,13 +19,13 @@ classifiers = [ "Topic :: Database", "Programming Language :: Python", "Programming Language :: Python :: 3", - "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", + "Programming Language :: Python :: 3.13", ] -requires-python = ">=3.8" +requires-python = ">=3.9" dependencies = [ "asphalt ~= 4.11", "SQLAlchemy[asyncio] >= 2.0", @@ -40,7 +40,6 @@ test = [ "aiosqlite", "anyio[trio] >= 4.2", "asyncmy; platform_python_implementation == 'CPython'", - "coverage >= 7", "pymysql", "psycopg >= 3.1; platform_python_implementation == 'CPython'", "pytest >= 7.4", @@ -80,7 +79,7 @@ addopts = "-rsx --tb=short" testpaths = ["tests"] [tool.mypy] -python_version = "3.8" +python_version = "3.9" strict = true explicit_package_bases = true @@ -95,7 +94,7 @@ show_missing = true [tool.tox] legacy_tox_ini = """ [tox] -envlist = py38, py39, py310, py311, py312, pypy3 +envlist = py39, py310, py311, py312, py313, pypy3 skip_missing_interpreters = true minversion = 4.0