diff --git a/pyproject.toml b/pyproject.toml index 0276cc10..cedd0fa5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,36 @@ +[build-system] +requires = [ + "setuptools>=45", +] +build-backend = "setuptools.build_meta" + +[project] +name = "JAX-GalSim" +authors = [ + {name = "GalSim Developers"}, +] +description = "The modular galaxy image simulation toolkit, but in JAX" +version = "0.0.1rc1" +license = {file = "LICENSE"} +readme = "README.md" +dependencies = [ + "numpy >=1.18.0", + "galsim >=2.3.0", + "jax", + "jaxlib", + "astropy >=2.0", + "tensorflow-probability >=0.21.0", +] + +[project.optional-dependencies] +dev = ["pytest", "pytest-codspeed"] + +[project.urls] +home = "https://github.com/GalSim-developers/JAX-GalSim" + +[tool.setuptools.packages.find] +include = ["jax_galsim*"] + [tool.ruff.lint] select = ["E", "F", "I", "W"] ignore = ["C901", "E203", "E501"] diff --git a/setup.py b/setup.py deleted file mode 100644 index f35018ce..00000000 --- a/setup.py +++ /dev/null @@ -1,20 +0,0 @@ -from setuptools import find_packages, setup - -setup( - name="JAX-GalSim", - version="0.0.1rc1", - url="https://github.com/GalSim-developers/JAX-GalSim", - author="GalSim Developers", - description="The modular galaxy image simulation toolkit, but in JAX", - packages=find_packages(), - license="BSD License", - install_requires=[ - "numpy >= 1.18.0", - "galsim >= 2.3.0", - "jax", - "jaxlib", - "astropy >= 2.0", - "tensorflow-probability >= 0.21.0", - ], - tests_require=["pytest", "pytest-codspeed"], -)