Skip to content

Commit

Permalink
Ditch hatchling because of bogus wheel package generation
Browse files Browse the repository at this point in the history
  • Loading branch information
artscoop committed Dec 28, 2023
1 parent f82be2e commit bf8f4a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class EntryApproval(Sandbox, metaclass=SandboxMeta):
- `approval_default`: dictionary of values that should be applied temporary for a new object until approval. Default is `dict()`
- `auto_approve_staff`: automatically approve changes if the instance author is staff. See `get_authors`. Default is `True`
- `auto_approve_new`: automatically approve changes for new instances. Default is `False`.
- `auto_approve_by_request`: if the instance gets a `reauest` attribute, use it to determine the author of the content. Default is `True`.
- `auto_approve_by_request`: if the instance gets a `request` attribute, use it to determine the author of the content. Default is `True`.

The `Sandbox` model must at least implement `_get_authors(self)`, that is used to know who
are the authors of your instance (since automatic validation can be bypassed if the author is staff, for example).
Expand Down
9 changes: 3 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "django-approval"
version = "0.11.2"
version = "0.11.3"
authors = [
{ name="Steve Kossouho", email="[email protected]" },
]
Expand Down Expand Up @@ -33,6 +33,3 @@ line-length = 100
[tool.setuptools]
package-dir = {"" = "source"}
packages = ["approval"]

[tool.hatch.build]
packages = ["source/approval"]

0 comments on commit bf8f4a9

Please sign in to comment.