Skip to content

Commit

Permalink
migrate to pyproject build system
Browse files Browse the repository at this point in the history
  • Loading branch information
arahlin committed Apr 24, 2024
1 parent a89578f commit a837aba
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 38 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ build/
dist/
*.egg
*.egg-info
xfaster/_version.py
22 changes: 22 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "xfaster"
description = "A fast power spectrum and likelihood estimator for CMB datasets"
readme = "README.rst"
requires-python = ">=3.0"
urls = {source = "https://github.com/SPIDERCMB/xfaster"}
license = {file = "LICENSE"}
dynamic = ["version"]
dependencies = ["numpy>1.17.5", "healpy", "camb", "emcee", "h5py"]

[project.scripts]
xfaster = "xfaster:xfaster_main"

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

[tool.setuptools_scm]
write_to = "xfaster/_version.py"
37 changes: 0 additions & 37 deletions setup.py

This file was deleted.

2 changes: 1 addition & 1 deletion xfaster/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
from .parse_tools import load_and_parse, save
from .spec_tools import get_camb_cl

__version__ = "1.2.0"
from ._version import __version__

0 comments on commit a837aba

Please sign in to comment.