Skip to content

Commit

Permalink
0.5.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
s-m-e committed Dec 24, 2022
2 parents 9eb36bf + 750fc26 commit d05fc68
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: ["ubuntu-20.04"]
python-version: [3.7, 3.8, 3.9, "3.10"]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]

runs-on: ${{ matrix.os }}

Expand Down
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changes

## 0.5.0 (2022-12-24)

- FEATURE: Added support for Python 3.11.
- FEATURE: Deal with unexpected configuration parameters, transparently pass them through - required by `zugbruecke`.
- DEV: Cleanup of old workaround configuration parameter (zugbruecke#50). Moved mechanism to `zugbruecke` entirely.

## 0.4.1 (2022-09-11)

- DEV: Cleanup of `docs` folder structure.
Expand Down
2 changes: 1 addition & 1 deletion src/wenv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# IMPORT / EXPORT
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

__version__ = '0.4.1' # Bump version HERE!
__version__ = '0.5.0' # Bump version HERE!

from ._core.env import (
cli,
Expand Down
10 changes: 5 additions & 5 deletions src/wenv/_core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ class EnvConfig(dict):
"offline",
"cache",
"packages",
"_issues_50_workaround",
)

def __init__(self, **override: Any):
Expand Down Expand Up @@ -151,8 +150,6 @@ def __getitem__(self, key: str) -> Any:
return os.path.join(self["prefix"], "share", "wenv", "cache")
if key == "packages":
return os.path.join(self["cache"], "packages")
if key == "_issues_50_workaround":
return False # Workaround for zugbruecke issue #50 (symlinks ...)

raise KeyError("not a valid configuration key", key)

Expand All @@ -161,7 +158,10 @@ def export_dict(self) -> Dict[str, Any]:
Exports a dictionary.
"""

return {field: self[field] for field in self._KEYS}
return {
field: self[field]
for field in set(self._KEYS) | self.keys()
}

def export_envvar_dict(self) -> Dict[str, str]:
"""
Expand All @@ -170,7 +170,7 @@ def export_envvar_dict(self) -> Dict[str, str]:

return {
"WENV_" + field.upper(): "" if field is None else str(self[field])
for field in self._KEYS
for field in set(self._KEYS) | self.keys()
}

def _get_config_from_files(self) -> Dict:
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/param.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
get_latest_python_build(arch, 3, minor, builds = _builds)
for minor in range(
7, # min minor version
10 + 1, # max major version
11 + 1, # max major version
)
]
for arch in ARCHS
Expand Down

0 comments on commit d05fc68

Please sign in to comment.