release: package + publish harel-python to PyPI#17
Merged
Merged
Conversation
Prepare for distribution: rename the PyPI project to 'harel-python' (the name 'harel' is taken by an unrelated project; the import name stays 'harel'), add classifiers/keywords/urls, and ship a py.typed marker. Move cel-python from dev to runtime dependencies — it is imported at load time, so it was a real install bug (a clean 'pip install' could not 'import harel'). Add a tag-triggered release workflow that builds and publishes via PyPI Trusted Publishing (OIDC). Verified: 'python -m build' produces an sdist + wheel that 'twine check' passes and that installs into a clean venv and imports/runs (engine, schema, console script, streaming) with cel-python pulled in automatically. Closes #14.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #14.
Packaging
harel-python(the bareharelis taken on PyPI by an unrelated 'durable distributed statecharts' project). Import name staysharel→pip install harel-pythonthenimport harel.cel-pythonwasdev-only but is imported at module load (cel.py), so a clean install could notimport harel. Moved to runtimedependencies.py.typedmarker.Release automation
.github/workflows/release.yml: on av*tag, build sdist+wheel,twine check, and publish via PyPI Trusted Publishing (OIDC) — no stored token.Verified
python -m build→ sdist + wheel;twine checkPASSED; installed into a clean venv and confirmed import + engine run + bundled schema + console script + streaming, withcel-pythonresolved automatically. ruff + mypy clean; 137 tests green.