-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'lazybird:master' into add-id-translations
- Loading branch information
Showing
21 changed files
with
313 additions
and
229 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 |
---|---|---|
|
@@ -6,5 +6,6 @@ __pycache__ | |
venv | ||
dist | ||
files | ||
.mypy_cache | ||
|
||
.DS_STORE |
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,5 +1,6 @@ | ||
include *.md | ||
include LICENSE | ||
include CHANGES | ||
include solo/py.typed | ||
recursive-include solo/templates * | ||
recursive-include solo/locale *.mo *.po |
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,8 +1,6 @@ | ||
from django.contrib import admin | ||
|
||
from solo.admin import SingletonModelAdmin | ||
|
||
from config.models import SiteConfiguration | ||
|
||
from solo.admin import SingletonModelAdmin | ||
|
||
admin.site.register(SiteConfiguration, SingletonModelAdmin) |
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
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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "django-solo" | ||
description = "Django Solo helps working with singletons" | ||
authors = [{name = "lazybird"}] | ||
maintainers = [ | ||
{name = "John Hagen", email = "johnthagen@gmail.com"} | ||
] | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
"Framework :: Django :: 3.2", | ||
"Framework :: Django :: 4.2", | ||
"Framework :: Django :: 5.0", | ||
"Intended Audience :: Developers", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"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", | ||
] | ||
dependencies = [ | ||
"django>=3.2", | ||
"typing-extensions>=4.0.1; python_version < '3.11'", | ||
] | ||
license = {text = "Creative Commons Attribution 3.0 Unported"} | ||
dynamic = ["version"] | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "solo.__version__"} | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/lazybird/django-solo/" | ||
Source = "https://github.com/lazybird/django-solo/" | ||
Changelog = "https://github.com/lazybird/django-solo/blob/master/CHANGES" | ||
|
||
[tool.mypy] | ||
ignore_missing_imports = true | ||
strict = true | ||
exclude = "solo/tests" | ||
|
||
[tool.ruff] | ||
line-length = 100 | ||
target-version = "py38" | ||
|
||
[tool.ruff.lint] | ||
select = [ | ||
"F", # pyflakes | ||
"E", # pycodestyle | ||
"I", # isort | ||
"N", # pep8-naming | ||
"UP", # pyupgrade | ||
"RUF", # ruff | ||
"B", # flake8-bugbear | ||
"C4", # flake8-comprehensions | ||
"PTH", # flake8-use-pathlib | ||
"SIM", # flake8-simplify | ||
"TID", # flake8-tidy-imports | ||
] | ||
|
||
ignore = [ | ||
"B904", | ||
] |
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,9 +1,11 @@ | ||
"""django-solo helps working with singletons: things like global settings that you want to edit from the admin site. | ||
""" | ||
import django | ||
django-solo helps working with singletons: | ||
things like global settings that you want to edit from the admin site. | ||
""" | ||
|
||
import django | ||
|
||
__version__ = '2.1.0' | ||
__version__ = "2.3.0" | ||
|
||
if django.VERSION < (3, 2): | ||
default_app_config = 'solo.apps.SoloAppConfig' | ||
default_app_config = "solo.apps.SoloAppConfig" |
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
Oops, something went wrong.