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.
- fiberfusing-1.5.0.4/.github/workflows/add_documentation_version.yml +73 -0
- fiberfusing-1.5.0.4/.github/workflows/deploy_documentation.yml +67 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/_version.py +2 -2
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing.egg-info/PKG-INFO +1 -1
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing.egg-info/SOURCES.txt +1 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/PKG-INFO +1 -1
- fiberfusing-1.5.0.2/.github/workflows/deploy_documentation.yml +0 -121
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/.flake8 +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/.github/dependabot.yml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/.github/workflows/deploy_PyPI.yml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/.github/workflows/deploy_anaconda.yml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/.github/workflows/deploy_coverage.yml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/.gitignore +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/.readthedocs.yml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/__init__.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/background.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/base_fused.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/buffer.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/components/__init__.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/components/base_class.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/components/linestring.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/components/point.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/components/polygon.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/components/utils.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/__init__.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/line/__init__.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/line/configuration_01x01.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/line/configuration_02x02.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/line/configuration_03x03.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/line/configuration_04x04.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/line/configuration_05x05.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/__init__.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_01x01.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_02x02.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_03x03.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_04x04.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_05x05.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_06x06.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_07x07.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_10x10.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_12x12.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_19x19.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/connection.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/connection_optimization.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/coordinate_system.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/directories.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/__init__.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/catalogue.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/1550BHP.yaml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/DCF13.yaml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/DCF1300S_20.yaml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/DCF1300S_26.yaml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/DCF1300S_33.yaml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/DCF1300S_42.yaml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/F2028M12.yaml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/F2028M21.yaml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/F2028M24.yaml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/F2058G1.yaml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/F2058L1.yaml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/HI1060.yaml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/HP630.yaml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/SM1950.yaml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/SMF28.yaml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/fluorine_doped_1%_capillary.yaml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/fluorine_doped_2%_capillary.yaml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/test_fiber.yaml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/test_multimode_fiber.yaml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/generic_fiber.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/loader.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/structure_collection.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber_structure.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/geometry.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/helper.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/optical_structure.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/plottings.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/utils.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing.egg-info/dependency_links.txt +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing.egg-info/requires.txt +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing.egg-info/top_level.txt +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/LICENSE +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/README.rst +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/Makefile +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/README.rst +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/README.rst +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/fusion_degree.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/plot_line_3.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/plot_line_4.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/plot_line_5.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/plot_ring_12.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/plot_ring_19.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/plot_ring_2.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/plot_ring_3py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/plot_ring_4.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/plot_ring_7.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/plot_single.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/radomize_core.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/clad/structure_shift.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/README.rst +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/plot_line_3.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/plot_line_4.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/plot_line_5.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/plot_ring_10.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/plot_ring_2.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/plot_ring_3.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/plot_ring_4.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/plot_ring_5.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/plot_ring_7.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/examples/geometry/plot_single.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/images/example_3x3.png +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/images/logo.png +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/make.bat +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/_static/default.css +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/_static/thumbnail.png +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/code/buffer.rst +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/code/components.rst +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/code/coordinate_system.rst +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/code/geometry.rst +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/code/overlay_structure.rst +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/code/utils.rst +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/code.rst +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/conf.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/gallery/index.rst +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/index.rst +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/references.rst +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/docs/source/theory.rst +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/meta.yaml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/notebook.ipynb +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/pyproject.toml +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/setup.cfg +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/tests/__init__.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/tests/fiber_loader.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/tests/test_boundaries.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/tests/test_cooordinate_system.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/tests/test_fiber.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/tests/test_fused_structure.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/tests/test_generic_fiber.py +0 -0
- {fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/tests/test_geometries.py +0 -0
- {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.
|
|
16
|
-
__version_tuple__ = version_tuple = (1, 5, 0,
|
|
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.
|
|
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,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: FiberFusing
|
|
3
|
-
Version: 1.5.0.
|
|
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
|
|
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
|
{fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/line/configuration_01x01.py
RENAMED
|
File without changes
|
{fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/line/configuration_02x02.py
RENAMED
|
File without changes
|
{fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/line/configuration_03x03.py
RENAMED
|
File without changes
|
{fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/line/configuration_04x04.py
RENAMED
|
File without changes
|
{fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/line/configuration_05x05.py
RENAMED
|
File without changes
|
|
File without changes
|
{fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_01x01.py
RENAMED
|
File without changes
|
{fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_02x02.py
RENAMED
|
File without changes
|
{fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_03x03.py
RENAMED
|
File without changes
|
{fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_04x04.py
RENAMED
|
File without changes
|
{fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_05x05.py
RENAMED
|
File without changes
|
{fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_06x06.py
RENAMED
|
File without changes
|
{fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_07x07.py
RENAMED
|
File without changes
|
{fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_10x10.py
RENAMED
|
File without changes
|
{fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_12x12.py
RENAMED
|
File without changes
|
{fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/configuration/ring/configuration_19x19.py
RENAMED
|
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
|
|
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
|
{fiberfusing-1.5.0.2 → fiberfusing-1.5.0.4}/FiberFusing/fiber/fiber_files/test_multimode_fiber.yaml
RENAMED
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|