Skip to content

Commit

Permalink
Preparing release 6.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Nov 18, 2023
1 parent 07fa938 commit 6ae61f1
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 16 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This document describes changes between each past release.

## 6.1.2 (unreleased)
## 6.1.2 (2023-11-18)


- Nothing changed yet.
Expand Down
11 changes: 4 additions & 7 deletions hatch_build.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
from pathlib import Path
import sys

from hatchling.builders.hooks.plugin.interface import BuildHookInterface


class CustomBuildHook(BuildHookInterface):
def initialize(self, version, build_data):
from babel.messages.frontend import compile_catalog
sys.path.insert(0, "./ihatemoney")
from babel_utils import compile_catalogs

cmd = compile_catalog()
cmd.directory = Path(__file__).parent / "ihatemoney" / "translations"
cmd.statistics = True
cmd.finalize_options()
cmd.run()
compile_catalogs()
11 changes: 11 additions & 0 deletions ihatemoney/babel_utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from pathlib import Path

from babel.messages.frontend import compile_catalog


def compile_catalogs():
cmd = compile_catalog()
cmd.directory = Path(__file__).parent / "translations"
cmd.statistics = True
cmd.finalize_options()
cmd.run()
9 changes: 2 additions & 7 deletions ihatemoney/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
from pathlib import Path
from unittest.mock import MagicMock

from babel.messages.frontend import compile_catalog
from flask import Flask
import pytest

from ihatemoney.babel_utils import compile_catalogs
from ihatemoney.currency_convertor import CurrencyConverter
from ihatemoney.run import create_app, db


@pytest.fixture(autouse=True, scope="session")
def babel_catalogs():
cmd = compile_catalog()
cmd.directory = Path(__file__).parent.parent / "translations"
cmd.quiet = True
cmd.finalize_options()
cmd.run()
compile_catalogs()


@pytest.fixture
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "ihatemoney"
version = "6.1.2.dev0"
version = "6.1.2"
description = "A simple shared budget manager web application."
readme = "README.md"
license = {file = "LICENSE"}
Expand Down

0 comments on commit 6ae61f1

Please sign in to comment.