gitronics 0.5.19__tar.gz → 0.5.21__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 (68) hide show
  1. {gitronics-0.5.19 → gitronics-0.5.21}/.github/workflows/docs.yml +18 -6
  2. {gitronics-0.5.19 → gitronics-0.5.21}/.github/workflows/release.yml +19 -1
  3. {gitronics-0.5.19 → gitronics-0.5.21}/Cargo.lock +1 -1
  4. {gitronics-0.5.19 → gitronics-0.5.21}/Cargo.toml +1 -1
  5. {gitronics-0.5.19 → gitronics-0.5.21}/PKG-INFO +1 -1
  6. {gitronics-0.5.19 → gitronics-0.5.21}/docs/index.md +1 -1
  7. {gitronics-0.5.19 → gitronics-0.5.21}/.github/workflows/ci.yml +0 -0
  8. {gitronics-0.5.19 → gitronics-0.5.21}/.gitignore +0 -0
  9. {gitronics-0.5.19 → gitronics-0.5.21}/.vscode/settings.json +0 -0
  10. {gitronics-0.5.19 → gitronics-0.5.21}/LICENSE +0 -0
  11. {gitronics-0.5.19 → gitronics-0.5.21}/README.md +0 -0
  12. {gitronics-0.5.19 → gitronics-0.5.21}/docs/assets/logo.png +0 -0
  13. {gitronics-0.5.19 → gitronics-0.5.21}/docs/best_practices.md +0 -0
  14. {gitronics-0.5.19 → gitronics-0.5.21}/docs/examples.md +0 -0
  15. {gitronics-0.5.19 → gitronics-0.5.21}/docs/getting_started/assessments.md +0 -0
  16. {gitronics-0.5.19 → gitronics-0.5.21}/docs/getting_started/building_a_model.md +0 -0
  17. {gitronics-0.5.19 → gitronics-0.5.21}/docs/getting_started/card_id_numbers.md +0 -0
  18. {gitronics-0.5.19 → gitronics-0.5.21}/docs/getting_started/concepts.md +0 -0
  19. {gitronics-0.5.19 → gitronics-0.5.21}/docs/getting_started/configuration_file.md +0 -0
  20. {gitronics-0.5.19 → gitronics-0.5.21}/docs/getting_started/file_types.md +0 -0
  21. {gitronics-0.5.19 → gitronics-0.5.21}/docs/getting_started/migrating.md +0 -0
  22. {gitronics-0.5.19 → gitronics-0.5.21}/docs/getting_started/new_project.md +0 -0
  23. {gitronics-0.5.19 → gitronics-0.5.21}/docs/getting_started/project_structure.md +0 -0
  24. {gitronics-0.5.19 → gitronics-0.5.21}/docs/getting_started.md +0 -0
  25. {gitronics-0.5.19 → gitronics-0.5.21}/docs/hooks/version_from_git.py +0 -0
  26. {gitronics-0.5.19 → gitronics-0.5.21}/docs/installation.md +0 -0
  27. {gitronics-0.5.19 → gitronics-0.5.21}/docs/requirements.txt +0 -0
  28. {gitronics-0.5.19 → gitronics-0.5.21}/docs/usage/build.md +0 -0
  29. {gitronics-0.5.19 → gitronics-0.5.21}/docs/usage/migrate.md +0 -0
  30. {gitronics-0.5.19 → gitronics-0.5.21}/example_project/assessment_specific/filler_model_3.mcnp +0 -0
  31. {gitronics-0.5.19 → gitronics-0.5.21}/example_project/assessment_specific/filler_model_3.metadata +0 -0
  32. {gitronics-0.5.19 → gitronics-0.5.21}/example_project/assessment_specific/small_override.yaml +0 -0
  33. {gitronics-0.5.19 → gitronics-0.5.21}/example_project/configurations/valid_configuration.yaml +0 -0
  34. {gitronics-0.5.19 → gitronics-0.5.21}/example_project/output/.gitignore +0 -0
  35. {gitronics-0.5.19 → gitronics-0.5.21}/example_project/reference_model/data_cards/fine_mesh.tally +0 -0
  36. {gitronics-0.5.19 → gitronics-0.5.21}/example_project/reference_model/data_cards/materials.mat +0 -0
  37. {gitronics-0.5.19 → gitronics-0.5.21}/example_project/reference_model/data_cards/my_transform.transform +0 -0
  38. {gitronics-0.5.19 → gitronics-0.5.21}/example_project/reference_model/data_cards/volumetric_source.source +0 -0
  39. {gitronics-0.5.19 → gitronics-0.5.21}/example_project/reference_model/envelope_structure.mcnp +0 -0
  40. {gitronics-0.5.19 → gitronics-0.5.21}/example_project/reference_model/envelope_structure.metadata +0 -0
  41. {gitronics-0.5.19 → gitronics-0.5.21}/example_project/reference_model/filler_models/filler_model_1.mcnp +0 -0
  42. {gitronics-0.5.19 → gitronics-0.5.21}/example_project/reference_model/filler_models/filler_model_1.metadata +0 -0
  43. {gitronics-0.5.19 → gitronics-0.5.21}/example_project/reference_model/filler_models/filler_model_2.mcnp +0 -0
  44. {gitronics-0.5.19 → gitronics-0.5.21}/example_project/reference_model/filler_models/filler_model_2.metadata +0 -0
  45. {gitronics-0.5.19 → gitronics-0.5.21}/mkdocs.yml +0 -0
  46. {gitronics-0.5.19 → gitronics-0.5.21}/pyproject.toml +0 -0
  47. {gitronics-0.5.19 → gitronics-0.5.21}/python/gitronics/__init__.py +0 -0
  48. {gitronics-0.5.19 → gitronics-0.5.21}/python/gitronics/__main__.py +0 -0
  49. {gitronics-0.5.19 → gitronics-0.5.21}/python/gitronics/gitronics.pyi +0 -0
  50. {gitronics-0.5.19 → gitronics-0.5.21}/python/tests/test_build_model.py +0 -0
  51. {gitronics-0.5.19 → gitronics-0.5.21}/python/tests/test_cli_works.py +0 -0
  52. {gitronics-0.5.19 → gitronics-0.5.21}/resources/simple_model.mcnp +0 -0
  53. {gitronics-0.5.19 → gitronics-0.5.21}/src/build_model.rs +0 -0
  54. {gitronics-0.5.19 → gitronics-0.5.21}/src/build_report.rs +0 -0
  55. {gitronics-0.5.19 → gitronics-0.5.21}/src/cli.rs +0 -0
  56. {gitronics-0.5.19 → gitronics-0.5.21}/src/lib.rs +0 -0
  57. {gitronics-0.5.19 → gitronics-0.5.21}/src/main.rs +0 -0
  58. {gitronics-0.5.19 → gitronics-0.5.21}/src/migrate_model.rs +0 -0
  59. {gitronics-0.5.19 → gitronics-0.5.21}/src/model_config.rs +0 -0
  60. {gitronics-0.5.19 → gitronics-0.5.21}/src/project_manager/load_metadata.rs +0 -0
  61. {gitronics-0.5.19 → gitronics-0.5.21}/src/project_manager/load_model_config.rs +0 -0
  62. {gitronics-0.5.19 → gitronics-0.5.21}/src/project_manager/load_project_files.rs +0 -0
  63. {gitronics-0.5.19 → gitronics-0.5.21}/src/project_manager.rs +0 -0
  64. {gitronics-0.5.19 → gitronics-0.5.21}/src/python.rs +0 -0
  65. {gitronics-0.5.19 → gitronics-0.5.21}/src/report.css +0 -0
  66. {gitronics-0.5.19 → gitronics-0.5.21}/src/types.rs +0 -0
  67. {gitronics-0.5.19 → gitronics-0.5.21}/src/utils.rs +0 -0
  68. {gitronics-0.5.19 → gitronics-0.5.21}/tests/test_example_project.rs +0 -0
