Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No need for packaging #30

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
5 changes: 2 additions & 3 deletions magiclink/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
from django import get_version
from packaging import version
import django

"""
To stop waring:
RemovedInDjango41Warning: 'magiclink' defines
default_app_config = 'magiclink.apps.MagiclinkConfig'. Django now detects
this configuration automatically. You can remove default_app_config.
"""
if version.parse(get_version()) < version.parse('3.2'): # pragma: no cover
if django.VERSION < (3, 2): # pragma: no cover
default_app_config = 'magiclink.apps.MagiclinkConfig'
32 changes: 16 additions & 16 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ keywords = ["magic link", "authentication", "passwordless"]
[tool.poetry.dependencies]
python = "^3.6"
Django = ">=2.1"
packaging = ">=20.9,<22.0"

[tool.poetry.dev-dependencies]
flake8 = "^4.0.1"
Expand Down