-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0.8.0 - add support for django 5.1 (#76)
public * add support for Django 5.1 * drop support for Django 3.2 * introduce `DJANGO_CURRENTUSER_USE_UNSUPPORTED_DJANGO` environment variable to make upgrades easier internal * use pyproject's `dynamic` feature for version & description * specify dependencies in `setup.py` so we can have dynamic version depdencies
- Loading branch information
Showing
5 changed files
with
37 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.7.0' | ||
__version__ = '0.8.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,14 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "django-currentuser" | ||
version = "0.7.0" | ||
dynamic = ["version", "readme", "dependencies"] | ||
authors = [ | ||
{ name="Peter Zsoldos", email="[email protected]" }, | ||
] | ||
maintainers = [ | ||
{ name="Peter Zsoldos", email="[email protected]" }, | ||
] | ||
description = "Conveniently store reference to request user on thread/db level." | ||
readme = "README.rst" | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
'Development Status :: 4 - Beta', | ||
|
@@ -29,12 +28,9 @@ classifiers = [ | |
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
'Framework :: Django', | ||
'Framework :: Django :: 3.2', | ||
'Framework :: Django :: 4.2', | ||
'Framework :: Django :: 5.0', | ||
] | ||
dependencies = [ | ||
'Django>=3.2, < 5.1, !=4.0, !=4.1' | ||
'Framework :: Django :: 5.1', | ||
] | ||
|
||
[project.urls] | ||
|
@@ -44,3 +40,6 @@ dependencies = [ | |
[tool.setuptools] | ||
packages = ["django_currentuser"] | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "django_currentuser.__version__"} | ||
readme = {file = ["README.rst"]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
from setuptools import setup | ||
import os | ||
|
||
use_unsupported_django = os.environ.get('DJANGO_CURRENTUSER_USE_UNSUPPORTED_DJANGO', '0') == '1' | ||
|
||
dependencies = ['Django'] if use_unsupported_django else ["Django>=4.2, < 5.2"] | ||
|
||
|
||
if __name__ == "__main__": | ||
setup() | ||
setup(install_requires=dependencies) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters