PyMieSimX 0.4.4__tar.gz → 0.4.6__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 (119) hide show
  1. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/.github/workflows/deploy_coverage.yml +1 -1
  2. pymiesimx-0.4.6/.github/workflows/deploy_documentation.yml +20 -0
  3. pymiesimx-0.4.6/.github/workflows/deploy_release.yml +34 -0
  4. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/.github/workflows/quality.yml +2 -2
  5. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/.github/workflows/tests.yml +1 -1
  6. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PKG-INFO +3 -3
  7. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX.egg-info/PKG-INFO +3 -3
  8. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX.egg-info/requires.txt +2 -2
  9. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX.egg-info/scm_version.json +2 -2
  10. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/docs/source/conf.py +2 -12
  11. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/pyproject.toml +2 -2
  12. pymiesimx-0.4.4/.github/workflows/deploy_documentation.yml +0 -116
  13. pymiesimx-0.4.4/.github/workflows/deploy_release.yml +0 -30
  14. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/.coveragerc +0 -0
  15. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/.flake8 +0 -0
  16. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/.github/dependabot.yml +0 -0
  17. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/.gitignore +0 -0
  18. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/.pre-commit-config.yaml +0 -0
  19. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/AGENTS.md +0 -0
  20. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/CONTRIBUTING.md +0 -0
  21. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/Dockerfile +0 -0
  22. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/LICENSE +0 -0
  23. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/__init__.py +0 -0
  24. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/__main__.py +0 -0
  25. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/api.py +0 -0
  26. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/application/__init__.py +0 -0
  27. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/application/wsgi.py +0 -0
  28. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/__init__.py +0 -0
  29. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/admin.py +0 -0
  30. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/assets/card-state.js +0 -0
  31. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/assets/dashboard.css +0 -0
  32. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/assets/default-settings.json +0 -0
  33. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/assets/home-spf-radial.gif +0 -0
  34. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/assets/home-spf-radial.png +0 -0
  35. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/assets/logo.png +0 -0
  36. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/assets/materials-stock.json +0 -0
  37. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/assets/pymiesim-favicon.svg +0 -0
  38. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/assets/pymiesim-logo-dark.svg +0 -0
  39. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/assets/pymiesim-logo.svg +0 -0
  40. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/assets/simulation-sharing.js +0 -0
  41. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/callback_helpers.py +0 -0
  42. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/callbacks.py +0 -0
  43. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/components/__init__.py +0 -0
  44. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/components/cards.py +0 -0
  45. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/computation.py +0 -0
  46. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/defaults.py +0 -0
  47. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/experiment_service.py +0 -0
  48. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/interface.py +0 -0
  49. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/jobs.py +0 -0
  50. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/layout.py +0 -0
  51. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/material_catalog.py +0 -0
  52. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/models.py +0 -0
  53. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/pages/__init__.py +0 -0
  54. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/pages/citation.py +0 -0
  55. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/pages/documentation.py +0 -0
  56. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/pages/examples.py +0 -0
  57. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/pages/experiment/__init__.py +0 -0
  58. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/pages/experiment/page.py +0 -0
  59. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/pages/experiment/sections/__init__.py +0 -0
  60. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/pages/experiment/sections/configuration.py +0 -0
  61. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/pages/field_syntax.py +0 -0
  62. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/pages/home.py +0 -0
  63. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/pages/install_local.py +0 -0
  64. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/pages/population.py +0 -0
  65. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/pages/sellmeier.py +0 -0
  66. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/pages/settings.py +0 -0
  67. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/pages/single/__init__.py +0 -0
  68. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/pages/single/page.py +0 -0
  69. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/pages/single/sections/__init__.py +0 -0
  70. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/pages/single/sections/representations.py +0 -0
  71. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/pages/single/sections/setup.py +0 -0
  72. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/parsing.py +0 -0
  73. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/plotting.py +0 -0
  74. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/population_service.py +0 -0
  75. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/schemas.py +0 -0
  76. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/seo.py +0 -0
  77. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/services.py +0 -0
  78. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/sharing.py +0 -0
  79. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/single_service.py +0 -0
  80. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/usage_metrics.py +0 -0
  81. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX/gui/validation.py +0 -0
  82. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX.egg-info/SOURCES.txt +0 -0
  83. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX.egg-info/dependency_links.txt +0 -0
  84. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX.egg-info/entry_points.txt +0 -0
  85. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX.egg-info/scm_file_list.json +0 -0
  86. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/PyMieSimX.egg-info/top_level.txt +0 -0
  87. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/README.rst +0 -0
  88. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/conda.recipe/meta.yaml +0 -0
  89. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/docs/redirect.html +0 -0
  90. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/docs/source/_static/favicon.svg +0 -0
  91. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/docs/source/_static/logo.svg +0 -0
  92. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/docs/source/api.rst +0 -0
  93. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/docs/source/contributing.rst +0 -0
  94. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/docs/source/getting_started.rst +0 -0
  95. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/docs/source/gui.rst +0 -0
  96. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/docs/source/how_it_works.rst +0 -0
  97. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/docs/source/index.rst +0 -0
  98. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/docs/source/project.rst +0 -0
  99. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/docs/source/reference.rst +0 -0
  100. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/docs/source/sharing.rst +0 -0
  101. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/makefile +0 -0
  102. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/pytest.ini +0 -0
  103. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/setup.cfg +0 -0
  104. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/tests/browser/test_dashboard.py +0 -0
  105. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/tests/gui/cli.py +0 -0
  106. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/tests/gui/test_admin.py +0 -0
  107. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/tests/gui/test_api.py +0 -0
  108. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/tests/gui/test_dash_callbacks.py +0 -0
  109. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/tests/gui/test_examples.py +0 -0
  110. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/tests/gui/test_home.py +0 -0
  111. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/tests/gui/test_population.py +0 -0
  112. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/tests/gui/test_seo.py +0 -0
  113. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/tests/gui/test_services.py +0 -0
  114. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/tests/gui/test_sharing.py +0 -0
  115. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/tests/gui/test_usage_metrics.py +0 -0
  116. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/tools/generate_home_spf.py +0 -0
  117. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/tools/next_release_version.py +0 -0
  118. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/tools/release_tag.py +0 -0
  119. {pymiesimx-0.4.4 → pymiesimx-0.4.6}/tools/verify_conda_artifact.py +0 -0
