-
Notifications
You must be signed in to change notification settings - Fork 20
Update packaging to use 'pyproject.toml' #234
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
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| [build-system] | ||
| requires = ["setuptools>=64.0.0", "wheel"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "ndlar_flow" | ||
| description = "An h5flow-based analysis framework for DUNE ND-LAr simulation and data" | ||
| readme = { file = "README.rst", content-type = "text/x-rst" } | ||
| authors = [ | ||
| { name = "Peter Madigan" } | ||
| ] | ||
| maintainers = [ | ||
| { name = "Yifan Chen" }, | ||
| { name = "Matt Kramer" }, | ||
| { name = "Noe Roy" }, | ||
| { name = "Kevin Wood" }, | ||
| ] | ||
| requires-python = ">=3.7" | ||
| license = "Apache-2.0" | ||
| classifiers = [ | ||
| "Development Status :: 4 - Beta", | ||
| "Intended Audience :: Developers", | ||
| "Operating System :: OS Independent", | ||
| "Programming Language :: Python", | ||
| "Topic :: Scientific/Engineering :: Physics" | ||
| ] | ||
| dynamic = ["version"] | ||
| dependencies = [ | ||
| "h5py>=2.10", | ||
| "pytest", | ||
| "scipy", | ||
| "scikit-image", | ||
| "scikit-learn>=1.3.0", | ||
| "dbscan1d==0.2.3", | ||
| "h5flow @ git+https://github.com/DUNE/h5flow.git#egg=h5flow", | ||
| "pylandau @ git+https://github.com/SiLab-Bonn/pylandau.git", | ||
| "adc64format @ git+https://github.com/larpix/adc64format.git@v0.1.5#egg=adc64format", | ||
| ] | ||
|
|
||
| [tool.setuptools.dynamic] | ||
| version = { file = "VERSION" } | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| where = ["src"] | ||
|
|
||
| [tool.ruff] | ||
| line-length = 100 | ||
| indent-width = 4 | ||
|
|
||
| [tool.ruff.format] | ||
| quote-style = "single" | ||
| indent-style = "space" | ||
| line-ending = "auto" | ||
|
|
||
| [tool.ruff.lint] | ||
| select = [ | ||
| "E", # pycodestyle | ||
| "F", # Pyflakes | ||
| "UP", # pyupgrade | ||
| "B", # flake8-bugbear | ||
| "SIM", # flake8-simplify | ||
| "I", # isort | ||
| ] | ||
| ignore = ["E501"] | ||
|
|
||
| [tool.mypy] | ||
| disable_error_code = ["import-untyped"] |
This file was deleted.
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given that we've given up on using MPI in practice, we can probably get rid of this file and replace it with |
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.
While we're here: If at some point we add tests that use newer light files, the old PyPI release of
adc64formatwill cause problems. The github release listed inpyproject.tomlwill work, of course. Would be nice if we could avoid this duplication of dependency specifications...Anyway, beyond the scope of this PR. Just thinking out loud.
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.
Actually I think we can just get rid of all the dependencies here, given that the test workflow does a
pip install .and will pick everything up from thepyproject.toml.