-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #240 from MPoL-dev/pyproject
Switch to pyproject and hatch build
- Loading branch information
Showing
6 changed files
with
96 additions
and
122 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,72 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
build-backend = "hatchling.build" | ||
requires = ["hatchling", "hatch-vcs"] | ||
|
||
[project] | ||
authors = [{ name = "Ian Czekala", email = "[email protected]" }] | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
] | ||
dependencies = [ | ||
"numpy", | ||
"fast-histogram", | ||
"scipy", | ||
"torch>=1.8.0", | ||
"torchvision", | ||
"torchaudio", | ||
"torchkbnufft", | ||
"astropy", | ||
] | ||
description = "Regularized Maximum Likelihood Imaging for Radio Astronomy" | ||
dynamic = ["version"] | ||
name = "MPoL" | ||
readme = "README.md" | ||
requires-python = ">3.8" | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"pytest", | ||
"pytest-cov", | ||
"matplotlib", | ||
"requests", | ||
"astropy", | ||
"tensorboard", | ||
"mypy", | ||
"frank>=1.2.1", | ||
"sphinx>=5.3.0", | ||
"jupytext", | ||
"ipython!=8.7.0", # broken version for syntax higlight https://github.com/spatialaudio/nbsphinx/issues/687 | ||
"nbsphinx", | ||
"sphinx_book_theme>=0.9.3", | ||
"sphinx_copybutton", | ||
"jupyter", | ||
"nbconvert", | ||
"sphinxcontrib-mermaid>=0.8.1", | ||
"myst-nb", | ||
"jupyter-cache", | ||
"Pillow", | ||
"asdf", | ||
"pyro-ppl", | ||
"arviz[all]", | ||
] | ||
test = [ | ||
"pytest", | ||
"pytest-cov", | ||
"matplotlib", | ||
"requests", | ||
"tensorboard", | ||
"mypy", | ||
"frank>=1.2.1", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://mpol-dev.github.io/MPoL/" | ||
Issues = "https://github.com/MPoL-dev/MPoL/issues" | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
|
||
[tool.hatch.build.hooks.vcs] | ||
version-file = "src/mpol/mpol_version.py" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
__version__ = "0.2.1" | ||
zenodo_record = 10064221 | ||
from mpol.mpol_version import __version__ | ||
zenodo_record = 10064221 |