FiberFusing 1.5.0.2__tar.gz → 1.5.0.4__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.

Potentially problematic release.


This version of FiberFusing might be problematic. Click here for more details.

Files changed (138) hide show
  1. fiberfusing-1.5.0.4/.github/workflows/add_documentation_version.yml +73 -0
  2. fiberfusing-1.5.0.4/.github/workflows/deploy_documentation.yml +67 -0
  3. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/_version.py +2 -2
  4. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing.egg-info/PKG-INFO +1 -1
  5. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing.egg-info/SOURCES.txt +1 -0
  6. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/PKG-INFO +1 -1
  7. fiberfusing-1.5.0.2/.github/workflows/deploy_documentation.yml +0 -121
  8. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/.flake8 +0 -0
  9. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/.github/dependabot.yml +0 -0
  10. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/.github/workflows/deploy_PyPI.yml +0 -0
  11. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/.github/workflows/deploy_anaconda.yml +0 -0
  12. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/.github/workflows/deploy_coverage.yml +0 -0
  13. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/.gitignore +0 -0
  14. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/.readthedocs.yml +0 -0
  15. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/__init__.py +0 -0
  16. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/background.py +0 -0
  17. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/base_fused.py +0 -0
  18. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/buffer.py +0 -0
  19. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/components/__init__.py +0 -0
  20. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/components/base_class.py +0 -0
  21. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/components/linestring.py +0 -0
  22. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/components/point.py +0 -0
  23. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/components/polygon.py +0 -0
  24. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/components/utils.py +0 -0
  25. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/__init__.py +0 -0
  26. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/line/__init__.py +0 -0
  27. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/line/configuration_01x01.py +0 -0
  28. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/line/configuration_02x02.py +0 -0
  29. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/line/configuration_03x03.py +0 -0
  30. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/line/configuration_04x04.py +0 -0
  31. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/line/configuration_05x05.py +0 -0
  32. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/__init__.py +0 -0
  33. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_01x01.py +0 -0
  34. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_02x02.py +0 -0
  35. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_03x03.py +0 -0
  36. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_04x04.py +0 -0
  37. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_05x05.py +0 -0
  38. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_06x06.py +0 -0
  39. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_07x07.py +0 -0
  40. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_10x10.py +0 -0
  41. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_12x12.py +0 -0
  42. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_19x19.py +0 -0
  43. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/connection.py +0 -0
  44. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/connection_optimization.py +0 -0
  45. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/coordinate_system.py +0 -0
  46. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/directories.py +0 -0
  47. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/__init__.py +0 -0
  48. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/catalogue.py +0 -0
  49. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/1550BHP.yaml +0 -0
  50. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/DCF13.yaml +0 -0
  51. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/DCF1300S_20.yaml +0 -0
  52. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/DCF1300S_26.yaml +0 -0
  53. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/DCF1300S_33.yaml +0 -0
  54. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/DCF1300S_42.yaml +0 -0
  55. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/F2028M12.yaml +0 -0
  56. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/F2028M21.yaml +0 -0
  57. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/F2028M24.yaml +0 -0
  58. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/F2058G1.yaml +0 -0
  59. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/F2058L1.yaml +0 -0
  60. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/HI1060.yaml +0 -0
  61. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/HP630.yaml +0 -0
  62. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/SM1950.yaml +0 -0
  63. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/SMF28.yaml +0 -0
  64. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/fluorine_doped_1%_capillary.yaml +0 -0
  65. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/fluorine_doped_2%_capillary.yaml +0 -0
  66. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/test_fiber.yaml +0 -0
  67. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/test_multimode_fiber.yaml +0 -0
  68. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/generic_fiber.py +0 -0
  69. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/loader.py +0 -0
  70. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/structure_collection.py +0 -0
  71. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber_structure.py +0 -0
  72. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/geometry.py +0 -0
  73. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/helper.py +0 -0
  74. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/optical_structure.py +0 -0
  75. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/plottings.py +0 -0
  76. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/utils.py +0 -0
  77. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing.egg-info/dependency_links.txt +0 -0
  78. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing.egg-info/requires.txt +0 -0
  79. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing.egg-info/top_level.txt +0 -0
  80. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/LICENSE +0 -0
  81. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/README.rst +0 -0
  82. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/Makefile +0 -0
  83. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/README.rst +0 -0
  84. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/README.rst +0 -0
  85. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/fusion_degree.py +0 -0
  86. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/plot_line_3.py +0 -0
  87. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/plot_line_4.py +0 -0
  88. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/plot_line_5.py +0 -0
  89. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/plot_ring_12.py +0 -0
  90. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/plot_ring_19.py +0 -0
  91. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/plot_ring_2.py +0 -0
  92. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/plot_ring_3py +0 -0
  93. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/plot_ring_4.py +0 -0
  94. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/plot_ring_7.py +0 -0
  95. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/plot_single.py +0 -0
  96. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/radomize_core.py +0 -0
  97. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/structure_shift.py +0 -0
  98. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/README.rst +0 -0
  99. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/plot_line_3.py +0 -0
  100. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/plot_line_4.py +0 -0
  101. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/plot_line_5.py +0 -0
  102. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/plot_ring_10.py +0 -0
  103. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/plot_ring_2.py +0 -0
  104. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/plot_ring_3.py +0 -0
  105. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/plot_ring_4.py +0 -0
  106. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/plot_ring_5.py +0 -0
  107. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/plot_ring_7.py +0 -0
  108. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/plot_single.py +0 -0
  109. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/images/example_3x3.png +0 -0
  110. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/images/logo.png +0 -0
  111. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/make.bat +0 -0
  112. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/_static/default.css +0 -0
  113. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/_static/thumbnail.png +0 -0
  114. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/code/buffer.rst +0 -0
  115. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/code/components.rst +0 -0
  116. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/code/coordinate_system.rst +0 -0
  117. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/code/geometry.rst +0 -0
  118. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/code/overlay_structure.rst +0 -0
  119. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/code/utils.rst +0 -0
  120. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/code.rst +0 -0
  121. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/conf.py +0 -0
  122. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/gallery/index.rst +0 -0
  123. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/index.rst +0 -0
  124. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/references.rst +0 -0
  125. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/theory.rst +0 -0
  126. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/meta.yaml +0 -0
  127. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/notebook.ipynb +0 -0
  128. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/pyproject.toml +0 -0
  129. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/setup.cfg +0 -0
  130. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/tests/__init__.py +0 -0
  131. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/tests/fiber_loader.py +0 -0
  132. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/tests/test_boundaries.py +0 -0
  133. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/tests/test_cooordinate_system.py +0 -0
  134. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/tests/test_fiber.py +0 -0
  135. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/tests/test_fused_structure.py +0 -0
  136. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/tests/test_generic_fiber.py +0 -0
  137. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/tests/test_geometries.py +0 -0
  138. {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/tests/test_polygon.py +0 -0
@@ -0,0 +1,73 @@
1
+ name: Update Documentation Versions
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - documentation_page # Run on pushes to documentation_page branch
7
+ tags:
8
+ - '*' # Run on all new tags
9
+
10
+ jobs:
11
+ update_version_switcher:
12
+ name: Update version_switcher.json
13
+ runs-on: ubuntu-latest
14
+ permissions:
15
+ contents: write
16
+
17
+ steps:
18
+ - name: "Checkout documentation_page branch"
19
+ uses: actions/checkout@v4
20
+ with:
21
+ fetch-depth: 0
22
+ ref: documentation_page # Directly check out the documentation_page branch
23
+
24
+ - name: Install jq for JSON manipulation
25
+ run: |
26
+ sudo apt-get update
27
+ sudo apt-get install -y jq
28
+
29
+ - name: Scan for versions in docs folder and update version_switcher.json
30
+ run: |
31
+ # Define the path to version_switcher.json
32
+ json_file="version_switcher.json"
33
+ docs_path="docs"
34
+ base_url="https://martinpdes.github.io/FiberFusing"
35
+
36
+ # Initialize an empty array for versions in JSON format
37
+ versions_list=$(mktemp) # Temporary file to store the array
38
+
39
+ echo "[" > $versions_list # Start of the JSON array
40
+
41
+ # Scan each directory in docs and add it to the versions list
42
+ first_entry=true
43
+ for version_dir in ${docs_path}/*/; do
44
+ version=$(basename "$version_dir")
45
+ version_url="${base_url}/${docs_path}/${version}"
46
+
47
+ # Add a comma if it's not the first entry
48
+ if [ "$first_entry" = true ]; then
49
+ first_entry=false
50
+ else
51
+ echo "," >> $versions_list
52
+ fi
53
+
54
+ # Append each version as a JSON entry
55
+ jq -n \
56
+ --arg name "$version" \
57
+ --arg version "$version" \
58
+ --arg url "$version_url" \
59
+ '{name: $name, version: $version, url: $url}' >> $versions_list
60
+ done
61
+
62
+ echo "]" >> $versions_list # End of the JSON array
63
+
64
+ # Move the temporary array file to version_switcher.json
65
+ mv $versions_list $json_file
66
+
67
+ - name: Commit and push the updated version_switcher.json
68
+ run: |
69
+ git config user.name "github-actions[bot]"
70
+ git config user.email "github-actions[bot]@users.noreply.github.com"
71
+ git add version_switcher.json
72
+ git commit -m "Update version_switcher.json with all versions in docs folder"
73
+ git push origin documentation_page
@@ -0,0 +1,67 @@
1
+ # .github/workflows/deploy_documentation.yml
2
+ name: Documentation
3
+
4
+ on:
5
+ push:
6
+ branches: [ "master" ]
7
+ tags:
8
+ - '*'
9
+ pull_request:
10
+ branches: [ "master" ]
11
+
12
+ jobs:
13
+ documentation:
14
+ name: Run the documentation building tools
15
+ runs-on: ubuntu-latest
16
+ permissions:
17
+ pull-requests: write
18
+ contents: write
19
+
20
+ steps:
21
+ - name: "Set-up: Python 3.11"
22
+ uses: actions/setup-python@v5
23
+ id: cp311
24
+ with:
25
+ python-version: "3.11"
26
+
27
+ - name: "Install: Dependencies for headless server"
28
+ shell: bash
29
+ run: |
30
+ sudo apt-get update
31
+ sudo apt-get install xvfb
32
+
33
+ - name: "Checkout requirements and files for testing"
34
+ uses: actions/checkout@v4
35
+ with:
36
+ fetch-depth: 0
37
+ submodules: true
38
+
39
+ - name: Install everything, run the tests, produce the .coverage file
40
+ run: |
41
+ python -m pip install wheel build
42
+ python -m build --wheel
43
+ python -m pip install .[documentation]
44
+
45
+ - name: Install dependencies
46
+ run: |
47
+ pip install sphinx sphinx_rtd_theme myst_parser jq
48
+
49
+ - name: Get current tag
50
+ id: get_tag
51
+ run: |
52
+ git fetch --tags
53
+ echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
54
+
55
+ - name: Sphinx build
56
+ run: |
57
+ sphinx-build docs/source _build
58
+
59
+ - name: "Deploy to documentation_page: specific version"
60
+ uses: peaceiris/actions-gh-pages@v3
61
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
62
+ with:
63
+ publish_branch: documentation_page
64
+ github_token: ${{ secrets.GITHUB_TOKEN }}
65
+ publish_dir: _build/
66
+ destination_dir: "docs/${{ env.tag }}"
67
+ keep_files: true
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.5.0.2'
16
- __version_tuple__ = version_tuple = (1, 5, 0, 2)
15
+ __version__ = version = '1.5.0.4'
16
+ __version_tuple__ = version_tuple = (1, 5, 0, 4)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: FiberFusing
3
- Version: 1.5.0.2
3
+ Version: 1.5.0.4
4
4
  Summary: A package fiber fusing configuration simulating the transverse fusion of fiber optics.
5
5
  Author-email: Martin Poinsinet de Sivry-Houle <martin.poinsinet.de.sivry@gmail.com>
6
6
  License: MIT License
@@ -7,6 +7,7 @@ meta.yaml
7
7
  notebook.ipynb
8
8
  pyproject.toml
9
9
  .github/dependabot.yml
10
+ .github/workflows/add_documentation_version.yml
10
11
  .github/workflows/deploy_PyPI.yml
11
12
  .github/workflows/deploy_anaconda.yml
12
13
  .github/workflows/deploy_coverage.yml
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: FiberFusing
3
- Version: 1.5.0.2
3
+ Version: 1.5.0.4
4
4
  Summary: A package fiber fusing configuration simulating the transverse fusion of fiber optics.
5
5
  Author-email: Martin Poinsinet de Sivry-Houle <martin.poinsinet.de.sivry@gmail.com>
6
6
  License: MIT License
@@ -1,121 +0,0 @@
1
- # .github/workflows/deploy_documentation.yml
2
- name: Documentation
3
-
4
- on:
5
- push:
6
- branches: [ "master" ]
7
- tags:
8
- - '*'
9
- pull_request:
10
- branches: [ "master" ]
11
-
12
- jobs:
13
- documentation:
14
- name: Run the documentation building tools
15
- runs-on: ubuntu-latest
16
- permissions:
17
- pull-requests: write
18
- contents: write
19
-
20
- steps:
21
- - name: "Set-up: Python 3.11"
22
- uses: actions/setup-python@v5
23
- id: cp311
24
- with:
25
- python-version: "3.11"
26
-
27
- - name: "Install: Dependencies for headless server"
28
- shell: bash
29
- run: |
30
- sudo apt-get update
31
- sudo apt-get install xvfb
32
-
33
- - name: "Checkout requirements and files for testing"
34
- uses: actions/checkout@v4
35
- with:
36
- fetch-depth: 0
37
- submodules: true
38
-
39
- - name: Install everything, run the tests, produce the .coverage file
40
- run: |
41
- python -m pip install wheel build
42
- python -m build --wheel
43
- python -m pip install .[documentation]
44
-
45
- - name: Install dependencies
46
- run: |
47
- pip install sphinx sphinx_rtd_theme myst_parser jq
48
-
49
- - name: Get current tag
50
- id: get_tag
51
- run: |
52
- git fetch --tags
53
- echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
54
-
55
- - name: Sphinx build
56
- run: |
57
- sphinx-build docs/source _build
58
-
59
- - name: "Deploy to documentation_page: specific version"
60
- uses: peaceiris/actions-gh-pages@v3
61
- if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
62
- with:
63
- publish_branch: documentation_page
64
- github_token: ${{ secrets.GITHUB_TOKEN }}
65
- publish_dir: _build/
66
- destination_dir: "docs/${{ env.tag }}"
67
- keep_files: true
68
-
69
- update_version_switcher:
70
- name: Update version_switcher.json
71
- if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
72
- runs-on: ubuntu-latest
73
- needs: documentation # This job depends on the successful completion of the 'documentation' job
74
- permissions:
75
- contents: write
76
-
77
- steps:
78
- - name: "Checkout documentation_page branch"
79
- uses: actions/checkout@v4
80
- with:
81
- fetch-depth: 0
82
- ref: documentation_page # Directly check out the documentation_page branch
83
-
84
- - name: Install jq for JSON manipulation
85
- run: |
86
- sudo apt-get update
87
- sudo apt-get install -y jq
88
-
89
- - name: Get current tag from GITHUB_REF
90
- run: |
91
- # Extract the tag name from GITHUB_REF, which should be refs/tags/<tag>
92
- tag="${GITHUB_REF#refs/tags/}"
93
- echo "tag=$tag" >> $GITHUB_ENV
94
- echo "Current tag: $tag"
95
-
96
- - name: Update version_switcher.json with new tag
97
- env:
98
- TAG: ${{ env.tag }}
99
- run: |
100
- # Define the path to version_switcher.json and new version details
101
- json_file="version_switcher.json"
102
- current_tag="${TAG}"
103
- json_url="https://martinpdes.github.io/FiberFusing/docs/${current_tag}"
104
-
105
- # Create a new JSON entry for the current tag
106
- new_entry=$(jq -n \
107
- --arg name "$current_tag" \
108
- --arg version "$current_tag" \
109
- --arg url "$json_url" \
110
- '{name: $name, version: $version, url: $url}')
111
-
112
- # Append new entry to version_switcher.json
113
- jq ". + [$new_entry]" $json_file > temp.json && mv temp.json $json_file
114
-
115
- - name: Commit and push the updated version_switcher.json
116
- run: |
117
- git config user.name "github-actions[bot]"
118
- git config user.email "github-actions[bot]@users.noreply.github.com"
119
- git add version_switcher.json
120
- git commit -m "Update version_switcher.json with new tag ${{ env.tag }}"
121
- git push origin documentation_page
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes