fix: version
This commit is contained in:
parent
8ecc0e0f55
commit
cf0fc37aef
8 changed files with 64 additions and 12 deletions
|
|
@ -5,8 +5,8 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"POT-Creation-Date: 2025-03-31 16:37+0200\n"
|
||||
"PO-Revision-Date: 2025-03-31 16:37+0200\n"
|
||||
"POT-Creation-Date: 2025-04-09 21:21+0200\n"
|
||||
"PO-Revision-Date: 2025-04-09 21:22+0200\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: fr\n"
|
||||
|
|
@ -16,15 +16,15 @@ msgstr ""
|
|||
"Generated-By: pygettext.py 1.5\n"
|
||||
"X-Generator: Poedit 3.5\n"
|
||||
|
||||
#: src/rougail/cli/__main__.py:102
|
||||
#: src/rougail/cli/__main__.py:125
|
||||
msgid "cannot find \"user_data\" module \"{0}\""
|
||||
msgstr "ne peut trouve le module \"user_data\" \"{0}\""
|
||||
|
||||
#: src/rougail/cli/__main__.py:139
|
||||
#: src/rougail/cli/__main__.py:162
|
||||
msgid "cannot find cli file for \"output_name\" module \"{0}\""
|
||||
msgstr "ne peut trouve le fichier cli pour le module \"output_name\" \"{0}\""
|
||||
|
||||
#: src/rougail/cli/__main__.py:161
|
||||
#: src/rougail/cli/__main__.py:184
|
||||
msgid "ERROR: {0}"
|
||||
msgstr "ERREUR : {0}"
|
||||
|
||||
|
|
@ -37,9 +37,17 @@ msgid "loads command line parameters from a file"
|
|||
msgstr "charge les paramètres de la ligne de commande depuis un fichier"
|
||||
|
||||
#: src/rougail/cli/config.py:39
|
||||
msgid "displays debug informations"
|
||||
msgid "display debug informations"
|
||||
msgstr "affiche les informations de debug"
|
||||
|
||||
#: src/rougail/cli/config.py:40
|
||||
msgid "do not display debug informations"
|
||||
msgstr "ne pas afficher les informations de debug"
|
||||
|
||||
#: src/rougail/cli/config.py:44
|
||||
msgid "display rougail version and all componants"
|
||||
msgstr "afficher la version de rougail et de tous ces composants"
|
||||
|
||||
#: src/rougail/cli/config.py:45
|
||||
msgid "do not display rougail version and all componants"
|
||||
msgstr "ne pas afficher la version de rougail et de tous ces composants"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 2025-03-31 16:37+0200\n"
|
||||
"POT-Creation-Date: 2025-04-09 21:22+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
|
@ -15,15 +15,15 @@ msgstr ""
|
|||
"Generated-By: pygettext.py 1.5\n"
|
||||
|
||||
|
||||
#: src/rougail/cli/__main__.py:102
|
||||
#: src/rougail/cli/__main__.py:125
|
||||
msgid "cannot find \"user_data\" module \"{0}\""
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/cli/__main__.py:139
|
||||
#: src/rougail/cli/__main__.py:162
|
||||
msgid "cannot find cli file for \"output_name\" module \"{0}\""
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/cli/__main__.py:161
|
||||
#: src/rougail/cli/__main__.py:184
|
||||
msgid "ERROR: {0}"
|
||||
msgstr ""
|
||||
|
||||
|
|
@ -36,10 +36,18 @@ msgid "loads command line parameters from a file"
|
|||
msgstr ""
|
||||
|
||||
#: src/rougail/cli/config.py:39
|
||||
msgid "displays debug informations"
|
||||
msgid "display debug informations"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/cli/config.py:40
|
||||
msgid "do not display debug informations"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/cli/config.py:44
|
||||
msgid "display rougail version and all componants"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/cli/config.py:45
|
||||
msgid "do not display rougail version and all componants"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ classifiers = [
|
|||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Programming Language :: Python :: 3.13",
|
||||
"Programming Language :: Python :: 3.14",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Operating System :: OS Independent",
|
||||
"Natural Language :: English",
|
||||
|
|
@ -40,5 +42,9 @@ name = "cz_conventional_commits"
|
|||
tag_format = "$version"
|
||||
version_scheme = "pep440"
|
||||
version_provider = "pep621"
|
||||
version_files = [
|
||||
"src/rougail/cli/__version__.py",
|
||||
"pyproject.toml:version"
|
||||
]
|
||||
update_changelog_on_bump = true
|
||||
changelog_merge_prerelease = true
|
||||
|
|
|
|||
|
|
@ -15,3 +15,4 @@ GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License
|
||||
along with Mtools. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
from .__version__ import __version__
|
||||
|
|
|
|||
|
|
@ -78,6 +78,29 @@ def _main():
|
|||
cmd_config.property.setdefault(origin_prop, 'read_write', 'append')
|
||||
cmd_config.property.remove("not_for_commandline")
|
||||
cmd_config.property.read_only()
|
||||
if rougailconfig['cli.versions']:
|
||||
from tiramisu import __version__
|
||||
print(f'tiramisu: {__version__}')
|
||||
from tiramisu_cmdline_parser import __version__
|
||||
print(f'tiramisu-cmdline-parser: {__version__}')
|
||||
from rougail import __version__
|
||||
print(f'rougail: {__version__}')
|
||||
from . import __version__
|
||||
print(f'rougail-cli: {__version__}')
|
||||
for step in ['structural', 'user_data', 'output']:
|
||||
for step_name in sorted(cmd_config.option(f'step.{step}').value.list()):
|
||||
path = (
|
||||
Path(__file__).parent.parent
|
||||
/ (step + "_" + step_name)
|
||||
/ "__init__.py"
|
||||
)
|
||||
if path.is_file():
|
||||
try:
|
||||
module = load_modules("rougail." + step + '_' + step_name, str(path))
|
||||
print(f'rougail-{step}-{step_name}: {module.__version__}')
|
||||
except Exception as err:
|
||||
pass
|
||||
return
|
||||
try:
|
||||
user_data_names = rougailconfig["step.user_data"]
|
||||
except PropertiesOptionError:
|
||||
|
|
|
|||
1
src/rougail/cli/__version__.py
Normal file
1
src/rougail/cli/__version__.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
__version__ = "0.2.0a11"
|
||||
|
|
@ -36,9 +36,14 @@ cli:
|
|||
default: .rougailcli.yml
|
||||
|
||||
debug:
|
||||
description: {_('displays debug informations')}
|
||||
description: {_('display debug informations')}
|
||||
negative_description: {_('do not display debug informations')}
|
||||
default: false
|
||||
|
||||
versions:
|
||||
description: {_('display rougail version and all componants')}
|
||||
negative_description: {_('do not display rougail version and all componants')}
|
||||
default: false
|
||||
"""
|
||||
return {
|
||||
"options": options,
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in a new issue