File tree Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 1
1
History
2
2
=======
3
3
4
+ 3.4.0 (in development)
5
+ ----------------------
6
+
7
+ Backwards incompatible changes:
8
+
9
+ * Drop support for Python 3.8. Thanks, Rob!
10
+
11
+ Fixes and features:
12
+
13
+ * Add support for Python 3.13. (#260) Thanks, Rob!
14
+
15
+ * Add support for underscore as first character in variable names in env files.
16
+ (#263)
17
+
18
+
4
19
3.3.0 (November 6th, 2023)
5
20
--------------------------
6
21
7
22
Backwards incompatible changes:
8
23
9
- * Dropped support for Python 3.7. (#220)
24
+ * Drop support for Python 3.7. (#220)
10
25
11
26
Fixes and features:
12
27
13
- * Added support for Python 3.12 (#221)
28
+ * Add support for Python 3.12 (#221)
14
29
15
30
* Fix env file parsing in regards to quotes. (#230)
16
31
Original file line number Diff line number Diff line change 55
55
56
56
57
57
# Regex for valid keys in an env file
58
- ENV_KEY_RE = re .compile (r"^[a-z ][a-z0-9_]*$" , flags = re .IGNORECASE )
58
+ ENV_KEY_RE = re .compile (r"^[a-z_ ][a-z0-9_]*$" , flags = re .IGNORECASE )
59
59
60
60
logger = logging .getLogger ("everett" )
61
61
Original file line number Diff line number Diff line change @@ -3,4 +3,8 @@ LOGLEVEL=walter
3
3
DEBUG = True
4
4
YOURE_NOT_A = golfer
5
5
6
+ # env var with quotes around value
6
7
DATABASE_URL = " sqlite:///kahlua.db"
8
+
9
+ # env var that starts with underscore
10
+ _TYPER_STANDARD_TRACEBACK = 1
Original file line number Diff line number Diff line change @@ -372,12 +372,14 @@ def test_ConfigEnvFileEnv(datadir):
372
372
assert cefe .get ("not_a" , namespace = "youre" ) == "golfer"
373
373
assert cefe .get ("loglevel" ) == "walter"
374
374
assert cefe .get ("LOGLEVEL" ) == "walter"
375
+ assert cefe .get ("_typer_standard_traceback" ) == "1"
375
376
assert cefe .get ("missing" ) is NO_VALUE
376
377
assert cefe .data == {
377
378
"LOGLEVEL" : "walter" ,
378
379
"DEBUG" : "True" ,
379
380
"YOURE_NOT_A" : "golfer" ,
380
381
"DATABASE_URL" : "sqlite:///kahlua.db" ,
382
+ "_TYPER_STANDARD_TRACEBACK" : "1" ,
381
383
}
382
384
383
385
cefe = ConfigEnvFileEnv (env_filename )
You can’t perform that action at this time.
0 commit comments