diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05840ac..0320cf5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,8 +3,7 @@ on: branches: - master pull_request: - schedule: - - cron: '30 3 * * 2' + workflow_dispatch: name: CI @@ -15,19 +14,21 @@ jobs: strategy: matrix: python: - - '3.5' - - '3.6' - - '3.7' - - 'pypy3' + - '3.9' + - '3.10' + - '3.11' + - '3.12' + - '3.13' + - 'pypy3.10' django: - - '1.11' - - '2.2' - - '3.0' + - '4.2' + - '5.0' + - '5.1' name: Python ${{ matrix.python }} / Django ${{ matrix.django }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup python ${{ matrix.python }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} - name: Setup django ${{ matrix.django }} @@ -39,7 +40,7 @@ jobs: runs-on: ubuntu-latest name: Check code formatting steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Black Code Formatter uses: lgeiger/black-action@master with: diff --git a/.gitignore b/.gitignore index 6d18ee4..df77a8a 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /*.egg-info/ /.tox/ /.coverage +/.env/ \ No newline at end of file diff --git a/README.rst b/README.rst index a560a7a..b0ea986 100644 --- a/README.rst +++ b/README.rst @@ -2,13 +2,13 @@ django-mathfilters ################## -.. image:: https://github.com/dbrgn/django-mathfilters/workflows/CI/badge.svg +.. image:: https://github.com/dbrgn/django-mathfilters/actions/workflows/ci.yml/badge.svg :alt: Build status - :target: https://github.com/dbrgn/django-mathfilters/actions?query=branch%3Amaster + :target: https://github.com/dbrgn/django-mathfilters/actions/workflows/ci.yml -.. image:: https://pypip.in/d/django-mathfilters/badge.png - :alt: PyPI download stats - :target: https://crate.io/packages/django-mathfilters +.. image:: https://badge.fury.io/py/django-mathfilters.svg + :alt: PyPI badge + :target: https://pypi.org/project/django-mathfilters/ django-mathfilters is a Python 3 module that provides different simple math @@ -80,10 +80,11 @@ provides the following filters: Version Support =============== -This module officially supports Python 3.5+ as well as PyPy3. Support for Python -3.3 and 3.4 is provided on best-effort basis, but there are no CI tests for it. +This module officially supports Python 3.9+ as well as PyPy3. -Supported Django versions are 1.11+, 2.x and 3.x. +Supported Django versions are 4.2, 5.0 and 5.1. + +Support for older versions of both is possible however there are no CI tests for them. Development @@ -96,4 +97,4 @@ auto-formatting. Adherence to the rules is enforced in CI. License ======= -`MIT License `_, see LICENSE file. +`MIT License `_, see LICENSE file. diff --git a/pyproject.toml b/pyproject.toml index 929821d..06bdfa9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,3 @@ [tool.black] -target-version = ['py33'] +target-version = ['py39'] skip-string-normalization = true diff --git a/setup.py b/setup.py index 7e7ed90..e3a6c40 100644 --- a/setup.py +++ b/setup.py @@ -21,11 +21,11 @@ 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', + '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', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Internet :: WWW/HTTP',