-
Notifications
You must be signed in to change notification settings - Fork 4
build(packaging): Add pyproject.toml for dapper binary Python wheel packaging #232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,39 @@ | ||||||
| [build-system] | ||||||
| requires = ["maturin>=1.5,<2"] | ||||||
| build-backend = "maturin" | ||||||
|
|
||||||
| [project] | ||||||
| name = "dapper-bin" | ||||||
| description = "pip installable dapper binaries" | ||||||
| readme = "README.md" | ||||||
| authors = [{ name = "Ryan Mast", email = "mast9@llnl.gov" }] | ||||||
| license = "MIT" | ||||||
| license-files = ["LICENSE", "NOTICE"] | ||||||
| requires-python = ">=3.8" | ||||||
| keywords = ["source-code-analysis", "c", "c++", "python", "bash", "tree-sitter", "rust"] | ||||||
| classifiers = [ | ||||||
| "Programming Language :: Python :: 3", | ||||||
| "Operating System :: MacOS", | ||||||
|
||||||
| "Operating System :: MacOS", | |
| "Operating System :: MacOS :: MacOS X", |
Copilot
AI
Dec 4, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The classifiers list is missing a license classifier. Consider adding "License :: OSI Approved :: MIT License" to be consistent with the license field and provide better discoverability on PyPI.
Copilot
AI
Dec 4, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The module-name configuration may not be necessary or appropriate for bindings = "bin". In bin mode, maturin typically derives the binary name from the Cargo.toml package name. If you need to control the binary/script name, verify this is the correct approach for maturin's bin bindings. The mismatch between project.name = "dapper-bin" and module-name = "dapper" may also cause confusion.
| module-name = "dapper" |
Copilot
AI
Dec 4, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The comment uses double hashes (##) which is inconsistent with the single hash (#) used for other comments in this file (lines 32, 34, 36). Consider using a single # for consistency.
| ## No [project.scripts] needed; maturin will generate the console entrypoint in bin mode | |
| # No [project.scripts] needed; maturin will generate the console entrypoint in bin mode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The description should capitalize "pip" to "Pip" or use it with a hyphen ("pip-installable") for better grammar and consistency with common Python packaging conventions.