@@ -3,7 +3,8 @@ name: Docs
3
3
  on:
4
4
  push:
5
5
  tags:
6
- - "v[0-9]+.[0-9]+.[0-9]*"
6
+ # GitHub Actions uses glob patterns here (not regex).
7
+ - "v*.*.*"
7
8
  # Allow manual triggering from the Actions tab
8
9
  workflow_dispatch:
9
10
 
@@ -32,16 +33,27 @@ jobs:
32
33
  - name: Extract version from tag
33
34
  id: version
34
35
  run: |
35
- # Strip the leading "v" so MkDocs sees "1.2.3", not "v1.2.3"
36
- VERSION="${GITHUB_REF_NAME#v}"
36
+ if [[ "${GITHUB_REF_TYPE}" == "tag" ]]; then
37
+ # Strip the leading "v" so MkDocs sees "1.2.3", not "v1.2.3"
38
+ VERSION="${GITHUB_REF_NAME#v}"
39
+ else
40
+ # For manual runs, resolve the most recent semantic tag in the repo.
41
+ VERSION="$(git tag --list 'v*.*.*' --sort=-v:refname | head -n1 | sed 's/^v//')"
42
+ fi
43
+
44
+ if [[ -z "$VERSION" ]]; then
45
+ echo "No semantic version tag found (expected pattern: v*.*.*)." >&2
46
+ exit 1
47
+ fi
48
+
37
49
  echo "version=$VERSION" >> "$GITHUB_OUTPUT"
