-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With [PEP 621 support added to setuptools](pypa/setuptools#2970) last year, and with pip supporting editable installs as of 21.3, we can move to `pyproject.toml` and deprecate `setup.py`. The file remains for legacy pip support. Because [flake8 does not want to support pyproject.tml yet](PyCQA/flake8#234), unlike all the other tools we use, I’m removing it in favor of [ruff](https://github.com/charliermarsh/ruff).
- Loading branch information
1 parent
a25621c
commit 78c3560
Showing
5 changed files
with
110 additions
and
111 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,54 @@ | ||
[project] | ||
name = "wagtail-flags" | ||
version = "5.3.0" | ||
description = "Feature flags for Wagtail sites" | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
license = {text = "CC0"} | ||
authors = [ | ||
{name = "CFPB", email = "[email protected]" } | ||
] | ||
dependencies = [ | ||
"wagtail>2.15,<4", | ||
"django-flags>4.2,<5.1" | ||
] | ||
classifiers = [ | ||
"Framework :: Django", | ||
"Framework :: Django :: 3.2", | ||
"Framework :: Django :: 4", | ||
"Framework :: Wagtail", | ||
"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-flags" | ||
"Bug Reports" = "https://github.com/cfpb/wagtail-flags/issues" | ||
"Source" = "https://github.com/cfpb/wagtail-flags" | ||
|
||
[build-system] | ||
requires = ["setuptools>=43.0.0", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools.package-data] | ||
treemodeladmin = [ | ||
"templates/wagtailflags/*", | ||
"templates/wagtailflags/flags/*", | ||
"templates/wagtailflags/includes/*", | ||
"static/wagtailflags/css/*", | ||
] | ||
|
||
[tool.black] | ||
line-length = 79 | ||
target-version = ['py36', 'py38'] | ||
target-version = ["py38"] | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
( | ||
|
@@ -14,15 +62,43 @@ exclude = ''' | |
| dist | ||
| migrations | ||
| site | ||
| \*.json | ||
| \*.csv | ||
)/ | ||
) | ||
''' | ||
|
||
[build-system] | ||
requires = [ | ||
"setuptools>=42", | ||
"wheel" | ||
[tool.isort] | ||
profile = "black" | ||
line_length = 79 | ||
lines_after_imports = 2 | ||
skip = [".tox", "migrations", ".venv", "venv"] | ||
known_django = ["django"] | ||
known_wagtail = ["wagtail"] | ||
default_section = "THIRDPARTY" | ||
sections = [ | ||
"STDLIB", | ||
"DJANGO", | ||
"WAGTAIL", | ||
"THIRDPARTY", | ||
"FIRSTPARTY", | ||
"LOCALFOLDER" | ||
] | ||
|
||
[tool.ruff] | ||
exclude = [ | ||
".git", | ||
".tox", | ||
"__pycache__", | ||
"*/migrations/*.py", | ||
"*/tests/treemodeladmintest/migrations/*", | ||
] | ||
ignore = [] | ||
select = [ | ||
"E", | ||
"F", | ||
"W", | ||
] | ||
|
||
[tool.coverage.run] | ||
omit = [ | ||
"treemodeladmin/tests/*", | ||
] | ||
build-backend = "setuptools.build_meta" |
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