Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Tests

on:
push:
branches: [main, master]
pull_request:

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
django-version: ['4.2']
name: Python ${{ matrix.python-version }} / Django ${{ matrix.django-version }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install "django==${{ matrix.django-version }}.*"
pip install .
- name: Run tests
run: python runtests.py
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ INSTALLED_APPS = (
Include the argcache URLconf in your project urls.py:

```
url(r'^cache/', include('argcache.urls')),
from django.urls import include, re_path

re_path(r'^cache/', include('argcache.urls')),
```

If your apps define any cached functions that aren't automatically
Expand Down
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,20 @@
},
include_package_data=True,
install_requires=[
'django>=3.0',
'django>=4.2,<5.0',
],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 4.2',
'Intended Audience :: Developers',
'License :: OSI Approved :: License :: OSI Approved :: GNU Affero General Public License v3',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: OS Independent',
'Programming Language :: Python',
'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',
],
)
2 changes: 1 addition & 1 deletion src/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
### table_dirty = Signal()

""" Emitted when a cache is deleted. """
cache_deleted = Signal(providing_args=['key_set'])
cache_deleted = Signal()
2 changes: 2 additions & 0 deletions tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
]

DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
Loading