Skip to main content

A hatchling build hook to compile django locale files during build time

Project description

hatch-django-locales

This package provides a hatchling plugin (build hook) for Django projects that automatically compiles locale files when building the package.

Usage

In your projects pyproject.toml, make sure you are using the hatchling build system and add the following:

[tool.hatch.build.hooks.django-locales]
dependencies = ["hatch-django-locales>=0.1.5", "django"]
search-directories = ["src"]

The search-directories option should be a list of directories to glob for locale directories and is your project root by default. Make sure that the .mo files are actually included in the wheels produced by your build process.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hatch_django_locales-0.1.5.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hatch_django_locales-0.1.5-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file hatch_django_locales-0.1.5.tar.gz.

File metadata

  • Download URL: hatch_django_locales-0.1.5.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hatch_django_locales-0.1.5.tar.gz
Algorithm Hash digest
SHA256 da19e28c123ae238b4591556362e90b85dea60cff781165fd421d19f4f3a3b01
MD5 64b6965d4ec64561bf53a6034d1a8aaa
BLAKE2b-256 8715f2d1c1298ed525b9c2ad8eb03bd46d2621ee38b8b2ff3af4290d5d7c6a08

See more details on using hashes here.

File details

Details for the file hatch_django_locales-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: hatch_django_locales-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hatch_django_locales-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 51fbfea99d501fde2e0213a060646caf41293138aa5673ca16d7d9e42fbc603b
MD5 b1afe1b170beae68d30d1a88acff17ef
BLAKE2b-256 ec88fe2f90c989f3894d586a7594f1a5d1f34d5cb0c778a6f884ea327a83a333

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page