Skip to content

Commit

Permalink
feat: add support for python/django versions
Browse files Browse the repository at this point in the history
  • Loading branch information
irtazaakram committed Sep 13, 2023
1 parent 9478f38 commit adc4068
Show file tree
Hide file tree
Showing 15 changed files with 743 additions and 872 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
python-version: [3.8, 3.9, "3.10", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install requirements
Expand Down
16 changes: 8 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ models.
Documentation can be found at `RTFD <http://django-crum.readthedocs.io/>`_.

It is tested against:
* Django 1.11 (Python 3.5 and 3.6)
* Django 2.0 (Python 3.5, 3.6 and 3.7)
* Django 2.1 (Python 3.5, 3.6 and 3.7)
* Django 2.2 (Python 3.5, 3.6, 3.7, 3.8 and 3.9)
* Django 3.0 (Python 3.6, 3.7, 3.8 and 3.9)
* Django 3.1 (Python 3.6, 3.7, 3.8 and 3.9)
* Django 3.2 pre-release (Python 3.6, 3.7, 3.8 and 3.9)
* Django main/4.0 (Python 3.8 and 3.9)
* Django 2.2 (Python 3.8 and 3.9)
* Django 3.0 (Python 3.8 and 3.9)
* Django 3.1 (Python 3.8 and 3.9)
* Django 3.2 (Python 3.8, 3.9 and 3.10)
* Django 4.0 (Python 3.8, 3.9 and 3.10)
* Django 4.1 (Python 3.8, 3.9, 3.10 and 3.11)
* Django 4.2 (Python 3.8, 3.9, 3.10 and 3.11)
* Django main (Python 3.10 and 3.11)

.. |Build Status| image:: https://img.shields.io/github/workflow/status/ninemoreminutes/django-crum/test
:target: https://github.com/ninemoreminutes/django-crum/actions?query=workflow%3Atest
Expand Down
2 changes: 1 addition & 1 deletion crum/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

_logger = logging.getLogger('crum')

__version__ = '0.7.9'
__version__ = '0.8.0'

__all__ = ['get_current_request', 'get_current_user', 'impersonate']

Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
# built documents.
#
# The short X.Y version.
version = '0.7.9'
version = '0.8.0'
# The full version, including alpha/beta/rc tags.
release = '0.7.9'
release = '0.8.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
16 changes: 8 additions & 8 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ user, which could be helpful when using custom authentication methods or user
models.

It is tested against:
* Django 1.11 (Python 3.5 and 3.6)
* Django 2.0 (Python 3.5, 3.6 and 3.7)
* Django 2.1 (Python 3.5, 3.6 and 3.7)
* Django 2.2 (Python 3.5, 3.6, 3.7, 3.8 and 3.9)
* Django 3.0 (Python 3.6, 3.7, 3.8 and 3.9)
* Django 3.1 (Python 3.6, 3.7, 3.8 and 3.9)
* Django 3.2 pre-release (Python 3.6, 3.7, 3.8 and 3.9)
* Django main/4.0 (Python 3.8 and 3.9)
* Django 2.2 (Python 3.8 and 3.9)
* Django 3.0 (Python 3.8 and 3.9)
* Django 3.1 (Python 3.8 and 3.9)
* Django 3.2 (Python 3.8, 3.9 and 3.10)
* Django 4.0 (Python 3.8, 3.9 and 3.10)
* Django 4.1 (Python 3.8, 3.9, 3.10 and 3.11)
* Django 4.2 (Python 3.8, 3.9, 3.10 and 3.11)
* Django main (Python 3.10 and 3.11)

Installation
------------
Expand Down
2 changes: 1 addition & 1 deletion requirements/dev.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Development/test environment uses Python 3.5 - 3.8 (separate requirements files generated for each).
# Development/test environment uses Python 3.8 - 3.11 (separate requirements files generated for each).

bumpversion
django
Expand Down
257 changes: 257 additions & 0 deletions requirements/dev310.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,257 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --output-file=requirements/dev310.txt requirements/dev.in
#
alabaster==0.7.13
# via sphinx
appnope==0.1.3
# via ipython
asgiref==3.7.2
# via django
asttokens==2.4.0
# via stack-data
babel==2.12.1
# via sphinx
backcall==0.2.0
# via ipython
build==1.0.3
# via pip-tools
bump2version==1.0.1
# via bumpversion
bumpversion==0.6.0
# via -r requirements/dev.in
cachetools==5.3.1
# via tox
certifi==2023.7.22
# via requests
chardet==5.2.0
# via tox
charset-normalizer==3.2.0
# via requests
click==8.1.7
# via pip-tools
colorama==0.4.6
# via tox
coverage[toml]==7.3.1
# via pytest-cov
decorator==5.1.1
# via ipython
distlib==0.3.7
# via virtualenv
django==4.2.5
# via
# -r requirements/dev.in
# django-debug-toolbar
# django-extensions
# djangorestframework
django-debug-toolbar==4.2.0
# via -r requirements/dev.in
django-extensions==3.2.3
# via -r requirements/dev.in
djangorestframework==3.14.0
# via -r requirements/dev.in
docutils==0.20.1
# via
# readme-renderer
# sphinx
exceptiongroup==1.1.3
# via
# ipython
# pytest
executing==1.2.0
# via stack-data
filelock==3.12.3
# via
# tox
# virtualenv
flake8==6.1.0
# via
# -r requirements/dev.in
# pytest-flake8
idna==3.4
# via requests
imagesize==1.4.1
# via sphinx
importlib-metadata==6.8.0
# via
# keyring
# twine
iniconfig==2.0.0
# via pytest
ipython==8.15.0
# via -r requirements/dev.in
jaraco-classes==3.3.0
# via keyring
jedi==0.19.0
# via ipython
jinja2==3.1.2
# via sphinx
keyring==24.2.0
# via twine
markdown-it-py==3.0.0
# via rich
markupsafe==2.1.3
# via jinja2
matplotlib-inline==0.1.6
# via ipython
mccabe==0.7.0
# via flake8
mdurl==0.1.2
# via markdown-it-py
more-itertools==10.1.0
# via jaraco-classes
nh3==0.2.14
# via readme-renderer
packaging==23.1
# via
# build
# pyproject-api
# pytest
# sphinx
# tox
parso==0.8.3
# via jedi
pexpect==4.8.0
# via ipython
pickleshare==0.7.5
# via ipython
pip-tools==7.3.0
# via -r requirements/dev.in
pkginfo==1.9.6
# via twine
platformdirs==3.10.0
# via
# tox
# virtualenv
pluggy==1.3.0
# via
# pytest
# tox
prompt-toolkit==3.0.39
# via ipython
ptyprocess==0.7.0
# via pexpect
pure-eval==0.2.2
# via stack-data
pycodestyle==2.11.0
# via
# -r requirements/dev.in
# flake8
pyflakes==3.1.0
# via flake8
pygments==2.16.1
# via
# ipython
# readme-renderer
# rich
# sphinx
pyproject-api==1.6.1
# via tox
pyproject-hooks==1.0.0
# via build
pytest==7.4.2
# via
# -r requirements/dev.in
# pytest-cov
# pytest-django
# pytest-flake8
pytest-cov==4.1.0
# via -r requirements/dev.in
pytest-django==4.5.2
# via -r requirements/dev.in
pytest-flake8==1.1.1
# via -r requirements/dev.in
pytest-runner==6.0.0
# via -r requirements/dev.in
pytz==2023.3.post1
# via djangorestframework
readme-renderer==42.0
# via twine
requests==2.31.0
# via
# requests-toolbelt
# sphinx
# twine
requests-toolbelt==1.0.0
# via twine
rfc3986==2.0.0
# via twine
rich==13.5.2
# via twine
setuptools-twine==0.1.3
# via -r requirements/dev.in
six==1.16.0
# via asttokens
snowballstemmer==2.2.0
# via sphinx
sphinx==7.2.5
# via
# -r requirements/dev.in
# sphinxcontrib-applehelp
# sphinxcontrib-devhelp
# sphinxcontrib-htmlhelp
# sphinxcontrib-qthelp
# sphinxcontrib-serializinghtml
sphinxcontrib-applehelp==1.0.7
# via sphinx
sphinxcontrib-devhelp==1.0.5
# via sphinx
sphinxcontrib-htmlhelp==2.0.4
# via sphinx
sphinxcontrib-jsmath==1.0.1
# via sphinx
sphinxcontrib-qthelp==1.0.6
# via sphinx
sphinxcontrib-serializinghtml==1.1.9
# via sphinx
sqlparse==0.4.4
# via
# django
# django-debug-toolbar
stack-data==0.6.2
# via ipython
tomli==2.0.1
# via
# build
# coverage
# pip-tools
# pyproject-api
# pyproject-hooks
# pytest
# tox
tox==4.11.3
# via
# -r requirements/dev.in
# tox-gh-actions
tox-gh-actions==3.1.3
# via -r requirements/dev.in
traitlets==5.9.0
# via
# ipython
# matplotlib-inline
twine==4.0.2
# via
# -r requirements/dev.in
# setuptools-twine
typing-extensions==4.7.1
# via
# asgiref
# filelock
urllib3==2.0.4
# via
# requests
# twine
virtualenv==20.24.5
# via tox
wcwidth==0.2.6
# via prompt-toolkit
wheel==0.41.2
# via pip-tools
zipp==3.16.2
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
# pip
# setuptools
Loading

0 comments on commit adc4068

Please sign in to comment.