Metadata-Version: 2.4
Name: hatch-django-collectstatic
Version: 0.0.4
Summary: Build, collect and distribute django static files
Project-URL: Homepage, https://codeberg.org/charlesroelli/hatch-django-collectstatic
Project-URL: Issues, https://codeberg.org/charlesroelli/hatch-django-collectstatic/issues
Author-email: Charles Roelli <charles@adnoto.net>
License-Expression: MIT
License-File: LICENSE.txt
Keywords: collectstatic,django,hatch,hatchling
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Hatch
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Build Tools
Requires-Python: >=3.11
Requires-Dist: django
Requires-Dist: hatchling
Description-Content-Type: text/markdown

# hatch-django-collectstatic

Collect a django project's static files into its binary distribution
archive.

Example usage in `pyproject.toml`:

```toml
[build-system]
requires = ["hatchling >= 1.26", "hatch-django-collectstatic"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel.hooks.django-collectstatic]
settings = "my_django_package.project.settings"

# If you have installed Django apps from packages besides Django,
# you'll need to enable the require-runtime-dependencies feature of
# hatch in order to make these packages available when collecting
# static files.
# Default value of require-runtime-dependencies = false
# require-runtime-dependencies = true

# Output directory where static files are collected in the target.
# Default value of output-directory = "static"
# output-directory = "custom-static-directory"

[tool.hatch.build.targets.wheel.shared-data]
# Mapping from output directory to the distribution path.  The
# following configuration will place the files in the .data directory
# of the wheel, under "data/share/static".
# See https://packaging.python.org/en/latest/specifications/binary-distribution-format/#the-data-directory
"static" = "share/static"
```
