mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-29 01:42:37 +02:00

packages are built with hatch instead of setuptools. Translations catalogs are compiled at package build time, and before unit tests are ran. Thus there is no need to keep them versioned in git anymore.
11 lines
297 B
Python
11 lines
297 B
Python
import sys
|
|
|
|
from hatchling.builders.hooks.plugin.interface import BuildHookInterface
|
|
|
|
|
|
class CustomBuildHook(BuildHookInterface):
|
|
def initialize(self, version, build_data):
|
|
sys.path.insert(0, "./ihatemoney")
|
|
from babel_utils import compile_catalogs
|
|
|
|
compile_catalogs()
|