@@ -17,7 +17,7 @@ jobs:
17
17
  runs-on: ubuntu-latest
18
18
  steps:
19
19
  - name: Set up Python and CI dependencies
20
- uses: MartinPdeS/MPSActions/actions/setup-python@a01969bc5af90666281f9d37acffdf6a4629763a
20
+ uses: MartinPdeS/MPSActions/actions/setup-python@v2
21
21
  with:
22
22
  python-version: "3.11"
23
23
  install-command: >-
@@ -0,0 +1,20 @@
1
+ name: Documentation
2
+ 'on':
3
+ push:
4
+ branches:
5
+ - '**'
6
+ pull_request:
7
+ branches:
8
+ - master
9
+ permissions:
10
+ contents: read
11
+ jobs:
12
+ documentation:
13
+ permissions:
14
+ contents: read
15
+ uses: MartinPdeS/MPSActions/.github/workflows/build_documentation.yml@v2
16
+ with:
17
+ python-version: '3.11'
18
+ package-name: PyMieSimX
19
+ apt-package: xvfb jq
20
+ debug: true
@@ -0,0 +1,34 @@
1
+ name: Publish release
2
+
3
+ on:
4
+ push:
5
+ tags: ["v*"]
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ jobs:
11
+ release:
12
+ permissions:
13
+ contents: write
14
+ pages: write
15
+ id-token: write
16
+ uses: MartinPdeS/MPSActions/.github/workflows/publish_release.yml@v2
17
+ with:
18
+ documentation: true
19
+ documentation_package_name: PyMieSimX
20
+ documentation_python_version: "3.11"
21
+ documentation_apt_package: xvfb jq
22
+ documentation_retain_versions: 5
23
+ debug: true
24
+ pypi_package_type: pure
25
+ pypi_python_version: "3.11"
26
+ pypi_test_command: 'python -c "import PyMieSimX"'
27
+ conda_python_versions: '["3.11", "3.12", "3.13", "3.14"]'
28
+ conda_os_list: '["ubuntu-latest", "macos-latest", "windows-latest"]'
29
+ conda_package_name: pymiesimx
30
+ conda_recipe_path: conda.recipe
31
+ conda_test_import: PyMieSimX
32
+ secrets:
33
+ PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
34
+ ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
@@ -17,7 +17,7 @@ jobs:
17
17
  python-version: ["3.11", "3.13"]
