datajoint 2.2.2__tar.gz → 2.2.3__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 (162) hide show
  1. {datajoint-2.2.2 → datajoint-2.2.3}/.pre-commit-config.yaml +0 -1
  2. {datajoint-2.2.2 → datajoint-2.2.3}/PKG-INFO +3 -3
  3. {datajoint-2.2.2 → datajoint-2.2.3}/README.md +2 -2
  4. datajoint-2.2.3/images/pipeline.png +0 -0
  5. datajoint-2.2.3/images/pipeline.svg +118 -0
  6. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/codecs.py +56 -41
  7. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/migrate.py +4 -4
  8. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/settings.py +78 -31
  9. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/storage_adapter.py +3 -10
  10. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/version.py +1 -1
  11. {datajoint-2.2.2 → datajoint-2.2.3}/tests/unit/test_settings.py +119 -0
  12. datajoint-2.2.2/.devcontainer/Dockerfile +0 -14
  13. datajoint-2.2.2/.devcontainer/devcontainer.json +0 -6
  14. datajoint-2.2.2/.devcontainer/docker-compose.yml +0 -14
  15. datajoint-2.2.2/.vscode/launch.json +0 -16
  16. datajoint-2.2.2/images/pipeline.drawio +0 -1
  17. datajoint-2.2.2/images/pipeline.png +0 -0
  18. {datajoint-2.2.2 → datajoint-2.2.3}/.coveragerc +0 -0
  19. {datajoint-2.2.2 → datajoint-2.2.3}/.dockerignore +0 -0
  20. {datajoint-2.2.2 → datajoint-2.2.3}/.gitattributes +0 -0
  21. {datajoint-2.2.2 → datajoint-2.2.3}/.github/DISCUSSION_TEMPLATE/rfc.yml +0 -0
  22. {datajoint-2.2.2 → datajoint-2.2.3}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  23. {datajoint-2.2.2 → datajoint-2.2.3}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  24. {datajoint-2.2.2 → datajoint-2.2.3}/.github/ISSUE_TEMPLATE/improvement_request.md +0 -0
  25. {datajoint-2.2.2 → datajoint-2.2.3}/.github/dependabot.yml +0 -0
  26. {datajoint-2.2.2 → datajoint-2.2.3}/.github/release_drafter.yaml +0 -0
  27. {datajoint-2.2.2 → datajoint-2.2.3}/.github/workflows/close_inactive_issues_prs.yaml +0 -0
  28. {datajoint-2.2.2 → datajoint-2.2.3}/.github/workflows/draft_release.yaml +0 -0
  29. {datajoint-2.2.2 → datajoint-2.2.3}/.github/workflows/lint.yaml +0 -0
  30. {datajoint-2.2.2 → datajoint-2.2.3}/.github/workflows/post_draft_release_published.yaml +0 -0
  31. {datajoint-2.2.2 → datajoint-2.2.3}/.github/workflows/test.yaml +0 -0
  32. {datajoint-2.2.2 → datajoint-2.2.3}/.gitignore +0 -0
  33. {datajoint-2.2.2 → datajoint-2.2.3}/CHANGELOG-archive.md +0 -0
  34. {datajoint-2.2.2 → datajoint-2.2.3}/CONTRIBUTING.md +0 -0
  35. {datajoint-2.2.2 → datajoint-2.2.3}/Dockerfile +0 -0
  36. {datajoint-2.2.2 → datajoint-2.2.3}/LICENSE +0 -0
  37. {datajoint-2.2.2 → datajoint-2.2.3}/RELEASE_MEMO.md +0 -0
  38. {datajoint-2.2.2 → datajoint-2.2.3}/activate.sh +0 -0
  39. {datajoint-2.2.2 → datajoint-2.2.3}/docker-compose.yaml +0 -0
  40. {datajoint-2.2.2 → datajoint-2.2.3}/pixi.lock +0 -0
  41. {datajoint-2.2.2 → datajoint-2.2.3}/pyproject.toml +0 -0
  42. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/__init__.py +0 -0
  43. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/adapters/__init__.py +0 -0
  44. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/adapters/base.py +0 -0
  45. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/adapters/mysql.py +0 -0
  46. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/adapters/postgres.py +0 -0
  47. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/autopopulate.py +0 -0
  48. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/blob.py +0 -0
  49. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/builtin_codecs/__init__.py +0 -0
  50. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/builtin_codecs/attach.py +0 -0
  51. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/builtin_codecs/blob.py +0 -0
  52. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/builtin_codecs/filepath.py +0 -0
  53. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/builtin_codecs/hash.py +0 -0
  54. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/builtin_codecs/npy.py +0 -0
  55. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/builtin_codecs/object.py +0 -0
  56. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/builtin_codecs/schema.py +0 -0
  57. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/cli.py +0 -0
  58. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/condition.py +0 -0
  59. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/connection.py +0 -0
  60. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/declare.py +0 -0
  61. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/dependencies.py +0 -0
  62. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/diagram.py +0 -0
  63. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/errors.py +0 -0
  64. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/expression.py +0 -0
  65. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/gc.py +0 -0
  66. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/hash_registry.py +0 -0
  67. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/heading.py +0 -0
  68. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/instance.py +0 -0
  69. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/jobs.py +0 -0
  70. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/lineage.py +0 -0
  71. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/logging.py +0 -0
  72. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/objectref.py +0 -0
  73. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/preview.py +0 -0
  74. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/schemas.py +0 -0
  75. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/staged_insert.py +0 -0
  76. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/storage.py +0 -0
  77. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/table.py +0 -0
  78. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/types.py +0 -0
  79. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/user_tables.py +0 -0
  80. {datajoint-2.2.2 → datajoint-2.2.3}/src/datajoint/utils.py +0 -0
  81. {datajoint-2.2.2 → datajoint-2.2.3}/tests/__init__.py +0 -0
  82. {datajoint-2.2.2 → datajoint-2.2.3}/tests/conftest.py +0 -0
  83. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/__init__.py +0 -0
  84. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/data/Course.csv +0 -0
  85. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/data/CurrentTerm.csv +0 -0
  86. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/data/Department.csv +0 -0
  87. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/data/Enroll.csv +0 -0
  88. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/data/Grade.csv +0 -0
  89. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/data/Section.csv +0 -0
  90. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/data/Student.csv +0 -0
  91. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/data/StudentMajor.csv +0 -0
  92. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/data/Term.csv +0 -0
  93. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_aggr_regressions.py +0 -0
  94. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_alter.py +0 -0
  95. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_attach.py +0 -0
  96. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_autopopulate.py +0 -0
  97. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_blob.py +0 -0
  98. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_blob_matlab.py +0 -0
  99. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_cascade_delete.py +0 -0
  100. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_cascading_delete.py +0 -0
  101. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_cli.py +0 -0
  102. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_codec_chaining.py +0 -0
  103. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_codecs.py +0 -0
  104. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_connection.py +0 -0
  105. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_declare.py +0 -0
  106. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_dependencies.py +0 -0
  107. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_erd.py +0 -0
  108. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_fetch.py +0 -0
  109. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_fetch_same.py +0 -0
  110. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_foreign_keys.py +0 -0
  111. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_gc.py +0 -0
  112. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_groupby.py +0 -0
  113. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_hash_storage.py +0 -0
  114. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_hidden_job_metadata.py +0 -0
  115. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_insert.py +0 -0
  116. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_jobs.py +0 -0
  117. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_json.py +0 -0
  118. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_multi_backend.py +0 -0
  119. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_nan.py +0 -0
  120. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_npy_codec.py +0 -0
  121. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_object.py +0 -0
  122. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_privileges.py +0 -0
  123. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_reconnection.py +0 -0
  124. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_relation.py +0 -0
  125. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_relation_u.py +0 -0
  126. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_relational_operand.py +0 -0
  127. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_schema.py +0 -0
  128. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_schema_keywords.py +0 -0
  129. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_semantic_matching.py +0 -0
  130. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_skip_duplicates.py +0 -0
  131. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_tls.py +0 -0
  132. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_type_aliases.py +0 -0
  133. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_university.py +0 -0
  134. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_update1.py +0 -0
  135. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_utils.py +0 -0
  136. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_uuid.py +0 -0
  137. {datajoint-2.2.2 → datajoint-2.2.3}/tests/integration/test_virtual_module.py +0 -0
  138. {datajoint-2.2.2 → datajoint-2.2.3}/tests/schema.py +0 -0
  139. {datajoint-2.2.2 → datajoint-2.2.3}/tests/schema_advanced.py +0 -0
  140. {datajoint-2.2.2 → datajoint-2.2.3}/tests/schema_aggr_regress.py +0 -0
  141. {datajoint-2.2.2 → datajoint-2.2.3}/tests/schema_alter.py +0 -0
  142. {datajoint-2.2.2 → datajoint-2.2.3}/tests/schema_codecs.py +0 -0
  143. {datajoint-2.2.2 → datajoint-2.2.3}/tests/schema_external.py +0 -0
  144. {datajoint-2.2.2 → datajoint-2.2.3}/tests/schema_object.py +0 -0
  145. {datajoint-2.2.2 → datajoint-2.2.3}/tests/schema_privileges.py +0 -0
  146. {datajoint-2.2.2 → datajoint-2.2.3}/tests/schema_simple.py +0 -0
  147. {datajoint-2.2.2 → datajoint-2.2.3}/tests/schema_type_aliases.py +0 -0
  148. {datajoint-2.2.2 → datajoint-2.2.3}/tests/schema_university.py +0 -0
  149. {datajoint-2.2.2 → datajoint-2.2.3}/tests/schema_uuid.py +0 -0
  150. {datajoint-2.2.2 → datajoint-2.2.3}/tests/test_package.py +0 -0
  151. {datajoint-2.2.2 → datajoint-2.2.3}/tests/unit/__init__.py +0 -0
  152. {datajoint-2.2.2 → datajoint-2.2.3}/tests/unit/test_adapters.py +0 -0
  153. {datajoint-2.2.2 → datajoint-2.2.3}/tests/unit/test_codecs.py +0 -0
  154. {datajoint-2.2.2 → datajoint-2.2.3}/tests/unit/test_condition.py +0 -0
  155. {datajoint-2.2.2 → datajoint-2.2.3}/tests/unit/test_connection_warning.py +0 -0
  156. {datajoint-2.2.2 → datajoint-2.2.3}/tests/unit/test_declare_hidden_attribute.py +0 -0
  157. {datajoint-2.2.2 → datajoint-2.2.3}/tests/unit/test_fetch_compat.py +0 -0
  158. {datajoint-2.2.2 → datajoint-2.2.3}/tests/unit/test_lazy_imports.py +0 -0
  159. {datajoint-2.2.2 → datajoint-2.2.3}/tests/unit/test_pk_rules.py +0 -0
  160. {datajoint-2.2.2 → datajoint-2.2.3}/tests/unit/test_storage_adapter.py +0 -0
  161. {datajoint-2.2.2 → datajoint-2.2.3}/tests/unit/test_storage_urls.py +0 -0
  162. {datajoint-2.2.2 → datajoint-2.2.3}/tests/unit/test_thread_safe.py +0 -0
