-
Notifications
You must be signed in to change notification settings - Fork 9
Support Wagtail 3.x and switch to pyproject.toml #34
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
65891a5
Switch to pyproject.toml
willbarton a07b833
Remove button override CSS
willbarton df3a0a7
Replace deprecated ugettext with gettext
willbarton 2b34ec1
Drop secondary button class for edit
willbarton acd8e4b
Updated pinned versions in the README
willbarton c7794c3
Fix Python version in the coverage Action
willbarton 7d7a308
Update Django documentation links in the README
willbarton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,53 @@ | ||
| [project] | ||
| name = "wagtail-treemodeladmin" | ||
| version = "1.5.0" | ||
| description = "TreeModelAdmin for Wagtail" | ||
| readme = "README.md" | ||
| requires-python = ">=3.8" | ||
willbarton marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| license = {text = "CC0"} | ||
| authors = [ | ||
| {name = "CFPB", email = "[email protected]" } | ||
| ] | ||
| dependencies = [ | ||
| "wagtail>=2.15,<4", | ||
chosak marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ] | ||
| classifiers = [ | ||
| "Framework :: Django", | ||
| "Framework :: Django :: 3.2", | ||
| "Framework :: Django :: 4", | ||
| "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", | ||
| ] | ||
|
|
||
| [project.optional-dependencies] | ||
| testing = [ | ||
| "coverage[toml]", | ||
| ] | ||
|
|
||
| [project.urls] | ||
| "Homepage" = "https://github.com/cfpb/wagtail-treemodeladmin" | ||
| "Bug Reports" = "https://github.com/cfpb/wagtail-treemodeladmin/issues" | ||
| "Source" = "https://github.com/cfpb/wagtail-treemodeladmin" | ||
|
|
||
| [build-system] | ||
| requires = ["setuptools>=43.0.0", "wheel"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [tool.setuptools.package-data] | ||
| treemodeladmin = [ | ||
| "templates/treemodeladmin/*", | ||
| "templates/treemodeladmin/includes/*", | ||
| "static/treemodeladmin/css/*", | ||
| ] | ||
|
|
||
| [tool.black] | ||
| line-length = 79 | ||
| target-version = ['py36', 'py38'] | ||
| target-version = ["py38"] | ||
| include = '\.pyi?$' | ||
| exclude = ''' | ||
| ( | ||
|
|
@@ -14,8 +61,6 @@ exclude = ''' | |
| | dist | ||
| | migrations | ||
| | site | ||
| | \*.json | ||
| | \*.csv | ||
| )/ | ||
| ) | ||
| ''' | ||
|
|
@@ -37,5 +82,22 @@ sections = [ | |
| "LOCALFOLDER" | ||
| ] | ||
|
|
||
| [build-system] | ||
| requires = ["setuptools", "wheel"] | ||
| [tool.ruff] | ||
| exclude = [ | ||
| ".git", | ||
| ".tox", | ||
| "__pycache__", | ||
| "*/migrations/*.py", | ||
| "*/tests/treemodeladmintest/migrations/*", | ||
| ] | ||
| ignore = [] | ||
| select = [ | ||
| "E", | ||
| "F", | ||
| "W", | ||
| ] | ||
|
|
||
| [tool.coverage.run] | ||
| omit = [ | ||
| "treemodeladmin/tests/*", | ||
| ] | ||
This file contains hidden or 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,42 +1,4 @@ | ||
| from setuptools import find_packages, setup | ||
| from setuptools import setup | ||
|
|
||
| install_requires = [ | ||
| "wagtail>=2.11,<3", | ||
| ] | ||
|
|
||
| testing_extras = ["coverage>=3.7.0"] | ||
|
|
||
| setup( | ||
| name="wagtail-treemodeladmin", | ||
| url="https://github.com/cfpb/wagtail-treemodeladmin", | ||
| author="CFPB", | ||
| author_email="[email protected]", | ||
| description="TreeModelAdmin for Wagtail", | ||
| long_description=open("README.md", "r", encoding="utf-8").read(), | ||
| long_description_content_type="text/markdown", | ||
| license="CC0", | ||
| version="1.5.0", | ||
| include_package_data=True, | ||
| packages=find_packages(), | ||
| package_data={ | ||
| "treemodeladmin": [ | ||
| "templates/treemodeladmin/*", | ||
| "templates/treemodeladmin/includes/*", | ||
| "static/treemodeladmin/css/*", | ||
| ] | ||
| }, | ||
| 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", | ||
| ], | ||
| ) | ||
| setup() |
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.