18
18
  steps:
19
19
  - name: Set up Python and CI dependencies
20
- uses: MartinPdeS/MPSActions/actions/setup-python@a01969bc5af90666281f9d37acffdf6a4629763a
20
+ uses: MartinPdeS/MPSActions/actions/setup-python@v2
21
21
  with:
22
22
  python-version: "${{ matrix.python-version }}"
23
23
  install-command: >-
@@ -35,7 +35,7 @@ jobs:
35
35
  runs-on: ubuntu-latest
36
36
  steps:
37
37
  - name: Set up Python and CI dependencies
38
- uses: MartinPdeS/MPSActions/actions/setup-python@a01969bc5af90666281f9d37acffdf6a4629763a
38
+ uses: MartinPdeS/MPSActions/actions/setup-python@v2
39
39
  with:
40
40
  python-version: "3.11"
41
41
  install-command: >-
@@ -18,7 +18,7 @@ jobs:
18
18
  python-version: ["3.11", "3.14"]
19
19
  steps:
20
20
  - name: Set up Python and CI dependencies
21
- uses: MartinPdeS/MPSActions/actions/setup-python@a01969bc5af90666281f9d37acffdf6a4629763a
21
+ uses: MartinPdeS/MPSActions/actions/setup-python@v2
22
22
  with:
23
23
  python-version: "${{ matrix.python-version }}"
24
24
  install-command: >-
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyMieSimX
3
- Version: 0.4.4
3
+ Version: 0.4.6
4
4
  Summary: Graphical Dash interface for PyMieSim.
5
5
  Author-email: Martin Poinsinet de Sivry-Houle <martin.poinsinet.de.sivry@gmail.com>
6
6
  License-Expression: MIT
@@ -32,9 +32,9 @@ Requires-Dist: build>=1.2; extra == "dev"
32
32
  Requires-Dist: mypy==1.15.0; extra == "dev"
33
33
  Requires-Dist: ruff==0.11.2; extra == "dev"
34
34
  Provides-Extra: docs
35
- Requires-Dist: MartinPdeS-docs<0.3,>=0.2.1; extra == "docs"
35
+ Requires-Dist: MartinPdeS-docs<0.3,>=0.2.5; extra == "docs"
36
36
  Provides-Extra: documentation
37
- Requires-Dist: MartinPdeS-docs<0.3,>=0.2.1; extra == "documentation"
37
+ Requires-Dist: MartinPdeS-docs<0.3,>=0.2.5; extra == "documentation"
38
38
  Dynamic: license-file
39
39
 
40
40
  PyMieSimX
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyMieSimX
3
- Version: 0.4.4
3
+ Version: 0.4.6
4
4
  Summary: Graphical Dash interface for PyMieSim.
5
5
  Author-email: Martin Poinsinet de Sivry-Houle <martin.poinsinet.de.sivry@gmail.com>
6
6
  License-Expression: MIT
@@ -32,9 +32,9 @@ Requires-Dist: build>=1.2; extra == "dev"
32
32
  Requires-Dist: mypy==1.15.0; extra == "dev"
33
33
  Requires-Dist: ruff==0.11.2; extra == "dev"
34
34
  Provides-Extra: docs
