From a37d706f73f4f54a385a01e1cfc7cc494866b4ca Mon Sep 17 00:00:00 2001 From: "Sebastian M. Ernst" Date: Sun, 11 Sep 2022 15:43:59 +0200 Subject: [PATCH 1/8] new release cycle --- CHANGES.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 48514f5..df298d9 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # Changes +## 0.4.2 (2022-XX-XX) + +- (TBD) + ## 0.4.1 (2022-09-11) - DEV: Cleanup of `docs` folder structure. From 488041ea68ce27bc996993a8759438f1be551e18 Mon Sep 17 00:00:00 2001 From: "Sebastian M. Ernst" Date: Sun, 11 Sep 2022 15:44:55 +0200 Subject: [PATCH 2/8] new release cycle (2) --- src/wenv/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wenv/__init__.py b/src/wenv/__init__.py index e47263f..d6273c3 100644 --- a/src/wenv/__init__.py +++ b/src/wenv/__init__.py @@ -26,7 +26,7 @@ # IMPORT / EXPORT # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -__version__ = '0.4.1' # Bump version HERE! +__version__ = '0.4.2' # Bump version HERE! from ._core.env import ( cli, From 4c41543908c6445727fed8b61e4961d62672bb0f Mon Sep 17 00:00:00 2001 From: "Sebastian M. Ernst" Date: Sat, 24 Dec 2022 15:29:36 +0100 Subject: [PATCH 3/8] cleanup remains of old workaround -> moved to zugbruecke where it belongs --- src/wenv/_core/config.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/wenv/_core/config.py b/src/wenv/_core/config.py index b162360..225a7d2 100644 --- a/src/wenv/_core/config.py +++ b/src/wenv/_core/config.py @@ -67,7 +67,6 @@ class EnvConfig(dict): "offline", "cache", "packages", - "_issues_50_workaround", ) def __init__(self, **override: Any): @@ -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) From d2562cb3b4a9ec405af71b59105f43d8b0ee8f5d Mon Sep 17 00:00:00 2001 From: "Sebastian M. Ernst" Date: Sat, 24 Dec 2022 15:30:59 +0100 Subject: [PATCH 4/8] log changes --- CHANGES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index df298d9..a9a5544 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,7 +2,7 @@ ## 0.4.2 (2022-XX-XX) -- (TBD) +- DEV: Cleanup of old workaround configuration parameter (zugbruecke#50). Moved mechanism to `zugbruecke` entirely. ## 0.4.1 (2022-09-11) From 30c30a663c02cb6c9374182da02ff7caf1ec49a7 Mon Sep 17 00:00:00 2001 From: "Sebastian M. Ernst" Date: Sat, 24 Dec 2022 16:20:17 +0100 Subject: [PATCH 5/8] deal with unexpected configuration parameters --- src/wenv/_core/config.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/wenv/_core/config.py b/src/wenv/_core/config.py index 225a7d2..545c07b 100644 --- a/src/wenv/_core/config.py +++ b/src/wenv/_core/config.py @@ -158,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]: """ @@ -167,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: From 82b6542abdd30d63814db283cc11e7c2eaefd38a Mon Sep 17 00:00:00 2001 From: "Sebastian M. Ernst" Date: Sat, 24 Dec 2022 16:48:25 +0100 Subject: [PATCH 6/8] python 3.11 support --- .github/workflows/test.yaml | 2 +- tests/lib/param.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 084643e..de448ec 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 }} diff --git a/tests/lib/param.py b/tests/lib/param.py index b594787..6fd91ba 100644 --- a/tests/lib/param.py +++ b/tests/lib/param.py @@ -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 From 1441592f47aac8a904dc80147ff1c120ef944da2 Mon Sep 17 00:00:00 2001 From: "Sebastian M. Ernst" Date: Sat, 24 Dec 2022 16:48:53 +0100 Subject: [PATCH 7/8] log changes, bump to 0.5 --- CHANGES.md | 4 +++- src/wenv/__init__.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index a9a5544..de31da0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,7 +1,9 @@ # Changes -## 0.4.2 (2022-XX-XX) +## 0.5.0 (2022-XX-XX) +- 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) diff --git a/src/wenv/__init__.py b/src/wenv/__init__.py index d6273c3..9c98e0d 100644 --- a/src/wenv/__init__.py +++ b/src/wenv/__init__.py @@ -26,7 +26,7 @@ # IMPORT / EXPORT # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -__version__ = '0.4.2' # Bump version HERE! +__version__ = '0.5.0' # Bump version HERE! from ._core.env import ( cli, From 750fc26274a92982dd3110107a7d4dc351450341 Mon Sep 17 00:00:00 2001 From: "Sebastian M. Ernst" Date: Sat, 24 Dec 2022 17:27:44 +0100 Subject: [PATCH 8/8] prepare for release --- CHANGES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index de31da0..89cd643 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,6 @@ # Changes -## 0.5.0 (2022-XX-XX) +## 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`.