Compare commits

..

No commits in common. "develop" and "1.0.0rc0" have entirely different histories.

7 changed files with 138 additions and 38 deletions

View file

@ -1,40 +1,142 @@
## 1.0.0 (2026-06-21)
## 0.1.0a20 (2026-06-15)
### Fix
- translation
## 0.1.0a19 (2026-05-04)
### Feat
- multi layers
## 0.1.0a18 (2026-01-21)
### Fix
- update tests
## 0.1.0a17 (2025-12-30)
### Fix
- doc
- update tests
## 0.1.0a16 (2025-12-22)
### Fix
- add description for validators
## 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)
### Feat
- can define a new separator
## 0.1.0a12 (2025-10-10)
### Fix
- update test
- translation + tests
- tests for formatter
## 0.1.0a11 (2025-09-29)
### Feat
- default value for a calculated variable with an unknown optional variable
- update tests for integer type
## 0.1.0a10 (2025-09-22)
### Fix
- dictionary => structure
## 0.1.0a9 (2025-06-18)
### Fix
- rougail separation
## 0.1.0a8 (2025-05-12)
### Feat
- display loaded_from informations
### Fix
- black
## 0.1.0a7 (2025-05-02)
### Fix
- do not force use_data usage
## 0.1.0a6 (2025-04-30)
### Fix
- update tests
## 0.1.0a5 (2025-04-09)
### Fix
- version
## 0.1.0a4 (2025-04-01)
### Fix
- update tests
## 0.1.0a3 (2025-03-30)
### Fix
- update tests
- update tests, some errors are now in warnings level
## 0.1.0a2 (2025-02-10)
### Fix
- rename source
- add test without namespace
- update tests
## 0.1.0a1 (2024-11-27)
### Fix
- NAMESPACE. instead of NAMESPACE_
## 0.1.0a0 (2024-11-25)
### Feat
- new package
- auto create tested
### Fix
- black
- translation
- update tests
- doc
- update tests
- add description for validators
- ExtentionError => ExtensionError
- add translation
- update tests
- update test
- translation + tests
- tests for formatter
- dictionary => structure
- rougail separation
- black
- do not force use_data usage
- update tests
- version
- update tests
- update tests
- update tests, some errors are now in warnings level
- rename source
- add test without namespace
- update tests
- NAMESPACE. instead of NAMESPACE_
- improve rougail.user_datas method

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project]
name = "rougail.user_data_environment"
version = "1.0.0"
version = "1.0.0rc0"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
readme = "README.md"
description = "Rougail user_data environment"
@ -24,7 +24,7 @@ classifiers = [
]
dependencies = [
"rougail >= 1.2.0,<2",
"rougail >= 1.1,<2",
]
[project.urls]

View file

@ -1 +1 @@
__version__ = "1.0.0"
__version__ = "1.0.0rc0"

View file

@ -21,6 +21,7 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""
from .i18n import _

View file

@ -53,9 +53,7 @@ class RougailUserDataEnvironment:
self.with_secrets = True
self.custom_separator = rougailconfig["environment.custom_separator"]
if not rougailconfig["main_namespace"]:
self.default_environment_name = rougailconfig[
"environment.default_environment_name"
]
self.default_environment_name = rougailconfig["environment.default_environment_name"]
self.errors = []
self.warnings = []
@ -103,7 +101,7 @@ class RougailUserDataEnvironment:
def get_correct_envs(self):
for envvar, envval in os.environ.items():
if self.custom_separator:
envvar = envvar.replace(self.custom_separator, ".")
envvar = envvar.replace(self.custom_separator, '.')
for prefix in self.prefixes:
if envvar.startswith(prefix):
yield envvar, envval

View file

@ -20,9 +20,8 @@ from gettext import translation
from pathlib import Path
t = translation(
"rougail_user_data_environment",
str(Path(__file__).parent / "locale"),
fallback=True,
"rougail_user_data_environment", str(Path(__file__).parent / "locale"), fallback=True
)
_ = t.gettext