Prepare package for PyPI release#2
Merged
Merged
Conversation
Packaging - pyproject.toml: switch to find-based package discovery (tedbench*, minesm*) so all subpackages are correctly installed; pin setuptools>=64 / setuptools-scm>=8; populate dependencies from requirements.txt; move fair-esm to [baselines] optional extra; add py.typed to package-data; richer classifiers (Development Status, Intended Audience, License, OS, Python 3.9–3.11, two Topic entries) - tedbench/py.typed: PEP 561 marker for type checkers Top-level API - tedbench/__init__.py: __version__ via importlib.metadata, list_models() returning metadata for all 12 TEDBench/* HF models, load_model(name) resolving short names via registry or passing through full HF repo IDs / local paths Documentation - README: pip install TEDBench as recommended option, baselines extra, tedbench.load_model / tedbench.list_models usage example - CITATION.cff: machine-readable citation for GitHub's Cite button - CHANGELOG.md: initial v0.1.0 entry CI / CD - .github/workflows/ci.yml: import-check CI on push/PR to main; uses --no-deps + find_spec to verify package structure without pulling in torch or other heavy runtime deps - .github/workflows/publish.yml: publish to PyPI on v* tag push via OIDC trusted publishing (already committed on main) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
find-based package discovery so all subpackages (tedbench.*,minesm.*) are correctly installed; pinnedsetuptools>=64/setuptools-scm>=8; populateddependenciesfromrequirements.txt; movedfair-esmto a[baselines]optional extra; addedpy.typed(PEP 561) and richer PyPI classifierstedbench/__init__.pywithtedbench.load_model(name),tedbench.list_models(), and__version__; model registry covers all 12TEDBench/*HF checkpoints (S/B/B+seq/L × pretrained/fine-tuned/from-scratch)CITATION.cff: machine-readable citation for GitHub's "Cite this repository" buttonCHANGELOG.md: initial v0.1.0 entry.github/workflows/ci.yml): runs on every push/PR tomain; installs the package with--no-depsand usesimportlib.util.find_specto verify all subpackages are discoverable without pulling in torch or other heavy depspip install TEDBenchas recommended option,[baselines]extra documented,tedbench.load_model/tedbench.list_modelsusage exampleTo publish after merging
TEDBench, ownerBorgwardtLab, repoTEDBench, workflowpublish.yml, environmentpypipypi🤖 Generated with Claude Code