@@ -12,7 +12,6 @@ repos:
12
12
  - id: check-yaml
13
13
  exclude: 'docs/mkdocs.yaml' # exclude mkdocs.yaml since pymdownx.emoji !! usage
14
14
  - id: check-json
15
- exclude: '(.vscode|.devcontainer)' # exclude these since // was used for comments
16
15
  - id: check-toml
17
16
  - id: check-added-large-files
18
17
  - repo: https://github.com/codespell-project/codespell
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datajoint
3
- Version: 2.2.2
3
+ Version: 2.2.3
4
4
  Summary: DataJoint for Python is a framework for scientific workflow management based on relational principles. DataJoint is built on the foundation of the relational data model and prescribes a consistent method for organizing, populating, computing, and querying data.
5
5
  Project-URL: Homepage, https://docs.datajoint.com/
6
6
  Project-URL: Documentation, https://docs.datajoint.com/
@@ -330,9 +330,9 @@ conda install -c conda-forge datajoint
330
330
 
331
331
  ## Example Pipeline
332
332
 
333
- ![pipeline](https://raw.githubusercontent.com/datajoint/datajoint-python/master/images/pipeline.png)
333
+ ![pipeline](images/pipeline.png)
334
334
 
335
- [Yatsenko et al., bioRxiv 2021](https://doi.org/10.1101/2021.03.30.437358)
335
+ **Cite DataJoint:** [Yatsenko et al., 2026](https://arxiv.org/abs/2602.16585) — RRID: [SCR_014543](https://scicrunch.org/resolver/SCR_014543)
336
336
 
337
337
  ## Resources
338
338
 
@@ -69,9 +69,9 @@ conda install -c conda-forge datajoint
69
69
 
70
70
  ## Example Pipeline
71
71
 
72
- ![pipeline](https://raw.githubusercontent.com/datajoint/datajoint-python/master/images/pipeline.png)
72
+ ![pipeline](images/pipeline.png)
73
73
 
74
- [Yatsenko et al., bioRxiv 2021](https://doi.org/10.1101/2021.03.30.437358)
74
+ **Cite DataJoint:** [Yatsenko et al., 2026](https://arxiv.org/abs/2602.16585) — RRID: [SCR_014543](https://scicrunch.org/resolver/SCR_014543)
75
75
 
76
76
  ## Resources
77
77
 
Binary file
@@ -0,0 +1,118 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1500 540"
2
+ font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif"
3
+ font-size="22">
4
+ <defs>
5
+ <marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5"
6
+ markerWidth="7" markerHeight="7" orient="auto-start-reverse">
7
+ <path d="M0,0 L10,5 L0,10 z" fill="#666"/>
8
+ </marker>
9
+ </defs>
10
+
11
+ <!-- Opaque white background — keeps the whole illustration legible
12
+ on any page theme (e.g. GitHub dark-mode README rendering). -->
13
+ <rect width="100%" height="100%" fill="white"/>
14
+
15
+ <!-- ============ LEFT PANEL: Pipeline diagram ============ -->
16
+
17
+ <!-- Edges -->
18
+ <g stroke="#666" stroke-width="1.6" fill="none">
19
+ <line x1="200" y1="90" x2="200" y2="118" marker-end="url(#arrow)"/>
20
+ <line x1="200" y1="160" x2="200" y2="188" marker-end="url(#arrow)"/>
21
+ <line x1="200" y1="230" x2="200" y2="259" marker-end="url(#arrow)"/>
22
+ <line x1="215" y1="316" x2="232" y2="352" marker-end="url(#arrow)"/>
23
+ <line x1="320" y1="310" x2="294" y2="358" marker-end="url(#arrow)"/>
24
+ <line x1="250" y1="410" x2="250" y2="441" marker-end="url(#arrow)"/>
25
+ </g>
26
+
27
+ <!-- Manual: Subject -->
28
+ <rect x="135" y="50" width="130" height="40" rx="3"
29
+ fill="#7eca9c" stroke="none"/>
30
+ <text x="200" y="78" text-anchor="middle" fill="#1a1a1a" font-weight="500">Subject</text>
31
+
32
+ <!-- Manual: Session -->
33
+ <rect x="135" y="120" width="130" height="40" rx="3"
34
+ fill="#7eca9c" stroke="none"/>
35
+ <text x="200" y="148" text-anchor="middle" fill="#1a1a1a" font-weight="500">Session</text>
36
+
37
+ <!-- Manual: Scan -->
38
+ <rect x="135" y="190" width="130" height="40" rx="3"
39
+ fill="#7eca9c" stroke="none"/>
40
+ <text x="200" y="218" text-anchor="middle" fill="#1a1a1a" font-weight="500">Scan</text>
41
+
42
+ <!-- Imported: AverageFrame -->
43
+ <ellipse cx="200" cy="290" rx="90" ry="28"
44
+ fill="#7eb6ca" stroke="none"/>
45
+ <text x="200" y="298" text-anchor="middle" fill="#1a1a1a" font-weight="500">AverageFrame</text>
46
+
47
+ <!-- Lookup: SegmentationParams -->
48
+ <rect x="320" y="270" width="220" height="40" rx="3"
49
+ fill="#e8e8e8" stroke="none"/>
50
+ <text x="430" y="298" text-anchor="middle" fill="#1a1a1a" font-weight="500">SegmentationParams</text>
51
+
52
+ <!-- Computed: Segmentation (highlighted — origin of zoom callout) -->
53
+ <ellipse cx="250" cy="380" rx="100" ry="30"
54
+ fill="#ca7e7e" stroke="none"/>
55
+ <text x="250" y="388" text-anchor="middle" fill="#1a1a1a" font-weight="600">Segmentation</text>
56
+
57
+ <!-- Computed: Activity -->
58
+ <ellipse cx="250" cy="470" rx="74" ry="26"
59
+ fill="#ca7e7e" stroke="none"/>
60
+ <text x="250" y="478" text-anchor="middle" fill="#1a1a1a" font-weight="500">Activity</text>
61
+
62
+ <!-- ============ Zoom-in callout ============ -->
63
+ <g stroke="#999" stroke-width="1" stroke-dasharray="5,4" fill="none">
64
+ <line x1="340" y1="358" x2="580" y2="80"/>
65
+ <line x1="340" y1="402" x2="580" y2="470"/>
66
+ </g>
67
+
68
+ <!-- ============ RIGHT PANEL: Code snippet ============ -->
69
+ <!-- Indentation handled via per-line x offsets:
70
+ level 0 (no indent): x = 600
71
+ level 1 (4 spaces): x = 643
72
+ level 2 (8 spaces): x = 686
73
+ Char width @ 18px monospace ≈ 10.8 -->
74
+
75
+ <rect x="580" y="80" width="660" height="390" rx="4"
76
+ fill="white" stroke="#d0d0d0" stroke-width="1"/>
77
+
78
+ <g font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"
79
+ font-size="18" fill="#24292e">
80
+ <text x="600" y="112"><tspan fill="#005cc5">@schema</tspan></text>
81
+ <text x="600" y="136"><tspan fill="#005cc5">class</tspan> <tspan fill="#6f42c1" font-weight="600">Segmentation</tspan>(dj.Computed):</text>
82
+ <text x="643" y="160">definition = <tspan fill="#22863a">"""</tspan></text>
83
+ <text x="643" y="184" fill="#22863a">-&gt; AverageFrame</text>
84
+ <text x="643" y="208" fill="#22863a">-&gt; SegmentationParams</text>
85
+ <text x="643" y="232" fill="#22863a">---</text>
86
+ <text x="643" y="256" fill="#22863a">num_cells<tspan dx="11">: int32</tspan></text>
87
+ <text x="643" y="280" fill="#22863a">cell_masks : &lt;blob@&gt;</text>
88
+ <text x="643" y="304" fill="#22863a">"""</text>
89
+ <text x="643" y="352"><tspan fill="#005cc5">def</tspan> <tspan fill="#6f42c1" font-weight="600">make</tspan>(self, key):</text>
90
+ <text x="686" y="376">frame = (AverageFrame &amp; key).fetch1(<tspan fill="#22863a">'frame'</tspan>)</text>
91
+ <text x="686" y="400">params = (SegmentationParams &amp; key).fetch1()</text>
92
+ <text x="686" y="424">masks, n = segment(frame, **params)</text>
93
+ <text x="686" y="448">self.insert1(dict(key, num_cells=n, cell_masks=masks))</text>
94
+ </g>
95
+
96
+ <!-- ============ Annotations ============ -->
97
+ <g font-style="italic" fill="#5a5a5a" font-size="19">
98
+ <text x="1260" y="112">database link</text>
99
+ <line x1="1255" y1="107" x2="690" y2="107"
100
+ stroke="#bbb" stroke-width="0.7" stroke-dasharray="3,3"/>
101
+
102
+ <text x="1260" y="136">table name</text>
103
+ <line x1="1255" y1="131" x2="855" y2="131"
104
+ stroke="#bbb" stroke-width="0.7" stroke-dasharray="3,3"/>
105
+
106
+ <text x="1260" y="208">dependency</text>
107
+ <line x1="1255" y1="203" x2="850" y2="203"
108
+ stroke="#bbb" stroke-width="0.7" stroke-dasharray="3,3"/>
109
+
110
+ <text x="1260" y="280">object-store attribute</text>
111
+ <line x1="1255" y1="275" x2="900" y2="275"
112
+ stroke="#bbb" stroke-width="0.7" stroke-dasharray="3,3"/>
113
+
114
+ <text x="1260" y="400">computation</text>
115
+ <line x1="1255" y1="395" x2="970" y2="395"
116
+ stroke="#bbb" stroke-width="0.7" stroke-dasharray="3,3"/>
117
+ </g>
118
+ </svg>
@@ -8,29 +8,32 @@ semantics for complex Python objects.
8
8
  Codecs auto-register when subclassed - no decorator needed (Python 3.10+).
9
9
 
10
10
  Example:
11
- class GraphCodec(dj.Codec):
12
- name = "graph"
13
11
 
14
- def get_dtype(self, is_store: bool) -> str:
15
- return "<blob>"
12
+ ```python
13
+ class GraphCodec(dj.Codec):
14
+ name = "graph"
16
15
 
17
- def encode(self, graph, *, key=None, store_name=None):
18
- return {'nodes': list(graph.nodes()), 'edges': list(graph.edges())}
19
-
20
- def decode(self, stored, *, key=None):
21
- import networkx as nx
22
- G = nx.Graph()
23
- G.add_nodes_from(stored['nodes'])
24
- G.add_edges_from(stored['edges'])
25
- return G
26
-
27
- # Then use in table definitions:
28
- class MyTable(dj.Manual):
29
- definition = '''
30
- id : uint16
31
- ---
32
- data : <graph>
33
- '''
16
+ def get_dtype(self, is_store: bool) -> str:
17
+ return "<blob>"
18
+
19
+ def encode(self, graph, *, key=None, store_name=None):
20
+ return {'nodes': list(graph.nodes()), 'edges': list(graph.edges())}
21
+
22
+ def decode(self, stored, *, key=None):
23
+ import networkx as nx
24
+ G = nx.Graph()
25
+ G.add_nodes_from(stored['nodes'])
26
+ G.add_edges_from(stored['edges'])
27
+ return G
28
+
29
+ # Then use in table definitions:
30
+ class MyTable(dj.Manual):
31
+ definition = '''
32
+ id : uint16
33
+ ---
34
+ data : <graph>
35
+ '''
36
+ ```
34
37
  """
35
38
 
36
39
  from __future__ import annotations
@@ -85,20 +88,24 @@ class Codec(ABC):
85
88
  ... G.add_edges_from(stored['edges'])
86
89
  ... return G
87
90
 
88
- Use in table definitions::
91
+ Use in table definitions:
89
92
 
90
- class Connectivity(dj.Manual):
91
- definition = '''
92
- id : uint16
93
- ---
94
- graph_data : <graph>
95
- '''
93
+ ```python
94
+ class Connectivity(dj.Manual):
95
+ definition = '''
96
+ id : uint16
97
+ ---
98
+ graph_data : <graph>
99
+ '''
100
+ ```
96
101
 
97
- Skip auto-registration for abstract base classes::
102
+ Skip auto-registration for abstract base classes:
98
103
 
99
- class ExternalOnlyCodec(dj.Codec, register=False):
100
- '''Abstract base - not registered.'''
101
- ...
104
+ ```python
105
+ class ExternalOnlyCodec(dj.Codec, register=False):
106
+ '''Abstract base - not registered.'''
107
+ ...
108
+ ```
102
109
  """
103
110
 
104
111
  name: str | None = None # Must be set by concrete subclasses
@@ -520,18 +527,26 @@ def decode_attribute(attr, data, squeeze: bool = False, connection=None):
520
527
  Decode raw database value using attribute's codec or native type handling.
521
528
 
522
529
  This is the central decode function used by all fetch methods. It handles:
523
- - Codec chains (e.g., <blob@store> → <hash> → bytes)
530
+
531
+ - Codec chains (e.g., ``<blob@store>`` → ``<hash>`` → ``bytes``)
524
532
  - Native type conversions (JSON, UUID)
525
- - Object storage downloads (via config["download_path"])
533
+ - Object storage downloads (via ``config["download_path"]``)
526
534
 
527
- Args:
528
- attr: Attribute from the table's heading.
529
- data: Raw value fetched from the database.
530
- squeeze: If True, remove singleton dimensions from numpy arrays.
531
- connection: Connection instance for config access. If provided,
532
- ``connection._config`` is passed to codecs via the key dict.
535
+ Parameters
536
+ ----------
537
+ attr : Attribute
538
+ Attribute from the table's heading.
539
+ data : any
540
+ Raw value fetched from the database.
541
+ squeeze : bool, optional
542
+ If True, remove singleton dimensions from numpy arrays.
543
+ connection : Connection, optional
544
+ Connection instance for config access. If provided,
545
+ ``connection._config`` is passed to codecs via the key dict.
533
546
 
534
- Returns:
547
+ Returns
548
+ -------
549
+ any
535
550
  Decoded Python value.
536
551
  """
537
552
  import json
@@ -7,8 +7,8 @@ explicit `<blob>` type declarations.
7
7
 
8
8
  .. note::
9
9
  This module is provided temporarily to assist with migration from pre-2.0.
10
- It will be deprecated in DataJoint 2.1 and removed in 2.3.
11
- Complete your migrations while on DataJoint 2.0.
10
+ It is scheduled for removal in DataJoint 2.4 or 2.5.
11
+ Complete your migrations while on DataJoint 2.3 or earlier.
12
12
 
13
13
  Note on Terminology
14
14
  -------------------
@@ -32,8 +32,8 @@ from .version import __version__
32
32
  # Show deprecation warning starting in 2.1
33
33
  if Version(__version__) >= Version("2.1"):
34
34
  warnings.warn(
35
- "datajoint.migrate is deprecated and will be removed in DataJoint 2.3. "
36
- "Complete your schema migrations before upgrading.",
35
+ "datajoint.migrate is deprecated and is scheduled for removal in DataJoint 2.4 or 2.5. "
36
+ "Complete your schema migrations while on DataJoint 2.3 or earlier.",
37
37
  DeprecationWarning,
38
38
  stacklevel=2,
39
39
  )
@@ -335,17 +335,32 @@ class Config(BaseSettings):
335
335
  jobs: JobsSettings = Field(default_factory=JobsSettings)
336
336
 
337
337
  # Unified stores configuration (replaces external and object_storage)
338
+ # ``validation_alias`` redirects pydantic-settings' env source away from the
339
+ # natural ``DJ_STORES`` so it doesn't auto-parse on Config() construction.
340
+ # ``DJ_STORES`` is handled by ``_apply_stores_env`` after the config file
341
+ # load so env-var precedence is honored. *New in 2.3.*
338
342
  stores: dict[str, Any] = Field(
339
343
  default_factory=dict,
344
+ validation_alias="_DJ_STORES_PYDANTIC_DISABLED",
340
345
  description="Unified object storage configuration. "
341
346
  "Use stores.default to designate default store. "
342
- "Configure named stores as stores.<name>.protocol, stores.<name>.location, etc.",
347
+ "Configure named stores as stores.<name>.protocol, stores.<name>.location, etc. "
348
+ "Set via DJ_STORES (JSON object) or in datajoint.json. *New in 2.3* for "
349
+ "DJ_STORES env-var support.",
343
350
  )
344
351
 
345
352
  # Top-level settings
346
353
  loglevel: Literal["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"] = Field(default="INFO", validation_alias="DJ_LOG_LEVEL")
347
354
  safemode: bool = True
348
355
 
356
+ ignore_config_file: bool = Field(
357
+ default=False,
358
+ validation_alias="DJ_IGNORE_CONFIG_FILE",
359
+ description="If True, skip loading datajoint.json and the secrets directory. "
360
+ "Intended for env-var-only deployments (e.g. the DataJoint platform). "
361
+ "*New in 2.3.*",
362
+ )
363
+
349
364
  # Cache path for query results
350
365
  query_cache: Path | None = None
351
366
 
@@ -691,26 +706,50 @@ class Config(BaseSettings):
691
706
  self.database.password = db_password
692
707
  logger.debug(f"Loaded database.password from {secrets_dir}")
693
708
 
694
- # Load per-store secrets (stores.<name>.access_key, stores.<name>.secret_key)
695
- # Iterate through all files in secrets directory
709
+ # Load per-store secrets from any stores.<name>.<attr> file.
710
+ # The attr name is recorded as-is on stores.<name>; this lets
711
+ # plugin-registered adapters define their own secret fields
712
+ # (e.g. a Bearer ``token`` for HTTP-based protocols) without
713
+ # forcing AWS-style ``access_key`` / ``secret_key`` naming.
696
714
  if secrets_dir.is_dir():
697
715
  for secret_file in secrets_dir.iterdir():
698
716
  if not secret_file.is_file() or secret_file.name.startswith("."):
699
717
  continue
700
718
 
701
719
  parts = secret_file.name.split(".")
702
- # Check for stores.<name>.access_key or stores.<name>.secret_key pattern
703
720
  if len(parts) == 3 and parts[0] == "stores":
704
721
  store_name, attr = parts[1], parts[2]
705
- if attr in ("access_key", "secret_key"):
706
- value = secret_file.read_text().strip()
707
- # Initialize store dict if needed
708
- if store_name not in self.stores:
709
- self.stores[store_name] = {}
710
- # Only set if not already present
711
- if attr not in self.stores[store_name]:
712
- self.stores[store_name][attr] = value
713
- logger.debug(f"Loaded stores.{store_name}.{attr} from {secrets_dir}")
722
+ value = secret_file.read_text().strip()
723
+ # Initialize store dict if needed
724
+ if store_name not in self.stores:
725
+ self.stores[store_name] = {}
726
+ # Only set if not already present (config / env vars win)
727
+ if attr not in self.stores[store_name]:
728
+ self.stores[store_name][attr] = value
729
+ logger.debug(f"Loaded stores.{store_name}.{attr} from {secrets_dir}")
730
+
731
+ def _apply_stores_env(self) -> None:
732
+ """Replace ``self.stores`` from the ``DJ_STORES`` env var if set.
733
+
734
+ ``DJ_STORES`` holds a JSON object in the same shape as the ``stores``
735
+ block of ``datajoint.json``. This lets env-var-only deployments
736
+ configure plugin-registered storage adapters with arbitrary attr
737
+ names (e.g. a Bearer ``token`` field) without negotiating an env-var
738
+ naming scheme per attr.
739
+
740
+ *New in 2.3.*
741
+ """
742
+ raw = os.environ.get("DJ_STORES")
743
+ if not raw:
744
+ return
745
+ try:
746
+ data = json.loads(raw)
747
+ except json.JSONDecodeError as e:
748
+ raise ValueError(f"DJ_STORES contains invalid JSON: {e}") from e
749
+ if not isinstance(data, dict):
750
+ raise ValueError(f"DJ_STORES must be a JSON object, got {type(data).__name__}")
751
+ self.stores = data
752
+ logger.debug("Loaded stores from DJ_STORES env var")
714
753
 
715
754
  @contextmanager
716
755
  def override(self, **kwargs: Any) -> Iterator["Config"]:
@@ -785,9 +824,13 @@ class Config(BaseSettings):
785
824
 
786
825
  Credentials should NOT be stored in datajoint.json. Instead, use either:
787
826
 
788
- - Environment variables (``DJ_USER``, ``DJ_PASS``, ``DJ_HOST``, etc.)
827
+ - Environment variables (``DJ_USER``, ``DJ_PASS``, ``DJ_HOST``,
828
+ ``DJ_STORES`` for JSON-encoded store configs, etc.)
789
829
  - The ``.secrets/`` directory (created alongside datajoint.json)
790
830
 
831
+ Set ``DJ_IGNORE_CONFIG_FILE=true`` to skip both ``datajoint.json`` and
832
+ the secrets directory entirely (env-var-only configuration).
833
+
791
834
  Parameters
792
835
  ----------
793
836
  path : str or Path, optional
@@ -962,25 +1005,29 @@ def _create_config() -> Config:
962
1005
  """Create and initialize the global config instance."""
963
1006
  cfg = Config()
964
1007
 
965
- # Find config file (recursive parent search)
966
- config_path = find_config_file()
1008
+ config_path: Path | None = None
1009
+ if not cfg.ignore_config_file:
1010
+ config_path = find_config_file()
1011
+ if config_path is not None:
1012
+ try:
1013
+ cfg.load(config_path)
1014
+ except Exception as e:
1015
+ warnings.warn(f"Failed to load config from {config_path}: {e}")
1016
+ else:
1017
+ warnings.warn(
1018
+ f"No {CONFIG_FILENAME} found. Using defaults and environment variables. "
1019
+ f"Run `dj.config.save_template()` to create a template configuration.",
1020
+ stacklevel=2,
1021
+ )
967
1022
 
968
- if config_path is not None:
969
- try:
970
- cfg.load(config_path)
971
- except Exception as e:
972
- warnings.warn(f"Failed to load config from {config_path}: {e}")
973
- else:
974
- warnings.warn(
975
- f"No {CONFIG_FILENAME} found. Using defaults and environment variables. "
976
- f"Run `dj.config.save_template()` to create a template configuration.",
977
- stacklevel=2,
978
- )
1023
+ # DJ_STORES (if set) overrides the stores dict from the config file
1024
+ cfg._apply_stores_env()
979
1025
 
980
- # Find and load secrets
981
- secrets_dir = find_secrets_dir(config_path)
982
- if secrets_dir is not None:
983
- cfg._load_secrets(secrets_dir)
1026
+ # Secrets fill missing attrs in whatever ended up in self.stores
1027
+ if not cfg.ignore_config_file:
1028
+ secrets_dir = find_secrets_dir(config_path)
1029
+ if secrets_dir is not None:
1030
+ cfg._load_secrets(secrets_dir)
984
1031
 
985
1032
  # Set initial log level
986
1033
  logger.setLevel(cfg.loglevel)
@@ -86,16 +86,9 @@ def get_storage_adapter(protocol: str) -> StorageAdapter | None:
86
86
 
87
87
  def _discover_adapters() -> None:
88
88
  """Load storage adapters from datajoint.storage entry points."""
89
- try:
90
- from importlib.metadata import entry_points
91
- except ImportError:
92
- logger.debug("importlib.metadata not available, skipping adapter discovery")
93
- return
94
-
95
- try:
96
- eps = entry_points(group="datajoint.storage")
97
- except TypeError:
98
- eps = entry_points().get("datajoint.storage", [])
89
+ from importlib.metadata import entry_points
90
+
91
+ eps = entry_points(group="datajoint.storage")
99
92
 
100
93
  for ep in eps:
101
94
  if ep.name in _adapter_registry:
@@ -1,4 +1,4 @@
1
1
  # version bump auto managed by Github Actions:
2
2
  # label_prs.yaml(prep), release.yaml(bump), post_release.yaml(edit)
3
3
  # manually set this version will be eventually overwritten by the above actions
4
- __version__ = "2.2.2"
4
+ __version__ = "2.2.3"
@@ -487,6 +487,125 @@ class TestStoreSecrets:
487
487
  finally:
488
488
  cfg.stores = original_stores
489
489
 
490
+ def test_load_store_arbitrary_attr(self, tmp_path):
491
+ """Plugin-registered adapters can use arbitrary secret-field names."""
492
+ # e.g. an HTTP-based protocol that authenticates with a Bearer token
493
+ secrets_dir = tmp_path / SECRETS_DIRNAME
494
+ secrets_dir.mkdir()
495
+ (secrets_dir / "stores.bearer_store.token").write_text("dapibdfXXXX")
496
+ (secrets_dir / "stores.bearer_store.api_key").write_text("ak_yyy")
497
+
498
+ cfg = settings.Config()
499
+ original_stores = cfg.stores.copy()
500
+ try:
501
+ cfg._load_secrets(secrets_dir)
502
+
503
+ assert cfg.stores["bearer_store"]["token"] == "dapibdfXXXX"
504
+ assert cfg.stores["bearer_store"]["api_key"] == "ak_yyy"
505
+ finally:
506
+ cfg.stores = original_stores
507
+
508
+
509
+ class TestStoreEnv:
510
+ """Test DJ_STORES env var and DJ_IGNORE_CONFIG_FILE flag."""
511
+
512
+ def _isolate_filesystem(self, monkeypatch, tmp_path):
513
+ """chdir into a tmp_path with a .git sentinel so find_config_file stops there."""
514
+ (tmp_path / ".git").mkdir()
515
+ monkeypatch.chdir(tmp_path)
516
+ # Defend against a /run/secrets/datajoint/ on the host
517
+ monkeypatch.setattr(settings, "SYSTEM_SECRETS_DIR", tmp_path / "nonexistent-system-secrets")
518
+
519
+ def test_dj_stores_sets_stores_dict(self, monkeypatch, tmp_path):
520
+ self._isolate_filesystem(monkeypatch, tmp_path)
521
+ monkeypatch.setenv(
522
+ "DJ_STORES",
523
+ '{"uc":{"protocol":"http","token":"dapibd","workspace_url":"https://x"}}',
524
+ )
525
+
526
+ with pytest.warns(UserWarning): # "No datajoint.json found"
527
+ cfg = settings._create_config()
528
+
529
+ assert cfg.stores["uc"]["protocol"] == "http"
530
+ assert cfg.stores["uc"]["token"] == "dapibd"
531
+ assert cfg.stores["uc"]["workspace_url"] == "https://x"
532
+
533
+ def test_dj_stores_overrides_config_file(self, monkeypatch, tmp_path):
534
+ self._isolate_filesystem(monkeypatch, tmp_path)
535
+ (tmp_path / CONFIG_FILENAME).write_text('{"stores": {"main": {"protocol": "s3", "location": "from-file"}}}')
536
+ monkeypatch.setenv(
537
+ "DJ_STORES",
538
+ '{"main": {"protocol": "http", "location": "from-env"}}',
539
+ )
540
+
541
+ cfg = settings._create_config()
542
+
543
+ assert cfg.stores["main"]["protocol"] == "http"
544
+ assert cfg.stores["main"]["location"] == "from-env"
545
+
546
+ def test_dj_stores_invalid_json_raises(self, monkeypatch, tmp_path):
547
+ self._isolate_filesystem(monkeypatch, tmp_path)
548
+ monkeypatch.setenv("DJ_STORES", "{not json")
549
+ with pytest.raises(ValueError, match="DJ_STORES.*invalid JSON"):
550
+ settings._create_config()
551
+
552
+ def test_dj_stores_non_object_raises(self, monkeypatch, tmp_path):
553
+ self._isolate_filesystem(monkeypatch, tmp_path)
554
+ monkeypatch.setenv("DJ_STORES", '["a", "b"]')
555
+ with pytest.raises(ValueError, match="DJ_STORES must be a JSON object"):
556
+ settings._create_config()
557
+
558
+ def test_dj_stores_plus_secrets_dir(self, monkeypatch, tmp_path):
559
+ """Secrets dir fills attrs that DJ_STORES omits."""
560
+ self._isolate_filesystem(monkeypatch, tmp_path)
561
+ # config file lets find_secrets_dir locate .secrets/ next to it
562
+ (tmp_path / CONFIG_FILENAME).write_text("{}")
563
+ secrets_dir = tmp_path / SECRETS_DIRNAME
564
+ secrets_dir.mkdir()
565
+ (secrets_dir / "stores.uc.token").write_text("from-secrets")
566
+ monkeypatch.setenv("DJ_STORES", '{"uc": {"protocol": "http"}}')
567
+
568
+ cfg = settings._create_config()
569
+
570
+ assert cfg.stores["uc"]["protocol"] == "http"
571
+ assert cfg.stores["uc"]["token"] == "from-secrets"
572
+
573
+ def test_ignore_config_file_skips_json(self, monkeypatch, tmp_path):
574
+ self._isolate_filesystem(monkeypatch, tmp_path)
575
+ (tmp_path / CONFIG_FILENAME).write_text('{"database": {"host": "should-not-load"}}')
576
+ monkeypatch.setenv("DJ_IGNORE_CONFIG_FILE", "true")
577
+
578
+ cfg = settings._create_config()
579
+
580
+ assert cfg.database.host == "localhost"
581
+
582
+ def test_ignore_config_file_skips_secrets(self, monkeypatch, tmp_path):
583
+ self._isolate_filesystem(monkeypatch, tmp_path)
584
+ # Place secrets where find_secrets_dir would find them if not ignored
585
+ monkeypatch.setattr(settings, "SYSTEM_SECRETS_DIR", tmp_path / SECRETS_DIRNAME)
586
+ secrets_dir = tmp_path / SECRETS_DIRNAME
587
+ secrets_dir.mkdir()
588
+ (secrets_dir / "database.password").write_text("should-not-load")
589
+ monkeypatch.setenv("DJ_IGNORE_CONFIG_FILE", "true")
590
+
591
+ cfg = settings._create_config()
592
+
593
+ assert cfg.database.password is None
594
+
595
+ def test_ignore_config_file_default_loads_both(self, monkeypatch, tmp_path):
596
+ """Default (env unset) preserves today's behavior."""
597
+ self._isolate_filesystem(monkeypatch, tmp_path)
598
+ (tmp_path / CONFIG_FILENAME).write_text('{"database": {"host": "from-file"}}')
599
+ secrets_dir = tmp_path / SECRETS_DIRNAME
600
+ secrets_dir.mkdir()
601
+ (secrets_dir / "database.user").write_text("dbuser")
602
+ monkeypatch.delenv("DJ_IGNORE_CONFIG_FILE", raising=False)
603
+
604
+ cfg = settings._create_config()
605
+
606
+ assert cfg.database.host == "from-file"
607
+ assert cfg.database.user == "dbuser"
608
+
490
609
 
491
610
  class TestDisplaySettings:
492
611
  """Test display-related settings."""
@@ -1,14 +0,0 @@
1
- ARG PY_VER
2
- ARG DISTRO
3
- FROM mcr.microsoft.com/devcontainers/python:${PY_VER}-${DISTRO}
4
- RUN \
5
- apt update && \
6
- apt-get install bash-completion graphviz default-mysql-client -y && \
7
- pip install flake8 black faker ipykernel pytest pytest-cov nose nose-cov datajoint jupyterlab && \
8
- pip uninstall datajoint -y
9
-
10
- USER root
11
- ENV DJ_HOST=db
12
- ENV DJ_USER=root
13
- ENV DJ_PASS=password
14
- ENV S3_ENDPOINT=minio:9000
@@ -1,6 +0,0 @@
1
- {
2
- "dockerComposeFile": ["../docker-compose.yaml", "docker-compose.yml"],
3
- "service": "app",
4
- "workspaceFolder": "/src",
5
- "postCreateCommand": "curl -fsSL https://pixi.sh/install.sh | bash && echo 'export PATH=\"$HOME/.pixi/bin:$PATH\"' >> ~/.bashrc"
6
- }