From ea6d6a5c30d57753eb977fefb758e04f9d68c613 Mon Sep 17 00:00:00 2001 From: Roman Skurikhin Date: Tue, 21 Dec 2021 12:00:51 +0200 Subject: [PATCH] Bump to 21.12.0 --- CHANGELOG.D/2434.bugfix | 1 - CHANGELOG.D/2436.feature | 1 - CHANGELOG.D/2449.feature | 32 ----------------- CHANGELOG.D/2453.feature | 1 - CHANGELOG.D/2454.feature | 1 - CHANGELOG.D/2465.feature | 7 ---- CHANGELOG.md | 56 +++++++++++++++++++++++++++++ VERSION.txt | 2 +- neuro-cli/setup.cfg | 4 +-- neuro-cli/src/neuro_cli/__init__.py | 2 +- neuro-sdk/setup.cfg | 2 +- neuro-sdk/src/neuro_sdk/__init__.py | 2 +- 12 files changed, 62 insertions(+), 49 deletions(-) delete mode 100644 CHANGELOG.D/2434.bugfix delete mode 100644 CHANGELOG.D/2436.feature delete mode 100644 CHANGELOG.D/2449.feature delete mode 100644 CHANGELOG.D/2453.feature delete mode 100644 CHANGELOG.D/2454.feature delete mode 100644 CHANGELOG.D/2465.feature diff --git a/CHANGELOG.D/2434.bugfix b/CHANGELOG.D/2434.bugfix deleted file mode 100644 index ae2c1b224..000000000 --- a/CHANGELOG.D/2434.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix command description for `neuro admin show-cluster-options`. diff --git a/CHANGELOG.D/2436.feature b/CHANGELOG.D/2436.feature deleted file mode 100644 index daa1d373d..000000000 --- a/CHANGELOG.D/2436.feature +++ /dev/null @@ -1 +0,0 @@ -Merge `config show-quota` into `config show` CLI command. diff --git a/CHANGELOG.D/2449.feature b/CHANGELOG.D/2449.feature deleted file mode 100644 index 457f79719..000000000 --- a/CHANGELOG.D/2449.feature +++ /dev/null @@ -1,32 +0,0 @@ -Added admin commands to manager orgs and org-clusters: - -Managing orgs: - -- `neuro admin get-orgs` Print the list of available orgs user has access to. -- `neuro admin add-org ` Create a new org. -- `neuro admin remove-org ` Drop a org. Removes all memberships, very dangerous operation. - -Managing org members: - -- `neuro admin get-org-users ` List all members of orgs. -- `neuro admin add-org-user ` Add user to the org. -- `neuro admin remove-org-user ` Remove user from the org. - -Managing access of orgs to clusters: - -- `neuro admin get-org-clusters ` Print the list of all orgs in the cluster -- `neuro admin add-org-cluster ` Add org access to specified cluster -- `neuro admin get-org-cluster-quota ` Get info about org quota in given cluster -- `neuro admin set-org-cluster-quota [options] ` Set org cluster quota to given values -- `neuro admin set-org-cluster-credits [options] ` Set org cluster credits to given value -- `neuro admin add-org-cluster-credits [options] ` Add given values to org cluster balance - -Manging access of org members to clusters: - -- `neuro admin get-cluster-users --org ` List all members of orgs added to cluster -- `neuro admin add-cluster-user --org ` Add org member to cluster -- `neuro admin remove-cluster-user --org ` Remove org member user from the cluster. -- `neuro admin get-user-quota --org ` Get info about org member quota in given cluster -- `neuro admin set-user-quota [options] --org ` Set org member quota in cluster to given values -- `neuro admin set-user-credits [options] --org ` Set org member credits in cluster to given value -- `neuro admin add-user-credits [options] --org ` Add given values to org member balance in cluster diff --git a/CHANGELOG.D/2453.feature b/CHANGELOG.D/2453.feature deleted file mode 100644 index 59f313da8..000000000 --- a/CHANGELOG.D/2453.feature +++ /dev/null @@ -1 +0,0 @@ -Option `-j`/`--jobs` in `neuro admin set-user-quota` is now required. Pass `unlimited` for setting no limit. Negative values are now rejected. diff --git a/CHANGELOG.D/2454.feature b/CHANGELOG.D/2454.feature deleted file mode 100644 index c76d64221..000000000 --- a/CHANGELOG.D/2454.feature +++ /dev/null @@ -1 +0,0 @@ -Option `-c`/`--credits` in `neuro admin set-user-credits` and `neuro admin add-user-credits` is now required. Pass "unlimited" in `neuro admin set-user-credits` for setting no limit. Values "infinity", "nan" etc are now rejected. diff --git a/CHANGELOG.D/2465.feature b/CHANGELOG.D/2465.feature deleted file mode 100644 index cd7d8127f..000000000 --- a/CHANGELOG.D/2465.feature +++ /dev/null @@ -1,7 +0,0 @@ -Added initial support of organizations. - -Current organization is displayed in `neuro config show`. It can be changed using `neuro config switch-org`. To least -organizations you have access to in each cluster, use `neuro config get-clusters`. - -Also you can now run job on behalf of organization. By default, `neuro run` will use current organization, but you -can override it using `neuro run --org `. diff --git a/CHANGELOG.md b/CHANGELOG.md index bf1604967..5deeb1a1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,62 @@ [comment]: # (towncrier release notes start) +Neuro SDK/CLI 21.12.0 (2021-12-21) +================================== + +Features +-------- + +- Merge `config show-quota` into `config show` CLI command. ([#2436](https://github.com/neuro-inc/platform-client-python/issues/2436)) +- Added admin commands to manager orgs and org-clusters: + + Managing orgs: + + - `neuro admin get-orgs` Print the list of available orgs user has access to. + - `neuro admin add-org ` Create a new org. + - `neuro admin remove-org ` Drop a org. Removes all memberships, very dangerous operation. + + Managing org members: + + - `neuro admin get-org-users ` List all members of orgs. + - `neuro admin add-org-user ` Add user to the org. + - `neuro admin remove-org-user ` Remove user from the org. + + Managing access of orgs to clusters: + + - `neuro admin get-org-clusters ` Print the list of all orgs in the cluster + - `neuro admin add-org-cluster ` Add org access to specified cluster + - `neuro admin get-org-cluster-quota ` Get info about org quota in given cluster + - `neuro admin set-org-cluster-quota [options] ` Set org cluster quota to given values + - `neuro admin set-org-cluster-credits [options] ` Set org cluster credits to given value + - `neuro admin add-org-cluster-credits [options] ` Add given values to org cluster balance + + Manging access of org members to clusters: + + - `neuro admin get-cluster-users --org ` List all members of orgs added to cluster + - `neuro admin add-cluster-user --org ` Add org member to cluster + - `neuro admin remove-cluster-user --org ` Remove org member user from the cluster. + - `neuro admin get-user-quota --org ` Get info about org member quota in given cluster + - `neuro admin set-user-quota [options] --org ` Set org member quota in cluster to given values + - `neuro admin set-user-credits [options] --org ` Set org member credits in cluster to given value + - `neuro admin add-user-credits [options] --org ` Add given values to org member balance in cluster ([#2449](https://github.com/neuro-inc/platform-client-python/issues/2449)) +- Option `-j`/`--jobs` in `neuro admin set-user-quota` is now required. Pass `unlimited` for setting no limit. Negative values are now rejected. ([#2453](https://github.com/neuro-inc/platform-client-python/issues/2453)) +- Option `-c`/`--credits` in `neuro admin set-user-credits` and `neuro admin add-user-credits` is now required. Pass "unlimited" in `neuro admin set-user-credits` for setting no limit. Values "infinity", "nan" etc are now rejected. ([#2454](https://github.com/neuro-inc/platform-client-python/issues/2454)) +- Added support of organizations. + + Current organization is displayed in `neuro config show`. It can be changed using `neuro config switch-org`. To least + organizations you have access to in each cluster, use `neuro config get-clusters`. + + Also you can run job on behalf of organization. By default, `neuro run` will use current organization, but you + can override it using `neuro run --org `. ([#2465](https://github.com/neuro-inc/platform-client-python/issues/2465)) + + +Bugfixes +-------- + +- Fix command description for `neuro admin show-cluster-options`. ([#2434](https://github.com/neuro-inc/platform-client-python/issues/2434)) + + Neuro SDK/CLI 21.11.4 (2021-11-25) ================================== diff --git a/VERSION.txt b/VERSION.txt index add57ffbb..17c153822 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1,4 +1,4 @@ # Global version number, # Update the file and run 'make fmt' to apply it everywhere -21.11.4 +21.12.0 diff --git a/neuro-cli/setup.cfg b/neuro-cli/setup.cfg index 833549d9f..5e04bf9b5 100644 --- a/neuro-cli/setup.cfg +++ b/neuro-cli/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = neuro-cli -version = 21.11.4 +version = 21.12.0 description = Neuro Platform client url = https://github.com/neuro-inc/platform-client-python long_description = file: README.md @@ -35,7 +35,7 @@ include_package_data = True install_requires = python-jose>=3.0.0 python-dateutil>=2.7.0 - neuro-sdk>=21.11.4 + neuro-sdk>=21.12.0 click>=8.0 humanize>=3.3 typing_extensions>=3.7.4 diff --git a/neuro-cli/src/neuro_cli/__init__.py b/neuro-cli/src/neuro_cli/__init__.py index 5acf68d21..4f86417dc 100644 --- a/neuro-cli/src/neuro_cli/__init__.py +++ b/neuro-cli/src/neuro_cli/__init__.py @@ -1 +1 @@ -__version__ = "21.11.4" +__version__ = "21.12.0" diff --git a/neuro-sdk/setup.cfg b/neuro-sdk/setup.cfg index d53eca157..6c868d0b7 100644 --- a/neuro-sdk/setup.cfg +++ b/neuro-sdk/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = neuro-sdk -version = 21.11.4 +version = 21.12.0 description = Neu.ro SDK url = https://github.com/neuro-inc/platform-client-python long_description = file: README.md diff --git a/neuro-sdk/src/neuro_sdk/__init__.py b/neuro-sdk/src/neuro_sdk/__init__.py index 7679e1e2d..2322106e3 100644 --- a/neuro-sdk/src/neuro_sdk/__init__.py +++ b/neuro-sdk/src/neuro_sdk/__init__.py @@ -109,7 +109,7 @@ from ._users import Action, Permission, Quota, Share, Users from ._utils import _ContextManager, find_project_root -__version__ = "21.11.4" +__version__ = "21.12.0" __all__ = (