simstack 0.2.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 (226) hide show
  1. simstack-0.2.0/.cruft.json +19 -0
  2. simstack-0.2.0/.dockerignore +59 -0
  3. simstack-0.2.0/.github/workflows/ci.yml +36 -0
  4. simstack-0.2.0/.github/workflows/conda_build.yml +37 -0
  5. simstack-0.2.0/.github/workflows/cruft.yml +28 -0
  6. simstack-0.2.0/.github/workflows/pypi_build.yml +59 -0
  7. simstack-0.2.0/.gitignore +156 -0
  8. simstack-0.2.0/.pre-commit-config.yaml +36 -0
  9. simstack-0.2.0/LICENSE +21 -0
  10. simstack-0.2.0/PKG-INFO +361 -0
  11. simstack-0.2.0/README.md +343 -0
  12. simstack-0.2.0/conda-recipe/meta.yaml +27 -0
  13. simstack-0.2.0/doc/file_transfer.md +177 -0
  14. simstack-0.2.0/doc/source/architecture.rst +25 -0
  15. simstack-0.2.0/doc/source/cobalt2-theme.css +151 -0
  16. simstack-0.2.0/doc/source/conf.py +90 -0
  17. simstack-0.2.0/doc/source/data.rst +156 -0
  18. simstack-0.2.0/doc/source/files.rst +54 -0
  19. simstack-0.2.0/doc/source/index.rst +25 -0
  20. simstack-0.2.0/doc/source/installation.rst +217 -0
  21. simstack-0.2.0/doc/source/misc.rst +103 -0
  22. simstack-0.2.0/doc/source/overview.rst +103 -0
  23. simstack-0.2.0/doc/source/resources/Figures.pptx +0 -0
  24. simstack-0.2.0/doc/source/resources/GUI Concept.webp +0 -0
  25. simstack-0.2.0/doc/source/resources/architecture.png +0 -0
  26. simstack-0.2.0/doc/source/resources/artifacts.PNG +0 -0
  27. simstack-0.2.0/doc/source/resources/dashboard.PNG +0 -0
  28. simstack-0.2.0/doc/source/resources/job-parameters.PNG +0 -0
  29. simstack-0.2.0/doc/source/resources/model-tree-structure.PNG +0 -0
  30. simstack-0.2.0/doc/source/resources/node_selector.PNG +0 -0
  31. simstack-0.2.0/doc/source/resources/sample-input.PNG +0 -0
  32. simstack-0.2.0/doc/source/resources/task_details.PNG +0 -0
  33. simstack-0.2.0/doc/source/simstack/applications.electronic_structure.gaussian.rst +29 -0
  34. simstack-0.2.0/doc/source/simstack/applications.electronic_structure.orca.rst +45 -0
  35. simstack-0.2.0/doc/source/simstack/applications.electronic_structure.rst +80 -0
  36. simstack-0.2.0/doc/source/simstack/applications.electronic_structure.turbomole.rst +29 -0
  37. simstack-0.2.0/doc/source/simstack/applications.electronic_structure.util.rst +61 -0
  38. simstack-0.2.0/doc/source/simstack/applications.general.rst +10 -0
  39. simstack-0.2.0/doc/source/simstack/applications.group.battery_kmc.rst +21 -0
  40. simstack-0.2.0/doc/source/simstack/applications.group.rst +18 -0
  41. simstack-0.2.0/doc/source/simstack/applications.rst +20 -0
  42. simstack-0.2.0/doc/source/simstack/examples.core.rst +133 -0
  43. simstack-0.2.0/doc/source/simstack/examples.file_operations.rst +53 -0
  44. simstack-0.2.0/doc/source/simstack/examples.interface.rst +53 -0
  45. simstack-0.2.0/doc/source/simstack/examples.rst +56 -0
  46. simstack-0.2.0/doc/source/simstack/examples.science.bonding_analysis.rst +21 -0
  47. simstack-0.2.0/doc/source/simstack/examples.science.electronic_structure.gaussian.rst +10 -0
  48. simstack-0.2.0/doc/source/simstack/examples.science.electronic_structure.orca.rst +10 -0
  49. simstack-0.2.0/doc/source/simstack/examples.science.electronic_structure.rst +48 -0
  50. simstack-0.2.0/doc/source/simstack/examples.science.electronic_structure.spectra.rst +61 -0
  51. simstack-0.2.0/doc/source/simstack/examples.science.electronic_structure.transition_states.c2h6.rst +21 -0
  52. simstack-0.2.0/doc/source/simstack/examples.science.electronic_structure.transition_states.rst +18 -0
  53. simstack-0.2.0/doc/source/simstack/examples.science.raspa.rst +21 -0
  54. simstack-0.2.0/doc/source/simstack/examples.science.rst +31 -0
  55. simstack-0.2.0/doc/source/simstack/inspectFunctionFromDB.rst +7 -0
  56. simstack-0.2.0/doc/source/simstack/modules.rst +7 -0
  57. simstack-0.2.0/doc/source/simstack/simstack.core.rst +149 -0
  58. simstack-0.2.0/doc/source/simstack/simstack.methods.rst +21 -0
  59. simstack-0.2.0/doc/source/simstack/simstack.models.rst +141 -0
  60. simstack-0.2.0/doc/source/simstack/simstack.rst +23 -0
  61. simstack-0.2.0/doc/source/simstack/simstack.server.routes.rst +53 -0
  62. simstack-0.2.0/doc/source/simstack/simstack.server.rst +117 -0
  63. simstack-0.2.0/doc/source/simstack/simstack.ui_testing.rst +29 -0
  64. simstack-0.2.0/doc/source/simstack/simstack.util.rst +253 -0
  65. simstack-0.2.0/doc/source/simstack/tests.core.rst +261 -0
  66. simstack-0.2.0/doc/source/simstack/tests.methods.rst +93 -0
  67. simstack-0.2.0/doc/source/simstack/tests.rst +48 -0
  68. simstack-0.2.0/doc/source/simstack/tests.server.rst +10 -0
  69. simstack-0.2.0/doc/source/simstack/tests.util.rst +21 -0
  70. simstack-0.2.0/doc/source/submit.rst +141 -0
  71. simstack-0.2.0/doc/source/ui_documentation.rst +272 -0
  72. simstack-0.2.0/doc/source/workflows.rst +423 -0
  73. simstack-0.2.0/docker-mongo/docker-compose.test.yml +7 -0
  74. simstack-0.2.0/pyproject-pixi.toml +215 -0
  75. simstack-0.2.0/pyproject.toml +132 -0
  76. simstack-0.2.0/scripts/.udockerrc +19 -0
  77. simstack-0.2.0/scripts/check_runner.sh +60 -0
  78. simstack-0.2.0/scripts/code_line_counter.py +352 -0
  79. simstack-0.2.0/scripts/git-auto-updater.sh +150 -0
  80. simstack-0.2.0/scripts/git-sync.sh +56 -0
  81. simstack-0.2.0/scripts/make-toml.sh +9 -0
  82. simstack-0.2.0/scripts/mongo_db_database_creation.py +15 -0
  83. simstack-0.2.0/scripts/mongo_db_update_script.py +26 -0
  84. simstack-0.2.0/scripts/old/CLAUDE.md +69 -0
  85. simstack-0.2.0/scripts/old/Dockerfile-NEW +168 -0
  86. simstack-0.2.0/scripts/old/Dockerfile2 +137 -0
  87. simstack-0.2.0/scripts/old/Dockerfile3 +257 -0
  88. simstack-0.2.0/scripts/old/Dockerfile4 +91 -0
  89. simstack-0.2.0/scripts/old/development_docker_compose.yml +11 -0
  90. simstack-0.2.0/scripts/old/docker_compose_pip.yml +54 -0
  91. simstack-0.2.0/scripts/old/docker_compose_test.yml +54 -0
  92. simstack-0.2.0/scripts/package_installer.sh +7 -0
  93. simstack-0.2.0/scripts/run-node.sh +17 -0
  94. simstack-0.2.0/scripts/runner.sh +13 -0
  95. simstack-0.2.0/scripts/simstack-docker.toml +73 -0
  96. simstack-0.2.0/scripts/udocker-file +92 -0
  97. simstack-0.2.0/setup.cfg +4 -0
  98. simstack-0.2.0/simstack.toml +19 -0
  99. simstack-0.2.0/src/simstack/__init__.py +0 -0
  100. simstack-0.2.0/src/simstack/_version.py +34 -0
  101. simstack-0.2.0/src/simstack/core/__init__.py +0 -0
  102. simstack-0.2.0/src/simstack/core/artifacts.py +447 -0
  103. simstack-0.2.0/src/simstack/core/asnyc_helper.py +14 -0
  104. simstack-0.2.0/src/simstack/core/config_file.py +60 -0
  105. simstack-0.2.0/src/simstack/core/context.py +167 -0
  106. simstack-0.2.0/src/simstack/core/data.py +139 -0
  107. simstack-0.2.0/src/simstack/core/definitions.py +21 -0
  108. simstack-0.2.0/src/simstack/core/engine.py +116 -0
  109. simstack-0.2.0/src/simstack/core/find_simstack_modules.py +43 -0
  110. simstack-0.2.0/src/simstack/core/hash.py +177 -0
  111. simstack-0.2.0/src/simstack/core/model_table.py +199 -0
  112. simstack-0.2.0/src/simstack/core/node.py +911 -0
  113. simstack-0.2.0/src/simstack/core/node_runner.py +254 -0
  114. simstack-0.2.0/src/simstack/core/node_table.py +380 -0
  115. simstack-0.2.0/src/simstack/core/recompute_artifacts.py +120 -0
  116. simstack-0.2.0/src/simstack/core/reset_db.py +12 -0
  117. simstack-0.2.0/src/simstack/core/resources.py +101 -0
  118. simstack-0.2.0/src/simstack/core/run_node.py +69 -0
  119. simstack-0.2.0/src/simstack/core/runner.py +435 -0
  120. simstack-0.2.0/src/simstack/core/simstack_result.py +41 -0
  121. simstack-0.2.0/src/simstack/core/submit_node.py +143 -0
  122. simstack-0.2.0/src/simstack/core/task_id.py +22 -0
  123. simstack-0.2.0/src/simstack/data/__init__.py +0 -0
  124. simstack-0.2.0/src/simstack/methods/__init__.py +0 -0
  125. simstack-0.2.0/src/simstack/methods/get_file.py +10 -0
  126. simstack-0.2.0/src/simstack/methods/multiple_executor.py +307 -0
  127. simstack-0.2.0/src/simstack/models/__init__.py +37 -0
  128. simstack-0.2.0/src/simstack/models/array_list.py +48 -0
  129. simstack-0.2.0/src/simstack/models/array_storage.py +54 -0
  130. simstack-0.2.0/src/simstack/models/artifact_models.py +127 -0
  131. simstack-0.2.0/src/simstack/models/base_types.py +208 -0
  132. simstack-0.2.0/src/simstack/models/charts_artifact.py +411 -0
  133. simstack-0.2.0/src/simstack/models/dataset.py +432 -0
  134. simstack-0.2.0/src/simstack/models/dataset_metadata.py +303 -0
  135. simstack-0.2.0/src/simstack/models/file_instance.py +77 -0
  136. simstack-0.2.0/src/simstack/models/file_list.py +321 -0
  137. simstack-0.2.0/src/simstack/models/files.py +229 -0
  138. simstack-0.2.0/src/simstack/models/log_entry_model.py +37 -0
  139. simstack-0.2.0/src/simstack/models/models.py +40 -0
  140. simstack-0.2.0/src/simstack/models/node_registry.py +105 -0
  141. simstack-0.2.0/src/simstack/models/pandas_model.py +210 -0
  142. simstack-0.2.0/src/simstack/models/parameters.py +388 -0
  143. simstack-0.2.0/src/simstack/models/pickle_models.py +311 -0
  144. simstack-0.2.0/src/simstack/models/runner_model.py +39 -0
  145. simstack-0.2.0/src/simstack/models/simple_table.py +32 -0
  146. simstack-0.2.0/src/simstack/models/simstack_model.py +97 -0
  147. simstack-0.2.0/src/simstack/models/slurm_info.py +17 -0
  148. simstack-0.2.0/src/simstack/models/table_artifact.py +87 -0
  149. simstack-0.2.0/src/simstack/util/__init__.py +0 -0
  150. simstack-0.2.0/src/simstack/util/async_zip_utils.py +18 -0
  151. simstack-0.2.0/src/simstack/util/cleaned_json_schema.py +20 -0
  152. simstack-0.2.0/src/simstack/util/config_reader.py +273 -0
  153. simstack-0.2.0/src/simstack/util/custom_model_dump.py +75 -0
  154. simstack-0.2.0/src/simstack/util/db.py +457 -0
  155. simstack-0.2.0/src/simstack/util/db_logger.py +117 -0
  156. simstack-0.2.0/src/simstack/util/default_from_dict.py +57 -0
  157. simstack-0.2.0/src/simstack/util/directory_iterator.py +216 -0
  158. simstack-0.2.0/src/simstack/util/file_hashing.py +68 -0
  159. simstack-0.2.0/src/simstack/util/files.py +396 -0
  160. simstack-0.2.0/src/simstack/util/find_python_files.py +33 -0
  161. simstack-0.2.0/src/simstack/util/generate_ui_schema.py +80 -0
  162. simstack-0.2.0/src/simstack/util/geometry_utils.py +118 -0
  163. simstack-0.2.0/src/simstack/util/get_module_path.py +26 -0
  164. simstack-0.2.0/src/simstack/util/git_pull.py +65 -0
  165. simstack-0.2.0/src/simstack/util/git_repository_status.py +93 -0
  166. simstack-0.2.0/src/simstack/util/import_module.py +65 -0
  167. simstack-0.2.0/src/simstack/util/importer.py +163 -0
  168. simstack-0.2.0/src/simstack/util/make_graph.py +107 -0
  169. simstack-0.2.0/src/simstack/util/make_table.py +827 -0
  170. simstack-0.2.0/src/simstack/util/minimal_route_finder.py +72 -0
  171. simstack-0.2.0/src/simstack/util/mock_db.py +144 -0
  172. simstack-0.2.0/src/simstack/util/module_path_checker.py +38 -0
  173. simstack-0.2.0/src/simstack/util/path_manager.py +234 -0
  174. simstack-0.2.0/src/simstack/util/project_root_finder.py +36 -0
  175. simstack-0.2.0/src/simstack/util/queue_watcher.py +262 -0
  176. simstack-0.2.0/src/simstack/util/route_finder.py +74 -0
  177. simstack-0.2.0/src/simstack/util/runner_util.py +162 -0
  178. simstack-0.2.0/src/simstack/util/safe_code_executor.py +194 -0
  179. simstack-0.2.0/src/simstack/util/sample_config.py +98 -0
  180. simstack-0.2.0/src/simstack/util/sensitive_content_filter.py +48 -0
  181. simstack-0.2.0/src/simstack/util/setup_logging.py +49 -0
  182. simstack-0.2.0/src/simstack/util/submit_to_watchdog.py +106 -0
  183. simstack-0.2.0/src/simstack/util/ui_tools.py +213 -0
  184. simstack-0.2.0/src/simstack.egg-info/PKG-INFO +361 -0
  185. simstack-0.2.0/src/simstack.egg-info/SOURCES.txt +224 -0
  186. simstack-0.2.0/src/simstack.egg-info/dependency_links.txt +1 -0
  187. simstack-0.2.0/src/simstack.egg-info/entry_points.txt +10 -0
  188. simstack-0.2.0/src/simstack.egg-info/requires.txt +6 -0
  189. simstack-0.2.0/src/simstack.egg-info/top_level.txt +1 -0
  190. simstack-0.2.0/tests/__init__.py +0 -0
  191. simstack-0.2.0/tests/conftest.py +322 -0
  192. simstack-0.2.0/tests/core/__init__.py +0 -0
  193. simstack-0.2.0/tests/core/conftest.py +25 -0
  194. simstack-0.2.0/tests/core/load_models_by_name.py +18 -0
  195. simstack-0.2.0/tests/core/resource_id_extraction_tests.py +78 -0
  196. simstack-0.2.0/tests/core/test_array_storage.py +131 -0
  197. simstack-0.2.0/tests/core/test_array_storage_class.py +50 -0
  198. simstack-0.2.0/tests/core/test_artifacts.py +311 -0
  199. simstack-0.2.0/tests/core/test_copy_decorator.py +282 -0
  200. simstack-0.2.0/tests/core/test_dataset.py +500 -0
  201. simstack-0.2.0/tests/core/test_dataset_metadata.py +516 -0
  202. simstack-0.2.0/tests/core/test_failures.py +119 -0
  203. simstack-0.2.0/tests/core/test_file_list_model.py +411 -0
  204. simstack-0.2.0/tests/core/test_file_rerun.py +43 -0
  205. simstack-0.2.0/tests/core/test_files.py +330 -0
  206. simstack-0.2.0/tests/core/test_hash.py +190 -0
  207. simstack-0.2.0/tests/core/test_import_class.py +90 -0
  208. simstack-0.2.0/tests/core/test_import_function.py +126 -0
  209. simstack-0.2.0/tests/core/test_loading_results.py +129 -0
  210. simstack-0.2.0/tests/core/test_local_runner.py +25 -0
  211. simstack-0.2.0/tests/core/test_message_extraction.py +57 -0
  212. simstack-0.2.0/tests/core/test_multiple_args.py +21 -0
  213. simstack-0.2.0/tests/core/test_node_runner.py +302 -0
  214. simstack-0.2.0/tests/core/test_node_runner_info_files.py +316 -0
  215. simstack-0.2.0/tests/core/test_odmantic_model.py +30 -0
  216. simstack-0.2.0/tests/core/test_remote_file_transfer.py +408 -0
  217. simstack-0.2.0/tests/core/test_resources_and_parameters.py +345 -0
  218. simstack-0.2.0/tests/core/test_route_finder.py +47 -0
  219. simstack-0.2.0/tests/core/test_route_minimization.py +270 -0
  220. simstack-0.2.0/tests/core/test_run_function_by_name.py +23 -0
  221. simstack-0.2.0/tests/core/test_simple_nodes.py +116 -0
  222. simstack-0.2.0/tests/core/test_testrunner.py +21 -0
  223. simstack-0.2.0/tests/util/__init__.py +0 -0
  224. simstack-0.2.0/tests/util/test_module_path_checker.py +293 -0
  225. simstack-0.2.0/tests/util/test_path_manager.py +125 -0
  226. simstack-0.2.0/uv.lock +1652 -0
