Skip to content

Conversation

tkoyama010
Copy link
Member

@tkoyama010 tkoyama010 commented Jul 15, 2025

Summary

  • Add PEP 723 compliant metadata blocks to all Python example scripts
  • Specify required dependencies (pyvista, scikit-gmsh) and Python version (>=3.8)
  • Enable tools to automatically resolve dependencies when running scripts standalone

Test plan

  • Verify all example scripts contain valid PEP 723 metadata blocks
  • Test that dependency resolution works with compatible tools

🤖 Generated with Claude Code

tkoyama010 and others added 2 commits July 16, 2025 07:06
Add PEP 723 compliant metadata blocks to all Python example scripts
to specify dependencies and Python version requirements. This enables
tools to automatically resolve dependencies when running these scripts
as standalone files.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@tkoyama010 tkoyama010 requested a review from Copilot July 15, 2025 22:08
@tkoyama010 tkoyama010 enabled auto-merge (squash) July 15, 2025 22:08
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds PEP 723 inline script metadata to all Python example scripts, specifying Python version and dependencies to enable automatic tool-based resolution.

  • Inserts a # /// script metadata block at the top of each example
  • Sets requires-python = ">=3.8" in every script
  • Lists the necessary dependencies (scikit-gmsh and, where needed, pyvista)

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
examples/quad.py Added PEP 723 metadata block with scikit-gmsh dependency
examples/polygon_with_hole.py Added PEP 723 metadata block with scikit-gmsh dependency
examples/icosahedron.py Added PEP 723 metadata block with pyvista and scikit-gmsh
examples/cylinder.py Added PEP 723 metadata block with pyvista and scikit-gmsh
examples/capsule.py Added PEP 723 metadata block with pyvista and scikit-gmsh
examples/better_cell_size.py Added PEP 723 metadata block with pyvista and scikit-gmsh

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jul 15, 2025
@tkoyama010 tkoyama010 marked this pull request as draft July 17, 2025 03:30
auto-merge was automatically disabled July 17, 2025 03:30

Pull request was converted to draft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant