Skip to content

ci: modernize packaging and release to trusted publishing#6

Open
jlee-kitware wants to merge 4 commits into
masterfrom
ci-modernize-trusted-publish
Open

ci: modernize packaging and release to trusted publishing#6
jlee-kitware wants to merge 4 commits into
masterfrom
ci-modernize-trusted-publish

Conversation

@jlee-kitware

Copy link
Copy Markdown
Collaborator

Replace setup.cfg/setup.py with a hatchling pyproject.toml, and switch the release workflow to python-semantic-release v10 + PyPI trusted publishing (OIDC), matching the trame-cookiecutter baseline. Keeps the flat layout and force-includes the built vue-components bundle via hatch artifacts.

Replace setup.cfg/setup.py with a hatchling pyproject.toml, and switch the
release workflow to python-semantic-release v10 + PyPI trusted publishing
(OIDC), matching the trame-cookiecutter baseline. Keeps the flat layout and
force-includes the built vue-components bundle via hatch artifacts.
Comment thread pyproject.toml Outdated
]

[tool.hatch.build.targets.wheel]
packages = ["trame_code", "trame"]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

could you move those 2 directories under ./src?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

flake8 4.0.1 crashes on Python 3.12 (importlib.metadata entry_points no longer
has .get); 7.3.0 runs clean against the existing .flake8 config.
@jourdain

Copy link
Copy Markdown
Collaborator

Normally we are not using flake anymore. Just ruff.

@jourdain

Copy link
Copy Markdown
Collaborator

https://github.com/Kitware/trame-cookiecutter/blob/master/%7B%7Bcookiecutter.package_name%7D%7D/.pre-commit-config.yaml

Adopt the src/ layout per review. Update hatch packages/artifacts paths and
the vite build outDir accordingly. Wheel still maps to top-level trame_code and
the trame namespace shim, with the built bundle force-included.
Replace flake8/black with the cookiecutter pre-commit set (ruff + ruff-format,
prettier, codespell, standard hooks) and add the ruff config to pyproject with
targeted per-file-ignores for the trame namespace shims, tests, and examples.
Remove .flake8. Includes the resulting ruff-format/prettier reformatting.
@jlee-kitware jlee-kitware requested a review from jourdain June 16, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants