From 866c0bbb90f8ed6660cba4bda0da1689a103dccf Mon Sep 17 00:00:00 2001 From: Stephen Rosen Date: Fri, 4 Nov 2022 17:24:56 +0000 Subject: [PATCH] Add missing changelog --- ...0221104_145601_sirosen_add_scope_parsing.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 changelog.d/20221104_145601_sirosen_add_scope_parsing.rst diff --git a/changelog.d/20221104_145601_sirosen_add_scope_parsing.rst b/changelog.d/20221104_145601_sirosen_add_scope_parsing.rst new file mode 100644 index 000000000..080042cb7 --- /dev/null +++ b/changelog.d/20221104_145601_sirosen_add_scope_parsing.rst @@ -0,0 +1,17 @@ +* Enhance scope utilities with scope parsing, attached to + ``globus_sdk.scopes.Scope`` (:pr:`NUMBER`) + + * ``MutableScope`` has been renamed to ``Scope``. Both names remain available + for backwards compatibility, but the preferred name is now ``Scope`` + + * ``Scope.parse`` and ``Scope.deserialize`` can now be used to parse strings + into ``Scope``\s + + * ``Scope(...).serialize()`` is added, and ``str(Scope(...))`` uses it + + * ``Scope.add_dependency`` now supports ``Scope`` objects as inputs + + * The ``optional`` argument to ``add_dependency`` is deprecated. + ``Scope(...).add_dependency("*foo")`` can be used to add an optional + dependency as a string, or equivalently + ``Scope(...).add_dependency(Scope("foo", optional=True))``