diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index cc276f03..6cdb1c12 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -12,9 +12,9 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: 3.12 + python-version: 3.13 - name: Install dependencies run: | python -m pip install --upgrade pip @@ -29,9 +29,9 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: 3.12 + python-version: 3.13 - name: Install dependencies run: | python -m pip install --upgrade pip @@ -43,7 +43,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index db269347..45dce9c3 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Some of it's standout features: ## Local Demo -To run a demo locally, using Python 3.8 or above: +To run a demo locally, using Python 3.9 or above: ```bash pip install piccolo_admin diff --git a/piccolo_admin/endpoints.py b/piccolo_admin/endpoints.py index 6405a070..49549da4 100644 --- a/piccolo_admin/endpoints.py +++ b/piccolo_admin/endpoints.py @@ -832,7 +832,7 @@ def __init__( admin_only=True, increase_expiry=increase_expiry, ), - on_error=handle_auth_exception, + on_error=handle_auth_exception, # type: ignore ) self.mount(path="/api", app=auth_middleware(private_app)) diff --git a/requirements/dev-requirements.txt b/requirements/dev-requirements.txt index 27f650b7..f5661ced 100644 --- a/requirements/dev-requirements.txt +++ b/requirements/dev-requirements.txt @@ -1,8 +1,8 @@ -black==24.8.0 -isort==5.13.2 -twine==5.0.0 -mypy==1.8.0 +black==25.1.0 +isort==6.0.1 +twine==6.1.0 +mypy==1.16.0 pip-upgrader==1.4.15 -wheel==0.42.0 -python-dotenv==1.0.1 -setuptools==75.1.0 +wheel==0.46.1 +python-dotenv==1.1.0 +setuptools==80.9.0 diff --git a/requirements/test-requirements.txt b/requirements/test-requirements.txt index d63cc378..f287e711 100644 --- a/requirements/test-requirements.txt +++ b/requirements/test-requirements.txt @@ -1,8 +1,8 @@ -pytest==8.0.1 -pytest-cov==4.1.0 -flake8==7.0.0 +pytest==8.4.0 +pytest-cov==6.1.1 +flake8==7.2.0 piccolo[postgres,sqlite]>=1.16.0 -playwright==1.41.2 -pytest-playwright==0.4.4 +playwright==1.52.0 +pytest-playwright==0.7.0 httpx==0.28.1 fastapi==0.115.6 diff --git a/setup.py b/setup.py index 69ef0e4b..08e59401 100644 --- a/setup.py +++ b/setup.py @@ -68,7 +68,7 @@ def get_version(): long_description_content_type="text/markdown", author="Daniel Townsend", author_email="dan@dantownsend.co.uk", - python_requires=">=3.8.0", + python_requires=">=3.9.0", url="https://github.com/piccolo-orm/piccolo_admin", packages=find_packages(exclude=("tests",)), install_requires=REQUIREMENTS, @@ -82,11 +82,11 @@ def get_version(): "License :: OSI Approved :: MIT License", "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", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Database :: Front-Ends", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: Content Management System", # noqa: E501