35
- Requires-Dist: MartinPdeS-docs<0.3,>=0.2.1; extra == "docs"
35
+ Requires-Dist: MartinPdeS-docs<0.3,>=0.2.5; extra == "docs"
36
36
  Provides-Extra: documentation
37
- Requires-Dist: MartinPdeS-docs<0.3,>=0.2.1; extra == "documentation"
37
+ Requires-Dist: MartinPdeS-docs<0.3,>=0.2.5; extra == "documentation"
38
38
  Dynamic: license-file
39
39
 
40
40
  PyMieSimX
@@ -17,10 +17,10 @@ mypy==1.15.0
17
17
  ruff==0.11.2
18
18
 
19
19
  [docs]
20
- MartinPdeS-docs<0.3,>=0.2.1
20
+ MartinPdeS-docs<0.3,>=0.2.5
21
21
 
22
22
  [documentation]
23
- MartinPdeS-docs<0.3,>=0.2.1
23
+ MartinPdeS-docs<0.3,>=0.2.5
24
24
 
25
25
  [testing]
26
26
  pytest>=8.0
@@ -1,7 +1,7 @@
1
1
  {
2
- "tag": "0.4.4",
2
+ "tag": "0.4.6",
3
3
  "distance": 0,
4
- "node": "gd743aadbd5ddcce6e4494736545d702e22ca6547",
4
+ "node": "g2fd9b7e6fc8aa3c2d16c243766a1f96a607a2937",
5
5
  "dirty": false,
6
6
  "branch": "HEAD",
7
7
  "node_date": "2026-10-21"
@@ -37,21 +37,11 @@ globals().update(
37
37
  repository=repository,
38
38
  logo="_static/logo.svg",
39
39
  favicon="_static/favicon.svg",
40
- extensions=[
41
- "sphinx.ext.autodoc",
42
- "sphinx.ext.autosummary",
43
- "sphinx.ext.intersphinx",
44
- "sphinx.ext.napoleon",
45
- "sphinx.ext.viewcode",
46
- "sphinx.ext.todo",
47
- "sphinx_design",
48
- ],
40
+ include_gallery=False,
41
+ autodoc_default_options={"members": True},
49
42
  )
50
43
  )
51
44
 