@@ -0,0 +1,19 @@
1
+ {
2
+ "template": "https://github.com/NanomatchGmbH/python-pixi-cruft.git",
3
+ "commit": "0f30d06b4aa86bf4c444ac4062b096304fa40262",
4
+ "checkout": null,
5
+ "context": {
6
+ "cookiecutter": {
7
+ "author_name": "Wolfgang Wenzel",
8
+ "email": "wolfgang.wenzel@kit.edu",
9
+ "github_username": "wolfgang.wenzel",
10
+ "project_name": "simstack-model",
11
+ "project_slug": "simstack_model",
12
+ "project_short_description": "A short description of the project",
13
+ "github_url": "https://gitlab.kit.edu/kit/ag_wenzel/simstack-model/",
14
+ "conda_publish_url": "https://prefix.dev/api/v1/upload/your_channel",
15
+ "_template": "https://github.com/NanomatchGmbH/python-pixi-cruft.git"
16
+ }
17
+ },
18
+ "directory": null
19
+ }
@@ -0,0 +1,59 @@
1
+ # Git
2
+ .git
3
+ .gitignore
4
+
5
+ # Python
6
+ __pycache__
7
+ *.pyc
8
+ *.pyo
9
+ *.pyd
10
+ .Python
11
+ pip-log.txt
12
+ pip-delete-this-directory.txt
13
+ .tox
14
+ .coverage
15
+ .coverage.*
16
+ .pytest_cache
17
+ nosetests.xml
18
+ coverage.xml
19
+ *.cover
20
+ *.log
21
+ .mypy_cache
22
+
23
+ # Pixi (keep lock file)
24
+ .pixi/
25
+ !pixi.lock
26
+
27
+ # Conda/Mamba
28
+ .conda/
29
+ .mamba/
30
+
31
+ # Documentation
32
+ doc/
33
+ docs/
34
+ *.md
35
+ !README.md
36
+
37
+ # Development
38
+ .vscode/
39
+ .idea/
40
+ *.swp
41
+ *.swo
42
+
43
+ # OS
44
+ .DS_Store
45
+ Thumbs.db
46
+
47
+ # Project specific
48
+ .env*
49
+ debug.txt
50
+ *.lock
51
+ !pixi.lock
52
+
53
+ # Build artifacts
54
+ build/
55
+ dist/
56
+ *.egg-info/
57
+
58
+ # udocker specific
59
+ .udocker/
@@ -0,0 +1,36 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main", "master" ]
6
+ pull_request:
7
+ branches: [ "main", "master" ]
8
+
9
+ jobs:
10
+ test:
11
+ name: Test on ${{ matrix.os }}
12
+ runs-on: ${{ matrix.os }}
13
+ strategy:
14
+ fail-fast: false
15
+ matrix:
16
+ os: [ubuntu-latest, windows-latest]
17
+ python-version: ["3.12"]
18
+
19
+ steps:
20
+ - uses: actions/checkout@v4
21
+
22
+ - name: Install uv
23
+ uses: astral-sh/setup-uv@v3
24
+ with:
25
+ enable-cache: true
26
+ cache-dependency-glob: "uv.lock"
27
+
28
+ - name: "Set up Python ${{ matrix.python-version }}"
29
+ run: uv python install ${{ matrix.python-version }}
30
+
31
+ - name: Install dependencies
32
+ run: uv sync --all-extras --dev
33
+
34
+ - name: Run tests
35
+ # Runs pytest with coverage, skipping 'local_runner' tests as per previous configuration
36
+ run: uv run python -m pytest tests/ --junitxml=pytest.xml --cov-report=term-missing --cov=simstack --cov-config=pyproject.toml -m "not local_runner"
@@ -0,0 +1,37 @@
1
+ name: "Build Conda Package"
2
+ on:
3
+ workflow_dispatch:
4
+ defaults:
5
+ run:
6
+ shell: bash
7
+ jobs:
8
+ build_conda_package:
9
+ runs-on: ubuntu-latest
10
+ strategy:
11
+ fail-fast: true
12
+ steps:
13
+ - name: Checkout
14
+ uses: actions/checkout@v4
15
+ - name: Setup Pixi
16
+ uses: prefix-dev/setup-pixi@v0.8.1
17
+ with:
18
+ environments: condabuild
19
+ - name: Build
20
+ id: build
21
+ run: |
22
+ pixi run condabuild --output-folder build/ --no-anaconda-upload
23
+ OUTPUTFILE=$(pixi run condabuild --output --output-folder build/ --no-anaconda-upload)
24
+ mkdir -p build/
25
+ echo "releasepath=`realpath $OUTPUTFILE`" >> $GITHUB_OUTPUT
26
+
27
+ - name: Archive code coverage results
28
+ uses: actions/upload-artifact@v4
29
+ with:
30
+ name: condapackage
31
+ path: ${{ steps.build.outputs.releasepath }}
32
+
33
+ - name: Upload to Testing Repo
34
+ id: upload
35
+ run: |
36
+ pixi auth login prefix.dev --token ${{ secrets.PREFIX_PUBLISH_KEY }}
37
+ pixi upload https://prefix.dev/api/v1/upload/your_channel ${{ steps.build.outputs.releasepath }}
@@ -0,0 +1,28 @@
1
+ name: Cruft
2
+ on:
3
+ workflow_dispatch:
4
+ concurrency:
5
+ group: ${{ github.workflow }}
6
+ cancel-in-progress: true
7
+ jobs:
8
+ cruft:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Checkout
12
+ uses: actions/checkout@v4
13
+ - name: Setup Pixi
14
+ uses: prefix-dev/setup-pixi@v0.8.1
15
+ with:
16
+ cache: false
17
+ environments: cruft
18
+ - name: Update Cruft
19
+ run: pixi run cruft update -y
20
+ - name: Create Pull Request
21
+ uses: peter-evans/create-pull-request@v7
22
+ with:
23
+ commit-message: Update to newest Cruft template
24
+ author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
25
+ title: '[Cruft] Update to newest cruft template'
26
+ labels: |
27
+ cruft
28
+ bot
@@ -0,0 +1,59 @@
1
+ name: "Build pypi Package"
2
+ on:
3
+ push:
4
+ tags:
5
+ - 'v[0-9]+.[0-9]+.[0-9]+'
6
+ workflow_dispatch:
7
+ defaults:
8
+ run:
9
+ shell: bash
10
+ jobs:
11
+ build_pypi_package:
12
+ runs-on: ubuntu-latest
13
+ permissions:
14
+ id-token: write
15
+ contents: read
16
+ strategy:
17
+ fail-fast: true
18
+ # Only run for semantic version tags or manual dispatch
19
+ if: github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/v')
20
+ steps:
21
+ - name: Checkout
22
+ uses: actions/checkout@v4
23
+ with:
24
+ fetch-depth: 0 # Fetch full history to check tag ancestry
25
+
26
+ - name: Install the latest version of uv
27
+ uses: astral-sh/setup-uv@v7
28
+
29
+ - name: Verify tag is from main branch
30
+ if: startsWith(github.ref, 'refs/tags/v')
31
+ run: |
32
+ # Check if the current tag is reachable from main branch
33
+ if ! git merge-base --is-ancestor ${{ github.sha }} origin/main; then
34
+ echo "Error: Tag ${{ github.ref_name }} is not from main branch"
35
+ exit 1
36
+ fi
37
+ echo "Tag ${{ github.ref_name }} is from main branch - proceeding with build"
38
+ - name: Build
39
+ id: build
40
+ run: |
41
+ uv build
42
+ - name: Archive package on github
43
+ uses: actions/upload-artifact@v4
44
+ with:
45
+ name: pypipackage
46
+ path: dist/*
47
+
48
+ - name: Upload to PyPI
49
+ id: upload
50
+ run: |
51
+ if [[ "${{ github.event_name }}" == "push" && "${{ github.ref_type }}" == "tag" ]]; then
52
+ # Upload to main PyPI for release tags
53
+ echo "Uploading to main PyPI for release tag ${{ github.ref_name }}"
54
+ uv publish
55
+ else
56
+ # Upload to TestPyPI for manual dispatch
57
+ echo "Uploading to TestPyPI for manual workflow dispatch"
58
+ uv publish --index testpypi
59
+ fi
@@ -0,0 +1,156 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ .idea/
7
+ .run/
8
+
9
+ # C extensions
10
+ *.so
11
+
12
+ # pytest output
13
+ pytest-coverage.txt
14
+ pytest.xml
15
+
16
+ # Distribution / packaging
17
+ .Python
18
+ build/
19
+ develop-eggs/
20
+ dist/
21
+ downloads/
22
+ eggs/
23
+ .eggs/
24
+ lib/
25
+ lib64/
26
+ parts/
27
+ sdist/
28
+ var/
29
+ wheels/
30
+ share/python-wheels/
31
+ *.egg-info/
32
+ .installed.cfg
33
+ *.egg
34
+ MANIFEST
35
+
36
+ # PyInstaller
37
+ # Usually these files are written by a python script from a template
38
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
39
+ *.manifest
40
+ *.spec
41
+
42
+ # Installer logs
43
+ pip-log.txt
44
+ pip-delete-this-directory.txt
45
+
46
+ # Unit test / coverage reports
47
+ htmlcov/
48
+ .tox/
49
+ .nox/
50
+ .coverage
51
+ .coverage.*
52
+ .cache
53
+ nosetests.xml
54
+ coverage.xml
55
+ *.cover
56
+ *.py,cover
57
+ .hypothesis/
58
+ .pytest_cache/
59
+ cover/
60
+
61
+ # Translations
62
+ *.mo
63
+ *.pot
64
+
65
+ # Django stuff:
66
+ *.log
67
+ local_settings.py
68
+ db.sqlite3
69
+ db.sqlite3-journal
70
+
71
+ # Flask stuff:
72
+ instance/
73
+ .webassets-cache
74
+
75
+ # Scrapy stuff:
76
+ .scrapy
77
+
78
+ # Sphinx documentation
79
+ docs/_build/
80
+
81
+ # PyBuilder
82
+ .pybuilder/
83
+ target/
84
+
85
+ # Jupyter Notebook
86
+ .ipynb_checkpoints
87
+
88
+ # IPython
89
+ profile_default/
90
+ ipython_config.py
91
+
92
+ # pyenv
93
+ # For a library or package, you might want to ignore these files since the code is
94
+ # intended to run in multiple environments; otherwise, check them in:
95
+ # .python-version
96
+
97
+ # pipenv
98
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
99
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
100
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
101
+ # install all needed dependencies.
102
+ #Pipfile.lock
103
+
104
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
105
+ __pypackages__/
106
+
107
+ # Celery stuff
108
+ celerybeat-schedule
109
+ celerybeat.pid
110
+
111
+ # SageMath parsed files
112
+ *.sage.py
113
+
114
+ # Environments
115
+ .env
116
+ .venv
117
+ .idea
118
+ .run
119
+ env/
120
+ venv/
121
+ ENV/
122
+ env.bak/
123
+ venv.bak/
124
+
125
+ # Spyder project settings
126
+ .spyderproject
127
+ .spyproject
128
+
129
+ # Rope project settings
130
+ .ropeproject
131
+
132
+ # mkdocs documentation
133
+ /site
134
+
135
+ # mypy
136
+ .mypy_cache/
137
+ .dmypy.json
138
+ dmypy.json
139
+
140
+ # Pyre type checker
141
+ .pyre/
142
+
143
+ # pytype static type analyzer
144
+ .pytype/
145
+
146
+ # Cython debug symbols
147
+ cython_debug/
148
+
149
+ # IDE
150
+ test_simstack.toml
151
+ script_runner.out
152
+ # pixi environments
153
+ .pixi
154
+ *.egg-info
155
+ #version
156
+ src/simstack/_version.py
@@ -0,0 +1,36 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v4.5.0
4
+ hooks:
5
+ - id: check-toml
6
+ exclude: ^(applications|examples|doc|docs)/
7
+ - id: check-yaml
8
+ exclude: ^(applications|examples|doc|docs)/
9
+ - id: end-of-file-fixer
10
+ exclude: ^(applications|examples|doc|docs)/
11
+ - id: trailing-whitespace
12
+ exclude: ^(applications|examples|doc|docs)/
13
+
14
+ - repo: https://github.com/astral-sh/ruff-pre-commit
15
+ rev: v0.1.5
16
+ hooks:
17
+ - id: ruff
18
+ args: [--fix, --exit-non-zero-on-fix, --show-fixes]
19
+ exclude: ^(applications|examples|doc|docs)/
20
+ - id: ruff-format
21
+ exclude: ^(applications|examples|doc|docs)/
22
+ - repo: local
23
+ hooks:
24
+ - id: pixi-install
25
+ name: pixi-install
26
+ entry: pixi install -e mypy
27
+ language: system
28
+ always_run: true
29
+ require_serial: true
30
+ pass_filenames: false
31
+ - id: mypy
32
+ name: mypy
33
+ entry: "pixi run -e mypy mypy"
34
+ language: system
35
+ pass_filenames: false
36
+ require_serial: true
simstack-0.2.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Wolfgang Wenzel
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the “Software”), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.