Skip to content

Commit b4ffafb

Browse files
committed
fix: syntax warning in envshell, bump version to 1.0.1
1 parent 2ca9a43 commit b4ffafb

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
---
99

10+
## [1.0.1] - 2026-02-08
11+
12+
### Fixed
13+
- SyntaxWarning: invalid escape sequence in envstack shell
14+
15+
---
16+
1017
## [1.0.0] - 2026-02-08
1118

1219
### Added

lib/envstack/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"""
3535

3636
__prog__ = "envstack"
37-
__version__ = "1.0.0"
37+
__version__ = "1.0.1"
3838

3939
from envstack.env import clear, init, revert, save # noqa: F401
4040
from envstack.env import load_environ, resolve_environ # noqa: F401

lib/envstack/envshell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def get_shell_prompt(self) -> str:
131131
if os.name == "nt":
132132
return ("PROMPT", "$E[32m(${ENV:=${STACK}})$E[0m $P$G ")
133133
else:
134-
return ("PS1", "\[\e[32m\](${ENV:=${STACK}})\[\e[0m\] \w\$ ")
134+
return ("PS1", r"\[\e[32m\](${ENV:=${STACK}})\[\e[0m\] \w\$ ")
135135

136136
def get_subprocess_env(self):
137137
"""

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "envstack"
7-
version = "1.0.0"
7+
version = "1.0.1"
88
description = "Environment variable composition layer for tools and processes."
99
readme = { file = "README.md", content-type = "text/markdown" }
1010
requires-python = ">=3.6"

0 commit comments

Comments
 (0)