52
- autodoc_default_options.update({"members": True})
53
- html_context.update({"doc_path": "docs/source", "default_mode": "dark"})
54
-
55
45
  intersphinx_mapping = {
56
46
  "numpy": ("https://numpy.org/devdocs", None),
57
47
  "pandas": ("https://pandas.pydata.org/docs", None),
@@ -53,10 +53,10 @@ dev = [
53
53
  "ruff==0.11.2",
54
54
  ]
55
55
  docs = [
56
- "MartinPdeS-docs>=0.2.1,<0.3",
56
+ "MartinPdeS-docs>=0.2.5,<0.3",
57
57
  ]
58
58
  documentation = [
59
- "MartinPdeS-docs>=0.2.1,<0.3",
59
+ "MartinPdeS-docs>=0.2.5,<0.3",
60
60
  ]
61
61
 
62
62
  [tool.setuptools.packages.find]
@@ -1,116 +0,0 @@
1
- # Build and publish the versioned documentation site.
2
- name: Documentation
3
-
4
- on:
5
- push:
6
- branches: ["**"]
7
- tags: ["v*"]
8
- pull_request:
9
- branches: ["master"]
10
-
11
- concurrency:
12
- group: documentation-build-${{ github.repository }}
13
- cancel-in-progress: false
14
-
15
- permissions:
16
- contents: write
17
- pages: write
18
- id-token: write
19
-
20
- jobs:
21
- ManyLinux_x86_64:
22
- uses: MartinPdeS/MPSActions/.github/workflows/publish_documentation.yml@a01969bc5af90666281f9d37acffdf6a4629763a
23
- with:
24
- python-version: "3.11"
25
- package-name: "PyMieSimX"
26
- apt-package: xvfb jq
27
- deploy-pages: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')) }}
28
-
29
- prune_documentation_versions:
30
- needs: ManyLinux_x86_64
31
- if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')) }}
32
- runs-on: ubuntu-latest
33
- env:
34
- DOCUMENTATION_BRANCH: documentation_page
35
- VERSION_RETENTION_COUNT: 5
36
-
37
- steps:
38
- - name: Checkout documentation branch
39
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09
40
- with:
41
- fetch-depth: 0
42
- ref: ${{ env.DOCUMENTATION_BRANCH }}
43
-
44
- - name: Retain only the newest documentation versions
45
- run: |
46
- set -Eeuo pipefail
47
-
48
- mapfile -t versions < <(
49
- find docs \
50
- -mindepth 1 \
51
- -maxdepth 1 \
52
- -type d \
53
- -printf "%f\n" \
54
- | grep -v "^latest$" \
55
- | sort -V -r
56
- )
57
-
58
- for version in "${versions[@]:${VERSION_RETENTION_COUNT}}"; do
59
- git rm -r -- "docs/${version}"
60
- done
61
-
62
- - name: Install documentation landing page
63
- run: |
64
- set -Eeuo pipefail
65
- git show "${GITHUB_SHA}:docs/redirect.html" > index.html
66
- test -s docs/latest/index.html
67
-
68
- - name: Rebuild version switcher
69
- run: |
70
- set -Eeuo pipefail
71
-
72
- base_url="https://martinpdes.github.io/PyMieSimX/docs"
73
- mapfile -t versions < <(
74
- find docs \
75
- -mindepth 1 \
76
- -maxdepth 1 \
77
- -type d \
78
- -printf "%f\n" \
79
- | grep -v "^latest$" \
80
- | sort -V -r
81
- )
82
-
83
- jq -n \
84
- --arg base_url "${base_url}" \
85
- --argjson versions "$(printf '%s\n' "${versions[@]}" | jq -R . | jq -s .)" \
86
- '[
87
- {
88
- name: "latest",
89
- version: "latest",
90
- url: ($base_url + "/latest")
91
- }
92
- ] + [
93
- $versions[] | {
94
- name: .,
95
- version: .,
96
- url: ($base_url + "/" + .)
97
- }
98
- ]' > version_switcher.json
99
-
100
- jq . version_switcher.json
101
-
102
- - name: Commit pruned documentation
103
- run: |
104
- set -Eeuo pipefail
105
-
106
- git config user.name "github-actions[bot]"
107
- git config user.email "github-actions[bot]@users.noreply.github.com"
108
- git add index.html version_switcher.json
109
-
110
- if git diff --cached --quiet; then
111
- echo "Documentation landing page and retention policy are up to date."
112
- exit 0
113
- fi
114
-
115
- git commit -m "Update documentation landing page and retain ${VERSION_RETENTION_COUNT} versions [skip ci]"
116
- git push origin "HEAD:${DOCUMENTATION_BRANCH}"
@@ -1,30 +0,0 @@
1
- name: Publish release
2
-
3
- on:
4
- push:
5
- tags: ["v*"]
6
-
7
- permissions:
8
- contents: read
9
-
10
- jobs:
11
- pypi:
12
- name: Publish to PyPI
13
- uses: MartinPdeS/MPSActions/.github/workflows/publish_pure_package_to_PyPi.yml@a01969bc5af90666281f9d37acffdf6a4629763a
14
- with:
15
- python-version: "3.11"
16
- test-command: python -c "import PyMieSimX"
17
- secrets:
18
- PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
19
-
20
- conda:
21
- name: Publish Conda package
22
- uses: MartinPdeS/MPSActions/.github/workflows/publish_compiled_package_to_anaconda.yml@a01969bc5af90666281f9d37acffdf6a4629763a
23
- with:
24
- python_versions: '["3.11", "3.12", "3.13", "3.14"]'
25
- os_list: '["ubuntu-latest", "macos-latest", "windows-latest"]'
26
- package_name: pymiesimx
27
- recipe_path: conda.recipe
28
- test_import: PyMieSimX
29
- secrets:
30
- ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes