diff --git a/.github/workflows/screenshots.yml b/.github/workflows/screenshots.yml index a389e5ac..9c35912c 100644 --- a/.github/workflows/screenshots.yml +++ b/.github/workflows/screenshots.yml @@ -11,13 +11,13 @@ jobs: python-version: [3.9] # dockerfile uses 3.8 django-version: ['2.2', '3.2'] os: [ - ubuntu-20.04, + ubuntu-22.04, ] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5228a76a..d7b79952 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [ '3.8', '3.9', '3.10', '3.11'] + python-version: [ '3.9', '3.10', '3.11', '3.14'] requirements-file: [ django-2.2.txt, django-3.2.txt, @@ -16,28 +16,30 @@ jobs: django-5.0.txt, ] os: [ - ubuntu-20.04, + ubuntu-24.04, ] exclude: - - requirements-file: django-5.0.txt - python-version: 3.8 + - requirements-file: django-2.2.txt + python-version: '3.14' + - requirements-file: django-3.2.txt + python-version: '3.14' - requirements-file: django-5.0.txt python-version: 3.9 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r tests/requirements/${{ matrix.requirements-file }} - python setup.py install + pip install . - name: Run coverage - run: coverage run setup.py test + run: coverage run tests/settings.py - name: Upload Coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e3a66fa3..78bbd77b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: args: ["--py39-plus"] - repo: https://github.com/adamchainz/django-upgrade - rev: '1.32.0' + rev: '1.33.0' hooks: - id: django-upgrade args: [--target-version, "3.2"] @@ -39,7 +39,7 @@ repos: - id: codespell - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.16.6 # Use the desired Ruff version + rev: v0.16.10 # Use the desired Ruff version hooks: - id: ruff-check # For linting checks args: [--fix] # Optional: automatically fix fixable issues @@ -50,5 +50,4 @@ repos: hooks: - id: rstcheck additional_dependencies: - - sphinx==6.1.3 - - tomli==2.0.1 + - sphinx==8.2.3 diff --git a/setup.py b/setup.py index e0c7ec6e..bc21da3d 100644 --- a/setup.py +++ b/setup.py @@ -18,11 +18,12 @@ "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", - "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", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Framework :: Django", "Framework :: Django :: 2.2", "Framework :: Django :: 3.1", @@ -62,7 +63,7 @@ description="Adds pretty CSS styles for the django CMS admin interface.", long_description=long_description, packages=find_packages(exclude=["preview", "tests"]), - python_requires=">=3.7", + python_requires=">=3.9", include_package_data=True, zip_safe=False, install_requires=REQUIREMENTS,