Compare commits
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b282fd2d7a | |||
| fb230276a8 | |||
| 5d39620e39 | |||
| 717fa7f367 | |||
| 43bd217f32 |
35 changed files with 171 additions and 5 deletions
13
CHANGELOG.md
13
CHANGELOG.md
|
|
@ -1,3 +1,16 @@
|
||||||
|
## 0.1.0a15 (2025-11-21)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
- ExtentionError => ExtensionError
|
||||||
|
|
||||||
|
## 0.1.0a14 (2025-11-06)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
- add translation
|
||||||
|
- update tests
|
||||||
|
|
||||||
## 0.1.0a13 (2025-10-29)
|
## 0.1.0a13 (2025-10-29)
|
||||||
|
|
||||||
### Feat
|
### Feat
|
||||||
|
|
|
||||||
48
locale/fr/LC_MESSAGES/rougail_user_data_environment.po
Normal file
48
locale/fr/LC_MESSAGES/rougail_user_data_environment.po
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR ORGANIZATION
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: \n"
|
||||||
|
"POT-Creation-Date: 2025-10-04 17:04+0200\n"
|
||||||
|
"PO-Revision-Date: 2025-10-04 17:04+0200\n"
|
||||||
|
"Last-Translator: \n"
|
||||||
|
"Language-Team: \n"
|
||||||
|
"Language: fr\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Generated-By: pygettext.py 1.5\n"
|
||||||
|
"X-Generator: Poedit 3.7\n"
|
||||||
|
|
||||||
|
#: src/rougail/user_data_environment/annotator.py:46
|
||||||
|
msgid ""
|
||||||
|
"family name must be a lowercase name when we want to use user data "
|
||||||
|
"\"environment\", so \"{0}\" is invalid"
|
||||||
|
msgstr ""
|
||||||
|
"le nom d'une famille doit être un nom en minuscule lorsque vous voulez "
|
||||||
|
"utiliser de données utilisateur \"environment\", donc \"{0}\" est invalide"
|
||||||
|
|
||||||
|
#: src/rougail/user_data_environment/annotator.py:56
|
||||||
|
msgid ""
|
||||||
|
"variable name must be a lowercase name when we want to use user data "
|
||||||
|
"\"environment\", so \"{0}\" is invalid"
|
||||||
|
msgstr ""
|
||||||
|
"le nom d'une variable doit être un nom en minuscule lorsque vous voulez "
|
||||||
|
"utiliser de données utilisateur \"environment\", donc \"{0}\" est invalide"
|
||||||
|
|
||||||
|
#: src/rougail/user_data_environment/config.py:34
|
||||||
|
msgid "Configuration loading environment variables"
|
||||||
|
msgstr "Configuration le chargement des variables d'environnements"
|
||||||
|
|
||||||
|
#: src/rougail/user_data_environment/config.py:42
|
||||||
|
msgid "Name of the default environment prefix"
|
||||||
|
msgstr "Nom du préfix d'environnement par défaut"
|
||||||
|
|
||||||
|
#: src/rougail/user_data_environment/config.py:49
|
||||||
|
msgid "Environnement variables may contain secrets"
|
||||||
|
msgstr "Les variables d'environnement peuvent contenir des secrets"
|
||||||
|
|
||||||
|
#~ msgid "Define values from the environment"
|
||||||
|
#~ msgstr "Défini les valeurs pour l'environnemnt"
|
||||||
37
locale/rougail_user_data_environment.pot
Normal file
37
locale/rougail_user_data_environment.pot
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR ORGANIZATION
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
|
"POT-Creation-Date: 2025-10-04 17:05+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"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Generated-By: pygettext.py 1.5\n"
|
||||||
|
|
||||||
|
|
||||||
|
#: src/rougail/user_data_environment/annotator.py:46
|
||||||
|
msgid "family name must be a lowercase name when we want to use user data \"environment\", so \"{0}\" is invalid"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/rougail/user_data_environment/annotator.py:56
|
||||||
|
msgid "variable name must be a lowercase name when we want to use user data \"environment\", so \"{0}\" is invalid"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/rougail/user_data_environment/config.py:34
|
||||||
|
msgid "Configuration loading environment variables"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/rougail/user_data_environment/config.py:42
|
||||||
|
msgid "Name of the default environment prefix"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/rougail/user_data_environment/config.py:49
|
||||||
|
msgid "Environnement variables may contain secrets"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "rougail.user_data_environment"
|
name = "rougail.user_data_environment"
|
||||||
version = "0.1.0a13"
|
version = "0.1.0a15"
|
||||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
description = "Rougail user_data environment"
|
description = "Rougail user_data environment"
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
__version__ = "0.1.0a13"
|
__version__ = "0.1.0a15"
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
import os
|
import os
|
||||||
from rougail.tiramisu import CONVERT_OPTION
|
from rougail.tiramisu import CONVERT_OPTION
|
||||||
from rougail.config import RougailConfig
|
from rougail.config import RougailConfig
|
||||||
from rougail.error import ExtentionError
|
from rougail.error import ExtensionError
|
||||||
from tiramisu.error import ValueOptionError
|
from tiramisu.error import ValueOptionError
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -43,7 +43,7 @@ class RougailUserDataEnvironment:
|
||||||
rougailconfig["step.user_data"] = user_data
|
rougailconfig["step.user_data"] = user_data
|
||||||
user_data = rougailconfig["step.user_data"]
|
user_data = rougailconfig["step.user_data"]
|
||||||
if "environment" not in user_data:
|
if "environment" not in user_data:
|
||||||
raise ExtentionError("environment is not set in step.user_data")
|
raise ExtensionError("environment is not set in step.user_data")
|
||||||
if "environment.with_secrets" in rougailconfig:
|
if "environment.with_secrets" in rougailconfig:
|
||||||
self.with_secrets = rougailconfig["environment.with_secrets"]
|
self.with_secrets = rougailconfig["environment.with_secrets"]
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
1
tests/results/test/04_5validators_warnings/file/all.env
Normal file
1
tests/results/test/04_5validators_warnings/file/all.env
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
ROUGAIL_INT="1"
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
ROUGAIL_INT="1"
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"int": 1
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"int": 1000
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
ROUGAIL_INT="1"
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
ROUGAIL_INT="1"
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"int": 1
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"int": 1000
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
ROUGAIL.INT="1"
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
ROUGAIL.INT="1"
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"rougail.int": 1
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"rougail.int": 1000
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
ROUGAIL.INT="1"
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
ROUGAIL.INT="1"
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"rougail.int": 1
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"rougail.int": 1000
|
||||||
|
}
|
||||||
|
|
@ -21,7 +21,7 @@ save = os.environ.copy()
|
||||||
excludes = ["60_0family_dynamic_source_hidden"]
|
excludes = ["60_0family_dynamic_source_hidden"]
|
||||||
|
|
||||||
test_ok = get_structures_list(excludes)
|
test_ok = get_structures_list(excludes)
|
||||||
# test_ok = [Path('../rougail-tests/structures/00_2default_calculated_params_permissive')]
|
# test_ok = [Path('../rougail-tests/structures/60_0family_dynamic_1_0_empty')]
|
||||||
|
|
||||||
|
|
||||||
def idfn(fixture_value):
|
def idfn(fixture_value):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue