grz-cli 3.0.0__tar.gz → 3.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. {grz_cli-3.0.0 → grz_cli-3.0.1}/CHANGELOG.md +7 -0
  2. {grz_cli-3.0.0 → grz_cli-3.0.1}/PKG-INFO +4 -11
  3. {grz_cli-3.0.0 → grz_cli-3.0.1}/README.md +2 -9
  4. grz_cli-3.0.1/docs/version-compatibility-check.md +63 -0
  5. {grz_cli-3.0.0 → grz_cli-3.0.1}/pyproject.toml +1 -1
  6. grz_cli-3.0.1/src/grz_cli/__init__.py +1 -0
  7. grz_cli-3.0.0/docs/version-compatibility-check.md +0 -56
  8. grz_cli-3.0.0/src/grz_cli/__init__.py +0 -1
  9. {grz_cli-3.0.0 → grz_cli-3.0.1}/.gitignore +0 -0
  10. {grz_cli-3.0.0 → grz_cli-3.0.1}/LICENSE +0 -0
  11. {grz_cli-3.0.0 → grz_cli-3.0.1}/MANIFEST.in +0 -0
  12. {grz_cli-3.0.0 → grz_cli-3.0.1}/src/__init__.py +0 -0
  13. {grz_cli-3.0.0 → grz_cli-3.0.1}/src/grz_cli/cli.py +0 -0
  14. {grz_cli-3.0.0 → grz_cli-3.0.1}/src/grz_cli/commands/__init__.py +0 -0
  15. {grz_cli-3.0.0 → grz_cli-3.0.1}/src/grz_cli/commands/encrypt.py +0 -0
  16. {grz_cli-3.0.0 → grz_cli-3.0.1}/src/grz_cli/commands/get_id.py +0 -0
  17. {grz_cli-3.0.0 → grz_cli-3.0.1}/src/grz_cli/commands/submit.py +0 -0
  18. {grz_cli-3.0.0 → grz_cli-3.0.1}/src/grz_cli/commands/upload.py +0 -0
  19. {grz_cli-3.0.0 → grz_cli-3.0.1}/src/grz_cli/commands/validate.py +0 -0
  20. {grz_cli-3.0.0 → grz_cli-3.0.1}/src/grz_cli/models/__init__.py +0 -0
  21. {grz_cli-3.0.0 → grz_cli-3.0.1}/src/grz_cli/models/config.py +0 -0
  22. {grz_cli-3.0.0 → grz_cli-3.0.1}/src/grz_cli/py.typed +0 -0
  23. {grz_cli-3.0.0 → grz_cli-3.0.1}/src/grz_cli/utils/version_check.py +0 -0
  24. {grz_cli-3.0.0 → grz_cli-3.0.1}/tests/conftest.py +0 -0
  25. {grz_cli-3.0.0 → grz_cli-3.0.1}/tests/test_config.py +0 -0
  26. {grz_cli-3.0.0 → grz_cli-3.0.1}/tests/test_encrypt.py +0 -0
  27. {grz_cli-3.0.0 → grz_cli-3.0.1}/tests/test_smoke.py +0 -0
  28. {grz_cli-3.0.0 → grz_cli-3.0.1}/tests/test_submit.py +0 -0
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.0.1](https://github.com/BfArM-MVH/grz-tools/compare/grz-cli-v3.0.0...grz-cli-v3.0.1) (2026-10-22)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **grz-cli,grzctl:** require grz-common 4.0.2 ([#737](https://github.com/BfArM-MVH/grz-tools/issues/737)) ([6bc5d89](https://github.com/BfArM-MVH/grz-tools/commit/6bc5d8942bf3568ba1037a52f8fa0a97ace71b50))
9
+
3
10
  ## [3.0.0](https://github.com/BfArM-MVH/grz-tools/compare/grz-cli-v2.0.0...grz-cli-v3.0.0) (2026-09-26)
4
11
 
5
12
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: grz-cli
3
- Version: 3.0.0
3
+ Version: 3.0.1
4
4
  Summary: Tool for validation, encryption and upload of MV submissions to GDCs.
5
5
  Project-URL: Homepage, https://github.com/BfArM-MVH/grz-tools
6
6
  Project-URL: Repository, https://github.com/BfArM-MVH/grz-tools
@@ -13,7 +13,7 @@ Keywords: GDC,GRZ,S3
13
13
  Classifier: Operating System :: OS Independent
14
14
  Classifier: Programming Language :: Python :: 3
15
15
  Requires-Python: >=3.12
16
- Requires-Dist: grz-common<5,>=4
16
+ Requires-Dist: grz-common<5,>=4.0.2
17
17
  Requires-Dist: packaging<27,>=23
18
18
  Description-Content-Type: text/markdown
19
19
 
@@ -21,7 +21,6 @@ Description-Content-Type: text/markdown
21
21
 
22
22
  A command-line tool for validating, encrypting, and uploading submissions to a genomDE Model Project GDC (Genome Data Center).
23
23
 
24
-
25
24
  ## Table of Contents
26
25
 
27
26
  - [Installation](#installation)
@@ -38,7 +37,6 @@ A command-line tool for validating, encrypting, and uploading submissions to a g
38
37
  - [License](#license)
39
38
  - [Acknowledgements](#acknowledgements)
40
39
 
41
-
42
40
  ## Installation
43
41
 
44
42
  ### Requirements
@@ -53,7 +51,6 @@ For example:
53
51
  - Docker container
54
52
  - Windows Subsystem for Linux
55
53
 
56
-
57
54
  ### Using [Conda](https://conda.io) (recommended)
58
55
 
59
56
  If Conda is not yet available on your system, we recommend to install it through the [Miniforge Conda installer](https://github.com/conda-forge/miniforge) by running the following commands:
@@ -79,7 +76,6 @@ Use the following command to update the tool:
79
76
  conda update -n grz-tools -c conda-forge -c bioconda grz-cli
80
77
  ```
81
78
 
82
-
83
79
  ### Using pip (not recommended)
84
80
 
85
81
  While installation via `pip` is possible, it is not recommended because users should create/manage a Python virtual environment and must ensure that the correct Python version is being used.
@@ -96,7 +92,6 @@ Use the following command to update the tool:
96
92
  pip upgrade grz-cli
97
93
  ```
98
94
 
99
-
100
95
  ### Using Docker
101
96
 
102
97
  Docker images are available via biocontainers at [https://biocontainers.pro/tools/grz-cli](https://biocontainers.pro/tools/grz-cli).
@@ -120,7 +115,7 @@ The S3 secrets can either be directly within the config file or as defined with
120
115
 
121
116
  It is recommended to have the following folder structure for a single submission:
122
117
 
123
- ```
118
+ ```text
124
119
  EXAMPLE_SUBMISSION
125
120
  ├── files
126
121
  │ ├── aaaaaaaa00000000aaaaaaaa00000000_blood_normal.read1.fastq.gz
@@ -138,7 +133,6 @@ The only requirements are that `metadata/metadata.json` exists and the `files/`
138
133
  Data files may be nested under subfolders inside `files/` for better organization.
139
134
  For example, each donor could have their own folder for files.
140
135
 
141
-
142
136
  ### Example submission procedure
143
137
 
144
138
  After preparing your submission as outlined above, you can use the following command to validate, encrypt and upload the submission:
@@ -167,7 +161,6 @@ It combines the `validate`, `encrypt`, and `upload` commands (see below).
167
161
  grz-cli submit --submission-dir foo
168
162
  ```
169
163
 
170
-
171
164
  ### validate
172
165
 
173
166
  It is recommended to run this command before continuing with encryption and upload.
@@ -228,7 +221,7 @@ We recommend using Conda or [Pixi](https://pixi.sh/latest).
228
221
 
229
222
  After cloning the desired branch of the `grz-tools` repo locally, you can run `grz-cli` directly from the repo using:
230
223
 
231
- ```
224
+ ```text
232
225
  uv run --project path/to/cloned/grz-tools grz-cli --help
233
226
  ```
234
227
 
@@ -2,7 +2,6 @@
2
2
 
3
3
  A command-line tool for validating, encrypting, and uploading submissions to a genomDE Model Project GDC (Genome Data Center).
4
4
 
5
-
6
5
  ## Table of Contents
7
6
 
8
7
  - [Installation](#installation)
@@ -19,7 +18,6 @@ A command-line tool for validating, encrypting, and uploading submissions to a g
19
18
  - [License](#license)
20
19
  - [Acknowledgements](#acknowledgements)
21
20
 
22
-
23
21
  ## Installation
24
22
 
25
23
  ### Requirements
@@ -34,7 +32,6 @@ For example:
34
32
  - Docker container
35
33
  - Windows Subsystem for Linux
36
34
 
37
-
38
35
  ### Using [Conda](https://conda.io) (recommended)
39
36
 
40
37
  If Conda is not yet available on your system, we recommend to install it through the [Miniforge Conda installer](https://github.com/conda-forge/miniforge) by running the following commands:
@@ -60,7 +57,6 @@ Use the following command to update the tool:
60
57
  conda update -n grz-tools -c conda-forge -c bioconda grz-cli
61
58
  ```
62
59
 
63
-
64
60
  ### Using pip (not recommended)
65
61
 
66
62
  While installation via `pip` is possible, it is not recommended because users should create/manage a Python virtual environment and must ensure that the correct Python version is being used.
@@ -77,7 +73,6 @@ Use the following command to update the tool:
77
73
  pip upgrade grz-cli
78
74
  ```
79
75
 
80
-
81
76
  ### Using Docker
82
77
 
83
78
  Docker images are available via biocontainers at [https://biocontainers.pro/tools/grz-cli](https://biocontainers.pro/tools/grz-cli).
@@ -101,7 +96,7 @@ The S3 secrets can either be directly within the config file or as defined with
101
96
 
102
97
  It is recommended to have the following folder structure for a single submission:
103
98
 
104
- ```
99
+ ```text
105
100
  EXAMPLE_SUBMISSION
106
101
  ├── files
107
102
  │ ├── aaaaaaaa00000000aaaaaaaa00000000_blood_normal.read1.fastq.gz
@@ -119,7 +114,6 @@ The only requirements are that `metadata/metadata.json` exists and the `files/`
119
114
  Data files may be nested under subfolders inside `files/` for better organization.
120
115
  For example, each donor could have their own folder for files.
121
116
 
122
-
123
117
  ### Example submission procedure
124
118
 
125
119
  After preparing your submission as outlined above, you can use the following command to validate, encrypt and upload the submission:
@@ -148,7 +142,6 @@ It combines the `validate`, `encrypt`, and `upload` commands (see below).
148
142
  grz-cli submit --submission-dir foo
149
143
  ```
150
144
 
151
-
152
145
  ### validate
153
146
 
154
147
  It is recommended to run this command before continuing with encryption and upload.
@@ -209,7 +202,7 @@ We recommend using Conda or [Pixi](https://pixi.sh/latest).
209
202
 
210
203
  After cloning the desired branch of the `grz-tools` repo locally, you can run `grz-cli` directly from the repo using:
211
204
 
212
- ```
205
+ ```text
213
206
  uv run --project path/to/cloned/grz-tools grz-cli --help
214
207
  ```
215
208
 
@@ -0,0 +1,63 @@
1
+ # Version compatibility check
2
+
3
+ When you run `grz-cli`, it automatically checks whether your installed version is compatible with the current requirements.
4
+ If your version is too old, too new, or simply behind the recommended release, you will be informed before any submission processing tasks begin.
5
+
6
+ ## What happens when you run grz-cli
7
+
8
+ On startup, the tool fetches a version policy from a central location and compares it against your installed version.
9
+ Depending on the result, one of four things will happen:
10
+
11
+ | Situation | What you'll see | Does execution continue? |
12
+ | --------------------------------------------------- | -------------------- | ------------------------ |
13
+ | Your version is too old | Error message | No |
14
+ | Your version works but is behind the recommendation | Warning message | Yes |
15
+ | Your version is newer than the supported maximum | Error message | No |
16
+ | Your version is within the supported range | Confirmation message | Yes |
17
+
18
+ If no policy is currently in effect, the check is silently skipped and execution continues normally.
19
+
20
+ ## What the messages mean
21
+
22
+ **"Your grz-cli version is not supported"**
23
+
24
+ Your installed version is below the minimum required.
25
+ You must upgrade before you can continue.
26
+
27
+ ```text
28
+ Example message: Your grz-cli version (1.2.0) is not supported. Minimum required version is 1.5.0.
29
+ ```
30
+
31
+ **"Upgrading is strongly recommended"**
32
+
33
+ Your version meets the minimum requirement but is behind the recommended release.
34
+ You can continue, but upgrading is advised.
35
+
36
+ ```text
37
+ Example message: You are using grz-cli 1.5.0, but the recommended version is 1.7.0.
38
+ Upgrading is strongly recommended.
39
+ ```
40
+
41
+ **"grz-cli is within the supported and tested range"**
42
+
43
+ Your version is fully compatible.
44
+ No action is needed.
45
+
46
+ ```text
47
+ Example message: grz-cli 1.7.0 is within the supported and tested range.
48
+ ```
49
+
50
+ **"Version is newer than the maximum supported version"**
51
+
52
+ Your version is ahead of what has been tested and approved.
53
+ You must downgrade before you can continue.
54
+
55
+ ```text
56
+ Example message: grz-cli version 2.1.0 is newer than the maximum supported version (2.0.0).
57
+ ```
58
+
59
+ ## Why is there a maximum version limit?
60
+
61
+ Most tools only enforce a minimum version.
62
+ `grz-cli` also enforces an upper bound to prevent untested releases from being used in regulated submission workflows, where the exact toolchain version may need to match what was validated.
63
+ If you have installed a pre-release or a newer version than your organisation currently supports, downgrade to the approved version before submitting.
@@ -14,7 +14,7 @@ authors = [
14
14
  dynamic = ["version"]
15
15
  dependencies = [
16
16
  "packaging >=23,<27",
17
- "grz-common >=4,<5",
17
+ "grz-common >=4.0.2,<5",
18
18
  ]
19
19
  classifiers = [
20
20
  "Programming Language :: Python :: 3",
@@ -0,0 +1 @@
1
+ __version__ = "3.0.1"
@@ -1,56 +0,0 @@
1
- # Version compatibility check
2
-
3
- When you run `grz-cli`, it automatically checks whether your installed version is compatible with the current requirements. If your version is too old, too new, or simply behind the recommended release, you will be informed before any submission processing tasks begin.
4
-
5
- ## What happens when you run grz-cli
6
-
7
- On startup, the tool fetches a version policy from a central location and compares it against your installed version. Depending on the result, one of four things will happen:
8
-
9
- | Situation | What you'll see | Does execution continue? |
10
- |---|---|---|
11
- | Your version is too old | Error message | No |
12
- | Your version works but is behind the recommendation | Warning message | Yes |
13
- | Your version is newer than the supported maximum | Error message | No |
14
- | Your version is within the supported range | Confirmation message | Yes |
15
-
16
- If no policy is currently in effect, the check is silently skipped and execution continues normally.
17
-
18
- ## What the messages mean
19
-
20
- **"Your grz-cli version is not supported"**
21
-
22
- Your installed version is below the minimum required. You must upgrade before you can continue.
23
-
24
- ```
25
- Example message: Your grz-cli version (1.2.0) is not supported. Minimum required version is 1.5.0.
26
- ```
27
-
28
- **"Upgrading is strongly recommended"**
29
-
30
- Your version meets the minimum requirement but is behind the recommended release. You can continue, but upgrading is advised.
31
-
32
- ```
33
- Example message: You are using grz-cli 1.5.0, but the recommended version is 1.7.0.
34
- Upgrading is strongly recommended.
35
- ```
36
-
37
- **"grz-cli is within the supported and tested range"**
38
-
39
- Your version is fully compatible. No action is needed.
40
-
41
- ```
42
- Example message: grz-cli 1.7.0 is within the supported and tested range.
43
- ```
44
-
45
- **"Version is newer than the maximum supported version"**
46
-
47
- Your version is ahead of what has been tested and approved. You must downgrade before you can continue.
48
-
49
- ```
50
- Example message: grz-cli version 2.1.0 is newer than the maximum supported version (2.0.0).
51
- ```
52
-
53
-
54
- ## Why is there a maximum version limit?
55
-
56
- Most tools only enforce a minimum version. `grz-cli` also enforces an upper bound to prevent untested releases from being used in regulated submission workflows, where the exact toolchain version may need to match what was validated. If you have installed a pre-release or a newer version than your organisation currently supports, downgrade to the approved version before submitting.
@@ -1 +0,0 @@
1
- __version__ = "3.0.0"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes