Compare commits

...

3 commits

7 changed files with 38 additions and 138 deletions

View file

@ -1,142 +1,40 @@
## 0.1.0a20 (2026-06-15) ## 1.0.0 (2026-06-21)
### Fix
- translation
## 0.1.0a19 (2026-05-04)
### Feat ### Feat
- multi layers - 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 - 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 - default value for a calculated variable with an unknown optional variable
- update tests for integer type - 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 - 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 - new package
- auto create tested - auto create tested
### Fix ### 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 - improve rougail.user_datas method

View file

@ -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.0a20" version = "1.0.0"
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"
@ -24,7 +24,7 @@ classifiers = [
] ]
dependencies = [ dependencies = [
"rougail >= 1.1,<2", "rougail >= 1.2.0,<2",
] ]
[project.urls] [project.urls]

View file

@ -1 +1 @@
__version__ = "0.1.0a20" __version__ = "1.0.0"

View file

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

View file

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

View file

@ -20,8 +20,9 @@ from gettext import translation
from pathlib import Path from pathlib import Path
t = translation( 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 _ = t.gettext