diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..600265a3 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,36 @@ +[build-system] +requires = ["setuptools >= 61.0"] +build-backend = "setuptools.build_meta" + +[project] +name = "astroNN" +version = "1.2.dev0" +dynamic = ["dependencies"] +requires-python = ">=3.9" +authors = [ + {name = "Henry Leung", email = "henryskyleung@gmail.com"}, +] +maintainers = [ + {name = "Henry Leung", email = "henryskyleung@gmail.com"}, +] +description = "Deep Learning for Astronomers with Keras" +readme = "README.rst" +license = {file = "LICENSE"} +classifiers = [ + "Development Status :: 4 - Beta", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python", + "Intended Audience :: Science/Research", + "Topic :: Scientific/Engineering :: Astronomy", + "Topic :: Scientific/Engineering :: Artificial Intelligence", +] + +[tool.setuptools.dynamic] +dependencies = {file = ["requirements.txt"]} + +[project.urls] +Homepage = "https://github.com/henrysky/astroNN" +Documentation = "http://astronn.readthedocs.io/" +Repository = "https://github.com/henrysky/astroNN" +"Bug Tracker" = "https://github.com/henrysky/astroNN/issues" +Changelog = "https://astronn.readthedocs.io/en/latest/history.html" diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..535e5264 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,9 @@ +numpy +matplotlib +scikit-learn +pandas +astropy +astroquery +torch +ipython +ipykernel \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 1096c319..00000000 --- a/setup.py +++ /dev/null @@ -1,49 +0,0 @@ -import os -from setuptools import setup, find_packages - -with open( - os.path.join(os.path.abspath(os.path.dirname(__file__)), "README.rst"), - encoding="utf-8", -) as f: - long_description = f.read() - -python_min_version = "3.9" - -setup( - name="astroNN", - version="1.2.dev0", - classifiers=[ - "Development Status :: 4 - Beta", - "License :: OSI Approved :: MIT License", - f"Programming Language :: Python :: {python_min_version}", - "Intended Audience :: Science/Research", - "Topic :: Scientific/Engineering :: Artificial Intelligence", - "Topic :: Scientific/Engineering :: Astronomy", - ], - packages=find_packages(), - include_package_data=True, - python_requires=f">={python_min_version}", - install_requires=[ - "numpy", - "astropy", - "h5py", - "matplotlib", - "astroquery", - "pandas", - "scikit-learn", - "tqdm", - "packaging", - ], - url="https://github.com/henrysky/astroNN", - project_urls={ - "Bug Tracker": "https://github.com/henrysky/astroNN/issues", - "Documentation": "http://astronn.readthedocs.io/", - "Source Code": "https://github.com/henrysky/astroNN", - }, - license="MIT", - author="Henry Leung", - author_email="henrysky.leung@utoronto.ca", - description="Deep Learning for Astronomers with Keras", - long_description=long_description, - long_description_content_type="text/x-rst", -)