omero_quay 1.0.0__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 (246) hide show
  1. omero_quay-1.0.0/.git_archival.txt +4 -0
  2. omero_quay-1.0.0/.gitattributes +1 -0
  3. omero_quay-1.0.0/.gitignore +152 -0
  4. omero_quay-1.0.0/.gitlab-ci.yml +71 -0
  5. omero_quay-1.0.0/.pre-commit-config.yaml +75 -0
  6. omero_quay-1.0.0/.readthedocs.yml +21 -0
  7. omero_quay-1.0.0/LICENSE +162 -0
  8. omero_quay-1.0.0/PKG-INFO +370 -0
  9. omero_quay-1.0.0/README.md +147 -0
  10. omero_quay-1.0.0/docs/Makefile +20 -0
  11. omero_quay-1.0.0/docs/make.bat +35 -0
  12. omero_quay-1.0.0/docs/misc/example_manifest.json +2425 -0
  13. omero_quay-1.0.0/docs/misc/example_manifest.yml +1250 -0
  14. omero_quay-1.0.0/docs/misc/example_manifest_all_checked.json +2434 -0
  15. omero_quay-1.0.0/docs/misc/example_manifest_error.json +2428 -0
  16. omero_quay-1.0.0/docs/misc/import_route.svg +1365 -0
  17. omero_quay-1.0.0/docs/misc/isa_mapping.svg +169 -0
  18. omero_quay-1.0.0/docs/misc/message_flows.svg +1454 -0
  19. omero_quay-1.0.0/docs/misc/notebooks/Mapping.ipynb +914 -0
  20. omero_quay-1.0.0/docs/misc/notebooks/sandbox.ipynb +792 -0
  21. omero_quay-1.0.0/docs/misc/notebooks/sandbox_barnouin-t.ipynb +800 -0
  22. omero_quay-1.0.0/docs/misc/notebooks/sandbox_marc.ipynb +799 -0
  23. omero_quay-1.0.0/docs/misc/notebooks/test_import.ipynb +223 -0
  24. omero_quay-1.0.0/docs/misc/services-architecture.svg +1621 -0
  25. omero_quay-1.0.0/docs/misc/tree.svg +1695 -0
  26. omero_quay-1.0.0/docs/misc/valid_excel.md +57 -0
  27. omero_quay-1.0.0/docs/misc/webclient.svg +1099 -0
  28. omero_quay-1.0.0/docs/source/conf.py +63 -0
  29. omero_quay-1.0.0/docs/source/index.rst +24 -0
  30. omero_quay-1.0.0/environment.yml +9 -0
  31. omero_quay-1.0.0/noxfile.py +71 -0
  32. omero_quay-1.0.0/pyproject.toml +165 -0
  33. omero_quay-1.0.0/scripts/atk2smb.py +59 -0
  34. omero_quay-1.0.0/scripts/desktop_cli.py +66 -0
  35. omero_quay-1.0.0/scripts/excel_import.py +16 -0
  36. omero_quay-1.0.0/scripts/manage_users.py +63 -0
  37. omero_quay-1.0.0/scripts/run_service.py +33 -0
  38. omero_quay-1.0.0/scripts/simple_cli.py +94 -0
  39. omero_quay-1.0.0/scripts/sync_log_excel.py +41 -0
  40. omero_quay-1.0.0/scripts/useradd_cli.py +57 -0
  41. omero_quay-1.0.0/shell.nix +24 -0
  42. omero_quay-1.0.0/src/omero_quay/__init__.py +11 -0
  43. omero_quay-1.0.0/src/omero_quay/_compat/__init__.py +5 -0
  44. omero_quay-1.0.0/src/omero_quay/_compat/typing.py +14 -0
  45. omero_quay-1.0.0/src/omero_quay/clients/__init__.py +0 -0
  46. omero_quay-1.0.0/src/omero_quay/clients/excel.py +48 -0
  47. omero_quay-1.0.0/src/omero_quay/clients/http.py +0 -0
  48. omero_quay-1.0.0/src/omero_quay/core/__init__.py +0 -0
  49. omero_quay-1.0.0/src/omero_quay/core/config.py +64 -0
  50. omero_quay-1.0.0/src/omero_quay/core/connect.py +196 -0
  51. omero_quay-1.0.0/src/omero_quay/core/generator.py +140 -0
  52. omero_quay-1.0.0/src/omero_quay/core/http_handler.py +101 -0
  53. omero_quay-1.0.0/src/omero_quay/core/interface.py +241 -0
  54. omero_quay-1.0.0/src/omero_quay/core/manifest.py +1004 -0
  55. omero_quay-1.0.0/src/omero_quay/core/quay.py +110 -0
  56. omero_quay-1.0.0/src/omero_quay/core/quay.yml +96 -0
  57. omero_quay-1.0.0/src/omero_quay/core/utils.py +93 -0
  58. omero_quay-1.0.0/src/omero_quay/core/workers.py +260 -0
  59. omero_quay-1.0.0/src/omero_quay/managers/__init__.py +0 -0
  60. omero_quay-1.0.0/src/omero_quay/managers/filesystem.py +218 -0
  61. omero_quay-1.0.0/src/omero_quay/managers/irods.py +671 -0
  62. omero_quay-1.0.0/src/omero_quay/managers/manager.py +150 -0
  63. omero_quay-1.0.0/src/omero_quay/managers/omero.py +802 -0
  64. omero_quay-1.0.0/src/omero_quay/mdp/client.py +43 -0
  65. omero_quay-1.0.0/src/omero_quay/mdp/main.py +131 -0
  66. omero_quay-1.0.0/src/omero_quay/mdp/scheduler.py +176 -0
  67. omero_quay-1.0.0/src/omero_quay/mdp/worker.py +135 -0
  68. omero_quay-1.0.0/src/omero_quay/parsers/__init__.py +0 -0
  69. omero_quay-1.0.0/src/omero_quay/parsers/errors.py +22 -0
  70. omero_quay-1.0.0/src/omero_quay/parsers/excel.py +215 -0
  71. omero_quay-1.0.0/src/omero_quay/parsers/filesystem.py +105 -0
  72. omero_quay-1.0.0/src/omero_quay/parsers/parsing_exceptions.py +15 -0
  73. omero_quay-1.0.0/src/omero_quay/parsers/validate_excel.py +364 -0
  74. omero_quay-1.0.0/src/omero_quay/py.typed +0 -0
  75. omero_quay-1.0.0/src/omero_quay/schema/__init__.py +8 -0
  76. omero_quay-1.0.0/src/omero_quay/schema/example.yml +48 -0
  77. omero_quay-1.0.0/src/omero_quay/schema/manifest-schema.yml +592 -0
  78. omero_quay-1.0.0/src/omero_quay/users/__init__.py +7 -0
  79. omero_quay-1.0.0/src/omero_quay/users/authentik.py +61 -0
  80. omero_quay-1.0.0/src/omero_quay/users/crud_user.py +53 -0
  81. omero_quay-1.0.0/src/omero_quay/users/irods.py +34 -0
  82. omero_quay-1.0.0/src/omero_quay/users/ldap.py +79 -0
  83. omero_quay-1.0.0/src/omero_quay/users/manage.py +77 -0
  84. omero_quay-1.0.0/src/omero_quay/users/omero.py +102 -0
  85. omero_quay-1.0.0/src/omero_quay/users/samba.py +124 -0
  86. omero_quay-1.0.0/src/omero_quay/watchers/__init__.py +0 -0
  87. omero_quay-1.0.0/src/omero_quay/watchers/omero.py +258 -0
  88. omero_quay-1.0.0/src/omero_quay/watchers/watcher.py +58 -0
  89. omero_quay-1.0.0/src/quay_import/__init__.py +17 -0
  90. omero_quay-1.0.0/src/quay_import/json_tests/example_manifest.json +2425 -0
  91. omero_quay-1.0.0/src/quay_import/json_tests/example_manifest_all_checked.json +2434 -0
  92. omero_quay-1.0.0/src/quay_import/json_tests/example_manifest_error.json +2428 -0
  93. omero_quay-1.0.0/src/quay_import/settings.py +30 -0
  94. omero_quay-1.0.0/src/quay_import/static/app.css +205 -0
  95. omero_quay-1.0.0/src/quay_import/static/assets/changed-arrows.png +0 -0
  96. omero_quay-1.0.0/src/quay_import/static/assets/check-mark.png +0 -0
  97. omero_quay-1.0.0/src/quay_import/static/assets/cross-mark.png +0 -0
  98. omero_quay-1.0.0/src/quay_import/static/assets/ok-button.png +0 -0
  99. omero_quay-1.0.0/src/quay_import/static/assets/play-button.png +0 -0
  100. omero_quay-1.0.0/src/quay_import/static/assets/sos-button.png +0 -0
  101. omero_quay-1.0.0/src/quay_import/static/quay_import/app.js +42 -0
  102. omero_quay-1.0.0/src/quay_import/templates/quay_import/index.html +222 -0
  103. omero_quay-1.0.0/src/quay_import/templates/quay_import/manifest.html +61 -0
  104. omero_quay-1.0.0/src/quay_import/urls.py +28 -0
  105. omero_quay-1.0.0/src/quay_import/views.py +206 -0
  106. omero_quay-1.0.0/tests/README.md +35 -0
  107. omero_quay-1.0.0/tests/conftest.py +214 -0
  108. omero_quay-1.0.0/tests/containers/README.md +29 -0
  109. omero_quay-1.0.0/tests/containers/cleanup.sh +8 -0
  110. omero_quay-1.0.0/tests/containers/create_users.py +23 -0
  111. omero_quay-1.0.0/tests/containers/docker-compose.yml +174 -0
  112. omero_quay-1.0.0/tests/containers/exemple.env +3 -0
  113. omero_quay-1.0.0/tests/containers/get_data.sh +16 -0
  114. omero_quay-1.0.0/tests/containers/irods_catalog_provider/Dockerfile +51 -0
  115. omero_quay-1.0.0/tests/containers/irods_catalog_provider/entrypoint.sh +13 -0
  116. omero_quay-1.0.0/tests/containers/irods_catalog_provider/server_config.json +170 -0
  117. omero_quay-1.0.0/tests/containers/irods_catalog_provider/setup-4.3.0.input +26 -0
  118. omero_quay-1.0.0/tests/containers/irods_catalog_provider/setup-4.3.1.input +26 -0
  119. omero_quay-1.0.0/tests/containers/irods_client_nfsrods/nfsrods_config/exports +1 -0
  120. omero_quay-1.0.0/tests/containers/irods_client_nfsrods/nfsrods_config/log4j.properties +25 -0
  121. omero_quay-1.0.0/tests/containers/irods_client_nfsrods/nfsrods_config/server.json +21 -0
  122. omero_quay-1.0.0/tests/containers/irods_client_nfsrods/nfsrods_mount/home/omero-server/test +0 -0
  123. omero_quay-1.0.0/tests/containers/irods_client_nfsrods/passwd +2 -0
  124. omero_quay-1.0.0/tests/containers/omero-server-quay/50-config.py +24 -0
  125. omero_quay-1.0.0/tests/containers/omero-server-quay/60-database.sh +46 -0
  126. omero_quay-1.0.0/tests/containers/omero-server-quay/90-quay_server.sh +3 -0
  127. omero_quay-1.0.0/tests/containers/omero-server-quay/99-run.sh +8 -0
  128. omero_quay-1.0.0/tests/containers/omero-server-quay/Dockerfile +68 -0
  129. omero_quay-1.0.0/tests/containers/omero-server-quay/entrypoint.sh +11 -0
  130. omero_quay-1.0.0/tests/containers/omero-server-quay/install_quay.sh +29 -0
  131. omero_quay-1.0.0/tests/containers/omero-server-quay/playbook.yml +19 -0
  132. omero_quay-1.0.0/tests/containers/omero-server-quay/requirements.yml +2 -0
  133. omero_quay-1.0.0/tests/containers/omero-web-quay/01-default-webapps.omero +62 -0
  134. omero_quay-1.0.0/tests/containers/omero-web-quay/50-config.py +28 -0
  135. omero_quay-1.0.0/tests/containers/omero-web-quay/60-default-web-config.sh +11 -0
  136. omero_quay-1.0.0/tests/containers/omero-web-quay/98-cleanprevious.sh +7 -0
  137. omero_quay-1.0.0/tests/containers/omero-web-quay/99-run.sh +10 -0
  138. omero_quay-1.0.0/tests/containers/omero-web-quay/Dockerfile +115 -0
  139. omero_quay-1.0.0/tests/containers/omero-web-quay/LICENSE.md +22 -0
  140. omero_quay-1.0.0/tests/containers/omero-web-quay/Makefile +109 -0
  141. omero_quay-1.0.0/tests/containers/omero-web-quay/README.md +90 -0
  142. omero_quay-1.0.0/tests/containers/omero-web-quay/SUPPORT.md +8 -0
  143. omero_quay-1.0.0/tests/containers/omero-web-quay/build.sh +49 -0
  144. omero_quay-1.0.0/tests/containers/omero-web-quay/entrypoint.sh +11 -0
  145. omero_quay-1.0.0/tests/containers/omero-web-quay/ice.config +3 -0
  146. omero_quay-1.0.0/tests/containers/omero-web-quay/images/folder16.png +0 -0
  147. omero_quay-1.0.0/tests/containers/omero-web-quay/images/folder_image16.png +0 -0
  148. omero_quay-1.0.0/tests/containers/omero-web-quay/images/group_green16.png +0 -0
  149. omero_quay-1.0.0/tests/containers/omero-web-quay/images/group_orange16.png +0 -0
  150. omero_quay-1.0.0/tests/containers/omero-web-quay/images/group_red16.png +0 -0
  151. omero_quay-1.0.0/tests/containers/omero-web-quay/images/personal16.png +0 -0
  152. omero_quay-1.0.0/tests/containers/omero-web-quay/playbook.yml +22 -0
  153. omero_quay-1.0.0/tests/containers/omero-web-quay/requirements.yml +16 -0
  154. omero_quay-1.0.0/tests/containers/omero-web-quay/style/login.html +182 -0
  155. omero_quay-1.0.0/tests/containers/omero-web-quay/style/ome.login.css +285 -0
  156. omero_quay-1.0.0/tests/containers/omero-web-quay/test_getweb.sh +23 -0
  157. omero_quay-1.0.0/tests/containers/populate.sh +6 -0
  158. omero_quay-1.0.0/tests/containers/quay_client.yml +63 -0
  159. omero_quay-1.0.0/tests/containers/quay_docker/Dockerfile +28 -0
  160. omero_quay-1.0.0/tests/containers/quay_docker/entrypoint.sh +29 -0
  161. omero_quay-1.0.0/tests/containers/quay_docker/irods/.irodsA +0 -0
  162. omero_quay-1.0.0/tests/containers/quay_docker/irods/irods_environment.json +6 -0
  163. omero_quay-1.0.0/tests/containers/quay_docker/irods_auto_ingest.sh +8 -0
  164. omero_quay-1.0.0/tests/containers/quay_docker/old/quay.yml +48 -0
  165. omero_quay-1.0.0/tests/containers/quay_docker/quay.yml +53 -0
  166. omero_quay-1.0.0/tests/containers/quay_docker/up.sh +10 -0
  167. omero_quay-1.0.0/tests/containers/quay_docker_host.yml +95 -0
  168. omero_quay-1.0.0/tests/containers/quay_server.yml +86 -0
  169. omero_quay-1.0.0/tests/containers/quay_tester.yml +93 -0
  170. omero_quay-1.0.0/tests/containers/quay_web.yml +78 -0
  171. omero_quay-1.0.0/tests/containers/restart_omero-server.sh +7 -0
  172. omero_quay-1.0.0/tests/containers/up.sh +161 -0
  173. omero_quay-1.0.0/tests/excel_files/Split_test/test_ingest_import_part1.xlsx +0 -0
  174. omero_quay-1.0.0/tests/excel_files/Split_test/test_ingest_import_part2.xlsx +0 -0
  175. omero_quay-1.0.0/tests/excel_files/assay_atleast_one_path_is_subpath_of_one_path_sheet.xlsx +0 -0
  176. omero_quay-1.0.0/tests/excel_files/assay_owner_is_absent_contributor_sheet.xlsx +0 -0
  177. omero_quay-1.0.0/tests/excel_files/assay_parent_is_invalid_study_sheet.xlsx +0 -0
  178. omero_quay-1.0.0/tests/excel_files/invalid_excel_structure/assay_atleast_one_path_is_the_same_sheet.xlsx +0 -0
  179. omero_quay-1.0.0/tests/excel_files/invalid_excel_structure/assay_no_owners_sheet.xlsx +0 -0
  180. omero_quay-1.0.0/tests/excel_files/invalid_excel_structure/investigation_no_name_sheet.xlsx +0 -0
  181. omero_quay-1.0.0/tests/excel_files/invalid_excel_structure/investigation_shared_contributor_collaborator_sheet.xlsx +0 -0
  182. omero_quay-1.0.0/tests/excel_files/invalid_excel_structure/investigation_shared_owner_collaborator_sheet.xlsx +0 -0
  183. omero_quay-1.0.0/tests/excel_files/invalid_excel_structure/investigation_shared_owner_contributor_sheet.xlsx +0 -0
  184. omero_quay-1.0.0/tests/excel_files/invalid_excel_structure/investigation_space_in_name_sheet.xlsx +0 -0
  185. omero_quay-1.0.0/tests/excel_files/invalid_excel_structure/study_invalid_parent_investigation_sheet.xlsx +0 -0
  186. omero_quay-1.0.0/tests/excel_files/invalid_excel_structure/study_no_name_entry.xlsx +0 -0
  187. omero_quay-1.0.0/tests/excel_files/invalid_excel_structure/study_no_name_sheet.xlsx +0 -0
  188. omero_quay-1.0.0/tests/excel_files/investigation_bad_name_sheet.xlsx +0 -0
  189. omero_quay-1.0.0/tests/excel_files/investigation_empty_collaborators_and_contributors_sheet.xlsx +0 -0
  190. omero_quay-1.0.0/tests/excel_files/missing_excel_sheet/no_assay_sheet.xlsx +0 -0
  191. omero_quay-1.0.0/tests/excel_files/missing_excel_sheet/no_investigation_sheet.xlsx +0 -0
  192. omero_quay-1.0.0/tests/excel_files/missing_excel_sheet/no_study_sheet.xlsx +0 -0
  193. omero_quay-1.0.0/tests/excel_files/missing_excel_sheet/no_user_sheet.xlsx +0 -0
  194. omero_quay-1.0.0/tests/excel_files/no_existing_omero_user/investigation_invalid_collaborators_sheet.xlsx +0 -0
  195. omero_quay-1.0.0/tests/excel_files/no_existing_omero_user/investigation_invalid_contributors_sheet.xlsx +0 -0
  196. omero_quay-1.0.0/tests/excel_files/no_existing_omero_user/investigation_invalid_manager_sheet.xlsx +0 -0
  197. omero_quay-1.0.0/tests/excel_files/no_existing_omero_user/investigation_invalid_owner_sheet.xlsx +0 -0
  198. omero_quay-1.0.0/tests/excel_files/no_valid_user/assay_absent_owner_sheet.xlsx +0 -0
  199. omero_quay-1.0.0/tests/excel_files/no_valid_user/assay_invalid_owner_sheet.xlsx +0 -0
  200. omero_quay-1.0.0/tests/excel_files/no_valid_user/investigation_manager_is_absent_sheet.xlsx +0 -0
  201. omero_quay-1.0.0/tests/excel_files/no_valid_user/investigation_owner_is_absent_sheet.xlsx +0 -0
  202. omero_quay-1.0.0/tests/excel_files/no_valid_user/investigation_two_managers_sheet.xlsx +0 -0
  203. omero_quay-1.0.0/tests/excel_files/no_valid_user/study_absent_owner_sheet.xlsx +0 -0
  204. omero_quay-1.0.0/tests/excel_files/no_valid_user/study_invalid_owner_sheet.xlsx +0 -0
  205. omero_quay-1.0.0/tests/excel_files/study_assay_no_tags_entries.xlsx +0 -0
  206. omero_quay-1.0.0/tests/excel_files/study_owner_is_not_parent_investigation_owner_or_contributor_sheet.xlsx +0 -0
  207. omero_quay-1.0.0/tests/excel_files/theo/test_ingest_import (1).xlsx +0 -0
  208. omero_quay-1.0.0/tests/excel_files/theo/test_ingest_import1.xlsx +0 -0
  209. omero_quay-1.0.0/tests/excel_files/theo/test_ingest_import2.xlsx +0 -0
  210. omero_quay-1.0.0/tests/excel_files/theo/test_ingest_import3.xlsx +0 -0
  211. omero_quay-1.0.0/tests/excel_files/theo/theo_error +74 -0
  212. omero_quay-1.0.0/tests/excel_files/user_invalid_logins_sheet.xlsx +0 -0
  213. omero_quay-1.0.0/tests/excel_files/user_no_login_user_sheet.xlsx +0 -0
  214. omero_quay-1.0.0/tests/excel_files/user_no_logins_sheet.xlsx +0 -0
  215. omero_quay-1.0.0/tests/excel_files/valid.xlsx +0 -0
  216. omero_quay-1.0.0/tests/test_config.py +47 -0
  217. omero_quay-1.0.0/tests/test_excel.py +145 -0
  218. omero_quay-1.0.0/tests/test_managers.py +155 -0
  219. omero_quay-1.0.0/tests/test_manifest.py +11 -0
  220. omero_quay-1.0.0/tests/test_package.py +7 -0
  221. omero_quay-1.0.0/tests/test_user.py +43 -0
  222. omero_quay-1.0.0/tests/test_watchers.py +12 -0
  223. omero_quay-1.0.0/tests/test_workers.py +20 -0
  224. omero_quay-1.0.0/tox.ini +3 -0
  225. omero_quay-1.0.0/transfer_queue.txt +0 -0
  226. omero_quay-1.0.0/venv3/bin/Activate.ps1 +247 -0
  227. omero_quay-1.0.0/venv3/bin/activate +63 -0
  228. omero_quay-1.0.0/venv3/bin/activate.csh +26 -0
  229. omero_quay-1.0.0/venv3/bin/activate.fish +69 -0
  230. omero_quay-1.0.0/venv3/bin/hatch +8 -0
  231. omero_quay-1.0.0/venv3/bin/hatchling +8 -0
  232. omero_quay-1.0.0/venv3/bin/httpx +8 -0
  233. omero_quay-1.0.0/venv3/bin/keyring +8 -0
  234. omero_quay-1.0.0/venv3/bin/markdown-it +8 -0
  235. omero_quay-1.0.0/venv3/bin/pip +8 -0
  236. omero_quay-1.0.0/venv3/bin/pip3 +8 -0
  237. omero_quay-1.0.0/venv3/bin/pip3.11 +8 -0
  238. omero_quay-1.0.0/venv3/bin/pygmentize +8 -0
  239. omero_quay-1.0.0/venv3/bin/python +1 -0
  240. omero_quay-1.0.0/venv3/bin/python3 +1 -0
  241. omero_quay-1.0.0/venv3/bin/python3.11 +1 -0
  242. omero_quay-1.0.0/venv3/bin/userpath +8 -0
  243. omero_quay-1.0.0/venv3/bin/uv +0 -0
  244. omero_quay-1.0.0/venv3/bin/uvx +0 -0
  245. omero_quay-1.0.0/venv3/bin/virtualenv +8 -0
  246. omero_quay-1.0.0/venv3/pyvenv.cfg +5 -0
