-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #353 from jeanslack/improving_build
build and requirements
- Loading branch information
Showing
15 changed files
with
376 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
videomass (5.0.20-1) UNRELEASED; urgency=medium | ||
|
||
* Added requirements-linux.txt to build videomass wheel from source. | ||
* Update INSTALL file. It now also includes the manual procedure for compiling | ||
the language catalog using included scripts. | ||
* Added *.mo item to .gitignore file to auto-escludes that item. | ||
* Fix pyproject.toml file: added artifacts to include MO files on wheel binary | ||
even if the .gitignore file excludes them. | ||
* Update dependencies list on hatchling.toml file. | ||
* Added `StartupNotify` and `StartupWMClass` entries to xdg/*.desktop file to | ||
fix App icon not dislpayed in some taskbar. | ||
* Improved xdg/*.xml file. | ||
* Fixed app-const.py file to backwards compatibility using wx-Python 4.0.7. | ||
|
||
-- Gianluca Pernigotto <[email protected]> Sun, 28 Jul 2024 12:00:00 +0200 | ||
|
||
videomass (5.0.18-1) UNRELEASED; urgency=medium | ||
|
||
* Created new gettext utilities. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,45 @@ | ||
# Copyleft (c) Videomass Development Team. | ||
# Distributed under the terms of the GPL3 License. | ||
#!/usr/bin/env python3 | ||
# -*- coding: UTF-8 -*- | ||
""" | ||
Name: hatch_build.py | ||
Author: Gianluca Pernigotto <[email protected]> | ||
Copyleft - 2024 Gianluca Pernigotto <[email protected]> | ||
license: GPL3 | ||
Rev: July.22.2024 | ||
Code checker: flake8, pylint | ||
This file is part of Videomass. | ||
Videomass is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
Videomass is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with Videomass. If not, see <http://www.gnu.org/licenses/>. | ||
""" | ||
|
||
from hatchling.builders.hooks.plugin.interface import BuildHookInterface | ||
from babel.messages.frontend import compile_catalog | ||
|
||
|
||
class VideomassLanguageBuildHook(BuildHookInterface): | ||
""" | ||
Compile the translation files from their PO-format into | ||
their binary representating MO-format using python `babel`. | ||
""" | ||
def initialize(self, version, build_data): | ||
|
||
""" | ||
Compile catalog only if the target includes binary | ||
distribution (wheel). Source distribution (sdist) | ||
does not have to include MO files. | ||
""" | ||
if self.target_name == "wheel": | ||
from babel.messages.frontend import compile_catalog | ||
|
||
cmd = compile_catalog() | ||
cmd.directory = "videomass/data/locale/" | ||
cmd.domain = "videomass" | ||
|
Oops, something went wrong.