Skip to content

Commit

Permalink
Merge pull request #173 from astro-informatics/mmg/switch-to-pyprojec…
Browse files Browse the repository at this point in the history
…t-toml

Switching to `pyproject.toml` for specifying package metadata
  • Loading branch information
CosmoMatt authored Sep 27, 2024
2 parents efeeada + 6bec4a5 commit 5df8106
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 59 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ resources/
.matrices/
s2fft.code-workspace
.tox
s2fft/_version.py
67 changes: 67 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools",
"setuptools-scm",
]

[project]
authors = [
{name = "Matthew A. Price"},
{name = "Jason D. McEwen"},
{name= "Contributors"}
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
]
description = "Differentiable and accelerated spherical transforms with JAX"
dynamic = [
"version",
"dependencies",
"optional-dependencies",
]
keywords = [
]
name = "s2fft"
readme = ".pip_readme.rst"
requires-python = ">=3.8"
license.file = "LICENSE.txt"
urls.homepage = "https://github.com/astro-informatics/s2fft"


[tool.pytest.ini_options]
addopts = "--color=yes -v"
testpaths = [
"tests",
]
filterwarnings = [
"error",
"ignore::UserWarning",
"ignore::DeprecationWarning",
"ignore:FutureWarning",
]

[tool.setuptools]
packages = ["s2fft"]

[tool.setuptools.dynamic]
dependencies = {file = ["requirements/requirements-core.txt"]}
optional-dependencies.docs = { file = ["requirements/requirements-docs.txt"] }
optional-dependencies.plotting = { file = ["requirements/requirements-plotting.txt"] }
optional-dependencies.tests = { file = ["requirements/requirements-tests.txt"] }

[tool.setuptools.package-data]
s2fft = ["default-logging-config.yaml"]

[tool.setuptools_scm]
local_scheme = "no-local-version"
write_to = "s2fft/_version.py"
6 changes: 0 additions & 6 deletions pytest.ini

This file was deleted.

1 change: 1 addition & 0 deletions requirements/requirements-core.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ colorlog
pyyaml
jax>=0.3.13
jaxlib
scipy==1.13.1
torch # Remove when subpackage functionality is fixed.
pyssht
healpy
Expand Down
17 changes: 0 additions & 17 deletions s2fft/_version.py

This file was deleted.

36 changes: 0 additions & 36 deletions setup.py

This file was deleted.

0 comments on commit 5df8106

Please sign in to comment.