38
50
 
39
51
  - name: Build & deploy to GitHub Pages
40
52
  run: |
41
53
  git config user.name "github-actions[bot]"
42
54
  git config user.email "github-actions[bot]@users.noreply.github.com"
43
- # Deploy this version and update the "latest" alias
55
+ # Deploy this version and update the "latest" alias
44
56
  pip install mike
45
57
  mike deploy --push --update-aliases "${{ steps.version.outputs.version }}" latest
46
- # Set the site root to the numeric release version
47
- mike set-default --push "${{ steps.version.outputs.version }}"
58
+ # Keep docs root pinned to latest so it always follows new releases.
59
+ mike set-default --push latest
@@ -3,7 +3,8 @@ name: Release
3
3
  on:
4
4
  push:
5
5
  tags:
6
- - "v[0-9]+.[0-9]+.[0-9]*"
6
+ # GitHub Actions tag filters use glob patterns (not regex).
7
+ - "v*.*.*"
7
8
 
8
9
  env:
9
10
  CARGO_TERM_COLOR: always
@@ -135,3 +136,20 @@ jobs:
135
136
 
136
137
  - name: Publish to PyPI
137
138
  uses: pypa/gh-action-pypi-publish@release/v1
139
+
140
+ # ──────────────────────────────────────────────
141
+ # 5. Create/update GitHub Release for the tag
142
+ # ──────────────────────────────────────────────
143
+ github-release:
144
+ name: Publish GitHub Release
145
+ runs-on: ubuntu-latest
146
+ needs: [publish-pypi]
147
+ permissions:
148
+ contents: write
149
+ steps:
150
+ - name: Create or update GitHub Release
151
+ uses: softprops/action-gh-release@v2
152
+ with:
153
+ tag_name: ${{ github.ref_name }}
154
+ name: ${{ github.ref_name }}
155
+ generate_release_notes: true
@@ -390,7 +390,7 @@ dependencies = [
390
390
 
391
391
  [[package]]
392
392
  name = "gitronics"
393
- version = "0.5.19"
393
+ version = "0.5.21"
394
394
  dependencies = [
395
395
  "chrono",
396
396
  "clap",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "gitronics"
3
- version = "0.5.19"
3
+ version = "0.5.21"
4
4
  edition = "2024"
5
5
  description = "Build MCNP neutronics models from modular components"
6
6
  license = "EUPL-1.2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitronics
3
- Version: 0.5.19
3
+ Version: 0.5.21
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -36,7 +36,7 @@ output/
36
36
  The `build` command reads a configuration file, loads all referenced components, inserts `FILL` cards into the envelope cells, and writes a single self-contained MCNP input file.
37
37
  It is highly recommended to use [Git](https://git-scm.com/) to track changes to your project files.
38
38
 
39
- If you have never used Gitronics before, please take a few minutes to read the whole [Getting Started](getting_started.md) guide to understand the program.
39
+ If you have never used Gitronics before, please take a few minutes to read the whole [Getting Started](getting_started.md) guide to understand the methodology.
40
40
 
41
41
  ---
42
42
 
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