-
Notifications
You must be signed in to change notification settings - Fork 18
feat: Migrate project metadata to pyproject.toml #201
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
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 |
|---|---|---|
| @@ -1,9 +1,12 @@ | ||
| prune ** | ||
| graft src | ||
| graft tests | ||
|
|
||
| include setup.py | ||
| include pyproject.toml | ||
| include LICENSE | ||
| include README.md | ||
| include src/skhep_testdata/remote_datasets.yml | ||
| include src/skhep_testdata/py.typed | ||
| include pyproject.toml | ||
|
|
||
| recursive-include src/skhep_testdata/data * | ||
| include MANIFEST.in | ||
| include CITATION.cff | ||
|
|
||
| exclude codecov.yml | ||
| global-exclude __pycache__ *.py[cod] |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,9 +5,61 @@ requires = [ | |||||||||
| ] | ||||||||||
| build-backend = "setuptools.build_meta" | ||||||||||
|
|
||||||||||
| [project] | ||||||||||
| name = "scikit-hep-testdata" | ||||||||||
| dynamic = ["version"] | ||||||||||
| description = "Example HEP files for testing and demonstrating" | ||||||||||
| readme = "README.md" | ||||||||||
| license = "BSD-3-Clause" | ||||||||||
| requires-python = ">=3.10" | ||||||||||
| authors = [ | ||||||||||
| { name = "Ben Krikler", email = "[email protected]" }, | ||||||||||
| { name = "Henry Schreiner", email = "[email protected]" } | ||||||||||
| ] | ||||||||||
| maintainers = [ {name = "The Scikit-HEP admins", email = "[email protected]"} ] | ||||||||||
matthewfeickert marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||
| keywords = [ | ||||||||||
| "HEP", | ||||||||||
| "ROOT", | ||||||||||
| "testing", | ||||||||||
| ] | ||||||||||
| classifiers = [ | ||||||||||
| "Development Status :: 3 - Alpha", | ||||||||||
| "Intended Audience :: Developers", | ||||||||||
| "Natural Language :: English", | ||||||||||
| "Programming Language :: Python :: 3", | ||||||||||
| "Programming Language :: Python :: 3 :: Only", | ||||||||||
| "Programming Language :: Python :: Implementation :: CPython", | ||||||||||
| "Programming Language :: Python :: 3.10", | ||||||||||
| "Programming Language :: Python :: 3.11", | ||||||||||
| "Programming Language :: Python :: 3.12", | ||||||||||
| "Programming Language :: Python :: 3.13", | ||||||||||
| "Programming Language :: Python :: 3.14", | ||||||||||
matthewfeickert marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||
| "Typing :: Typed", | ||||||||||
| ] | ||||||||||
| dependencies = [ | ||||||||||
| "pyyaml", | ||||||||||
| "requests", | ||||||||||
| ] | ||||||||||
|
|
||||||||||
| [project.optional-dependencies] | ||||||||||
| test = [ | ||||||||||
| "pytest-cov", | ||||||||||
| "pytest>=6.0.0", | ||||||||||
| ] | ||||||||||
|
|
||||||||||
| [project.scripts] | ||||||||||
| scikit-hep-testdata = "skhep_testdata.__main__:main" | ||||||||||
| skhep-testdata = "skhep_testdata.__main__:main" | ||||||||||
|
|
||||||||||
| [project.urls] | ||||||||||
| Homepage = "https://github.com/scikit-hep/scikit-hep-testdata" | ||||||||||
|
|
||||||||||
| [tool.setuptools_scm] | ||||||||||
| write_to = "src/skhep_testdata/version.py" | ||||||||||
|
|
||||||||||
|
||||||||||
| [tool.setuptools.packages.find] | |
| where = ["src"] |
This file was deleted.
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.
As we're migrating the project files, I've made the sdist definition more explicit.
This now produces
compared to
which distributes files it doesn't need to.
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.
Oh yeah, that's much better