@@ -0,0 +1,4 @@
1
+ node: $Format:%H$
2
+ node-date: $Format:%cI$
3
+ describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
4
+ ref-names: $Format:%D$
@@ -0,0 +1 @@
1
+ .git_archival.txt export-subst
@@ -0,0 +1,152 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+ .mamba/
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage
45
+ .coverage.*
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ *.cover
50
+ *.py,cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+ tests/containers/QuayTestData/
55
+
56
+ # Translations
57
+ *.mo
58
+ *.pot
59
+
60
+ # Django stuff:
61
+ *.log
62
+ local_settings.py
63
+ db.sqlite3
64
+ db.sqlite3-journal
65
+
66
+ # Flask stuff:
67
+ instance/
68
+ .webassets-cache
69
+
70
+ # Scrapy stuff:
71
+ .scrapy
72
+
73
+ # Sphinx documentation
74
+ docs/_build/
75
+
76
+ # PyBuilder
77
+ .pybuilder/
78
+ target/
79
+
80
+ # Jupyter Notebook
81
+ .ipynb_checkpoints
82
+
83
+ # IPython
84
+ profile_default/
85
+ ipython_config.py
86
+
87
+ # pyenv
88
+ # For a library or package, you might want to ignore these files since the code is
89
+ # intended to run in multiple environments; otherwise, check them in:
90
+ # .python-version
91
+
92
+ # pipenv
93
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
94
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
95
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
96
+ # install all needed dependencies.
97
+ #Pipfile.lock
98
+
99
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
100
+ __pypackages__/
101
+
102
+ # Celery stuff
103
+ celerybeat-schedule
104
+ celerybeat.pid
105
+
106
+ # SageMath parsed files
107
+ *.sage.py
108
+
109
+ # Environments
110
+ .env
111
+ .venv
112
+ env/
113
+ venv/
114
+ ENV/
115
+ env.bak/
116
+ venv.bak/
117
+ */.venv
118
+
119
+ # Spyder project settings
120
+ .spyderproject
121
+ .spyproject
122
+
123
+ # Rope project settings
124
+ .ropeproject
125
+
126
+ # mkdocs documentation
127
+ /site
128
+
129
+ # mypy
130
+ .mypy_cache/
131
+ .dmypy.json
132
+ dmypy.json
133
+
134
+ # Pyre type checker
135
+ .pyre/
136
+
137
+ # pytype static type analyzer
138
+ .pytype/
139
+
140
+ # Cython debug symbols
141
+ cython_debug/
142
+
143
+ # setuptools_scm
144
+ src/*/_version.py
145
+
146
+ # coverage
147
+ cov.xml
148
+ cov.html
149
+
150
+ # Docker
151
+ tests/container/logs/*
152
+ */logs/proc/*
@@ -0,0 +1,71 @@
1
+ stages:
2
+ - formatting
3
+ - build
4
+ - test
5
+
6
+ formatting:
7
+ stage: formatting
8
+ image: continuumio/miniconda3:latest
9
+ before_script:
10
+ - pip install ruff flake8
11
+ script:
12
+ # Verify the Python code is black formatting compliant.
13
+ - ruff check . --fix --exclude 'manifest.py' --exclude '*.ipynb'
14
+ # Verify the Python code is flake8 formatting compliant.
15
+ - flake8 --max-line-length 88 --extend-exclude=manifest.py .
16
+ allow_failure: false
17
+
18
+ build:
19
+ stage: build
20
+ image: docker:26.1
21
+ services:
22
+ - docker:26.1-dind
23
+ variables:
24
+ DOCKER_TLS_CERTDIR: "/certs"
25
+ HTTP_PROXY: "http://proxy-upgrade.intra.glicid.fr:3128/"
26
+ HTTPS_PROXY: "http://proxy-upgrade.intra.glicid.fr:3128/"
27
+ NO_PROXY: "docker"
28
+ before_script:
29
+ - apk update && apk add git bash net-tools curl
30
+ script:
31
+ - cd tests/containers
32
+ - docker compose build --no-cache --push --build-arg
33
+ HTTP_PROXY=http://proxy-upgrade.intra.glicid.fr:3128/ --build-arg
34
+ HTTPS_PROXY=http://proxy-upgrade.intra.glicid.fr:3128/ --build-arg
35
+ CI_COMMIT_BRANCH=$CI_COMMIT_BRANCH
36
+ tags:
37
+ - quay
38
+ when: manual
39
+
40
+ test:
41
+ stage: test
42
+ image: docker:26.1
43
+ services:
44
+ - docker:26.1-dind
45
+ variables:
46
+ DOCKER_TLS_CERTDIR: "/certs"
47
+ HTTP_PROXY: "http://proxy-upgrade.intra.glicid.fr:3128/"
48
+ HTTPS_PROXY: "http://proxy-upgrade.intra.glicid.fr:3128/"
49
+ NO_PROXY: "docker"
50
+ ICAT_HOSTNAME: "icat"
51
+ QUAY_TEST_DATA: "/cache/QuayTestData"
52
+ before_script:
53
+ - apk update && apk add git bash net-tools curl
54
+ script:
55
+ - cd tests/containers
56
+ - docker compose pull --quiet irods-db irods-icat nfsrods omero-db omero-server mongo quay-client
57
+ - ./up.sh
58
+ - docker compose run --rm quay-client id
59
+ - docker compose run --rm quay-client ls -alh /tmp/QuayTestData/data
60
+ - docker compose run --rm quay-client python tests/containers/create_users.py
61
+ - docker exec -u irods irods-icat iadmin moduser facility0 password omero
62
+ - docker exec -u irods irods-icat ichmod -r own omero-server /tempZone/
63
+ - docker compose run --rm quay-client pytest --cov omero_quay --cov-report xml:cov.xml
64
+
65
+ tags:
66
+ - quay
67
+ artifacts:
68
+ reports:
69
+ coverage_report:
70
+ coverage_format: cobertura
71
+ path: cov.xml
@@ -0,0 +1,75 @@
1
+ ci:
2
+ autoupdate_commit_msg: "chore: update pre-commit hooks"
3
+ autofix_commit_msg: "style: pre-commit fixes"
4
+
5
+ repos:
6
+ # - repo: https://github.com/psf/black
7
+ # rev: "23.1.0"
8
+ # hooks:
9
+ # - id: black-jupyter
10
+
11
+ - repo: https://github.com/pre-commit/pre-commit-hooks
12
+ rev: "v4.4.0"
13
+ hooks:
14
+ - id: check-added-large-files
15
+ - id: check-case-conflict
16
+ - id: check-merge-conflict
17
+ - id: check-symlinks
18
+ - id: check-yaml
19
+ - id: debug-statements
20
+ - id: end-of-file-fixer
21
+ - id: mixed-line-ending
22
+ - id: requirements-txt-fixer
23
+ - id: trailing-whitespace
24
+
25
+ - repo: https://github.com/pre-commit/pygrep-hooks
26
+ rev: "v1.10.0"
27
+ hooks:
28
+ - id: rst-backticks
29
+ - id: rst-directive-colons
30
+ - id: rst-inline-touching-normal
31
+
32
+ - repo: https://github.com/pre-commit/mirrors-prettier
33
+ rev: "v2.7.1"
34
+ hooks:
35
+ - id: prettier
36
+ types_or: [yaml, markdown, css, scss, javascript, json]
37
+ args: [--prose-wrap=always]
38
+
39
+ - repo: https://github.com/asottile/blacken-docs
40
+ rev: "1.13.0"
41
+ hooks:
42
+ - id: blacken-docs
43
+ additional_dependencies: [black==22.8.0]
44
+
45
+ - repo: https://github.com/charliermarsh/ruff-pre-commit
46
+ rev: v0.8.6
47
+ hooks:
48
+ - id: ruff
49
+ args: ["--fix", "--show-fixes"]
50
+
51
+ # - repo: https://github.com/pre-commit/mirrors-mypy
52
+ # rev: "v1.0.0"
53
+ # hooks:
54
+ # - id: mypy
55
+ # files: src
56
+ # args: []
57
+
58
+ - repo: https://github.com/codespell-project/codespell
59
+ rev: v2.2.2
60
+ hooks:
61
+ - id: codespell
62
+ args: ["--skip", "*.svg", "--skip", "*.html"]
63
+
64
+ - repo: https://github.com/shellcheck-py/shellcheck-py
65
+ rev: "v0.9.0.2"
66
+ hooks:
67
+ - id: shellcheck
68
+
69
+ - repo: local
70
+ hooks:
71
+ - id: disallow-caps
72
+ name: Disallow improper capitalization
73
+ language: pygrep
74
+ entry: PyBind|Numpy|Cmake|CCache|Github|PyTest
75
+ exclude: .pre-commit-config.yaml
@@ -0,0 +1,21 @@
1
+ # .readthedocs.yml
2
+ # Read the Docs configuration file
3
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4
+
5
+ # Required
6
+ version: 2
7
+
8
+ # Build documentation in the docs/ directory with Sphinx
9
+ sphinx:
10
+ configuration: docs/conf.py
11
+
12
+ # Include PDF and ePub
13
+ formats: all
14
+
15
+ python:
16
+ version: "3.10"
17
+ install:
18
+ - method: pip
19
+ path: .
20
+ extra_requirements:
21
+ - docs
@@ -0,0 +1,162 @@
1
+ Copyright 2023 Guillaume Gay
2
+
3
+
4
+
5
+ Mozilla Public License
6
+ Version 2.0
7
+ 1. Definitions
8
+
9
+ 1.1. “Contributor”
10
+
11
+ means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software.
12
+ 1.2. “Contributor Version”
13
+
14
+ means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor’s Contribution.
15
+ 1.3. “Contribution”
16
+
17
+ means Covered Software of a particular Contributor.
18
+ 1.4. “Covered Software”
19
+
20
+ means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof.
21
+ 1.5. “Incompatible With Secondary Licenses”
22
+
23
+ means
24
+
25
+ that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or
26
+
27
+ that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License.
28
+
29
+ 1.6. “Executable Form”
30
+
31
+ means any form of the work other than Source Code Form.
32
+ 1.7. “Larger Work”
33
+
34
+ means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software.
35
+ 1.8. “License”
36
+
37
+ means this document.
38
+ 1.9. “Licensable”
39
+
40
+ means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License.
41
+ 1.10. “Modifications”
42
+
43
+ means any of the following:
44
+
45
+ any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or
46
+
47
+ any new file in Source Code Form that contains any Covered Software.
48
+
49
+ 1.11. “Patent Claims” of a Contributor
50
+
51
+ means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version.
52
+ 1.12. “Secondary License”
53
+
54
+ means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses.
55
+ 1.13. “Source Code Form”
56
+
57
+ means the form of the work preferred for making modifications.
58
+ 1.14. “You” (or “Your”)
59
+
60
+ means an individual or a legal entity exercising rights under this License. For legal entities, “You” includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, “control” means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity.
61
+
62
+ 2. License Grants and Conditions
63
+ 2.1. Grants
64
+
65
+ Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license:
66
+
67
+ under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and
68
+
69
+ under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version.
70
+
71
+ 2.2. Effective Date
72
+
73
+ The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution.
74
+ 2.3. Limitations on Grant Scope
75
+
76
+ The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor:
77
+
78
+ for any code that a Contributor has removed from Covered Software; or
79
+
80
+ for infringements caused by: (i) Your and any other third party’s modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or
81
+
82
+ under Patent Claims infringed by Covered Software in the absence of its Contributions.
83
+
84
+ This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4).
85
+ 2.4. Subsequent Licenses
86
+
87
+ No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3).
88
+ 2.5. Representation
89
+
90
+ Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License.
91
+ 2.6. Fair Use
92
+
93
+ This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents.
94
+ 2.7. Conditions
95
+
96
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1.
97
+ 3. Responsibilities
98
+ 3.1. Distribution of Source Form
99
+
100
+ All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients’ rights in the Source Code Form.
101
+ 3.2. Distribution of Executable Form
102
+
103
+ If You distribute Covered Software in Executable Form then:
104
+
105
+ such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and
106
+
107
+ You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients’ rights in the Source Code Form under this License.
108
+
109
+ 3.3. Distribution of a Larger Work
110
+
111
+ You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s).
112
+ 3.4. Notices
113
+
114
+ You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies.
115
+ 3.5. Application of Additional Terms
116
+
117
+ You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction.
118
+ 4. Inability to Comply Due to Statute or Regulation
119
+
120
+ If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it.
121
+ 5. Termination
122
+
123
+ 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice.
124
+
125
+ 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate.
126
+
127
+ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination.
128
+ 6. Disclaimer of Warranty
129
+
130
+ Covered Software is provided under this License on an “as is” basis, without warranty of any kind, either expressed, implied, or statutory, including, without limitation, warranties that the Covered Software is free of defects, merchantable, fit for a particular purpose or non-infringing. The entire risk as to the quality and performance of the Covered Software is with You. Should any Covered Software prove defective in any respect, You (not any Contributor) assume the cost of any necessary servicing, repair, or correction. This disclaimer of warranty constitutes an essential part of this License. No use of any Covered Software is authorized under this License except under this disclaimer.
131
+ 7. Limitation of Liability
132
+
133
+ Under no circumstances and under no legal theory, whether tort (including negligence), contract, or otherwise, shall any Contributor, or anyone who distributes Covered Software as permitted above, be liable to You for any direct, indirect, special, incidental, or consequential damages of any character including, without limitation, damages for lost profits, loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses, even if such party shall have been informed of the possibility of such damages. This limitation of liability shall not apply to liability for death or personal injury resulting from such party’s negligence to the extent applicable law prohibits such limitation. Some jurisdictions do not allow the exclusion or limitation of incidental or consequential damages, so this exclusion and limitation may not apply to You.
134
+ 8. Litigation
135
+
136
+ Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party’s ability to bring cross-claims or counter-claims.
137
+ 9. Miscellaneous
138
+
139
+ This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor.
140
+ 10. Versions of the License
141
+ 10.1. New Versions
142
+
143
+ Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number.
144
+ 10.2. Effect of New Versions
145
+
146
+ You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward.
147
+ 10.3. Modified Versions
148
+
149
+ If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License).
150
+ 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses
151
+
152
+ If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached.
153
+ Exhibit A - Source Code Form License Notice
154
+
155
+ This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
156
+
157
+ If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice.
158
+
159
+ You may add additional accurate notices of copyright ownership.
160
+ Exhibit B - “Incompatible With Secondary Licenses” Notice
161
+
162
+ This Source Code Form is “Incompatible With Secondary Licenses”, as defined by the Mozilla Public License, v. 2.0.