-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from cfpb/wagtail30
Update for Wagtail 3.0
- Loading branch information
Showing
18 changed files
with
230 additions
and
155 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
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,76 @@ | ||
[metadata] | ||
name = wagtail-flags | ||
version = 5.2.0 | ||
author = CFPB | ||
author_email = [email protected] | ||
description = Feature flags for Wagtail sites | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
license = CC0 | ||
url = https://github.com/cfpb/wagtail-flags | ||
classifiers = | ||
Operating System :: OS Independent | ||
Framework :: Django | ||
Framework :: Django :: 3.2 | ||
Framework :: Django :: 4.0 | ||
Framework :: Wagtail | ||
Framework :: Wagtail :: 2 | ||
Framework :: Wagtail :: 3 | ||
License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | ||
License :: Public Domain | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
|
||
[options] | ||
include_package_data = True | ||
packages = find: | ||
python_requires = >=3.8 | ||
zip_safe = False | ||
install_requires = | ||
wagtail>=2.15,<4 | ||
django-flags>=4.2,<5.1 | ||
|
||
[options.extras_require] | ||
testing = | ||
coverage | ||
|
||
[flake8] | ||
ignore = E731,W503,W504 | ||
exclude = | ||
.git, | ||
.tox, | ||
__pycache__, | ||
*/migrations/*.py, | ||
.eggs/*, | ||
|
||
[isort] | ||
profile = black | ||
combine_as_imports = 1 | ||
lines_after_imports = 2 | ||
include_trailing_comma = 1 | ||
multi_line_output = 3 | ||
skip = .tox,migrations | ||
known_django = django | ||
known_wagtail = wagtail | ||
default_section = THIRDPARTY | ||
sections = FUTURE,STDLIB,DJANGO,WAGTAIL,THIRDPARTY,FIRSTPARTY,LOCALFOLDER | ||
|
||
[mypy] | ||
allow_redefinition = false | ||
check_untyped_defs = true | ||
disallow_untyped_decorators = true | ||
disallow_any_explicit = true | ||
disallow_any_generics = true | ||
disallow_untyped_calls = true | ||
ignore_errors = false | ||
ignore_missing_imports = true | ||
implicit_reexport = false | ||
local_partial_types = true | ||
strict_optional = true | ||
strict_equality = true | ||
no_implicit_optional = true | ||
warn_unused_ignores = true | ||
warn_redundant_casts = true | ||
warn_unused_configs = true | ||
warn_unreachable = true | ||
warn_no_return = true |
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,36 +1,4 @@ | ||
from setuptools import find_packages, setup | ||
from setuptools import setup | ||
|
||
install_requires = [ | ||
"wagtail>=2.11,<3", | ||
"django-flags>=4.2,<5.1", | ||
] | ||
|
||
testing_extras = ["coverage>=3.7.0"] | ||
|
||
setup( | ||
name="wagtail-flags", | ||
url="https://github.com/cfpb/wagtail-flags", | ||
author="CFPB", | ||
author_email="[email protected]", | ||
description="Feature flags for Wagtail sites", | ||
long_description=open("README.md", "r", encoding="utf-8").read(), | ||
long_description_content_type="text/markdown", | ||
license="CC0", | ||
version="5.1.0", | ||
include_package_data=True, | ||
packages=find_packages(), | ||
python_requires=">=3.6", | ||
install_requires=install_requires, | ||
extras_require={"testing": testing_extras}, | ||
classifiers=[ | ||
"Framework :: Django", | ||
"Framework :: Django :: 2.2", | ||
"Framework :: Django :: 3.1", | ||
"Framework :: Wagtail", | ||
"Framework :: Wagtail :: 2", | ||
"License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication", | ||
"License :: Public Domain", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
], | ||
) | ||
if __name__ == '__main__': | ||
setup() |
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 +0,0 @@ | ||
default_app_config = "wagtailflags.apps.WagtailFlagsAppConfig" | ||
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,5 @@ | ||
from django.dispatch import Signal | ||
|
||
|
||
flag_disabled = Signal(providing_args=["instance", "flag_name"]) | ||
flag_enabled = Signal(providing_args=["instance", "flag_name"]) | ||
flag_disabled = Signal() | ||
flag_enabled = Signal() |
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.