diff --git a/LICENSE b/LICENSE index 1667e10..a1382d3 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2018-2023 Tomas Stolker +Copyright (c) 2018-2024 Tomas Stolker Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..a7183fb --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,35 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "species" +version = "0.8.4" +authors = [{name = "Tomas Stolker", email = "stolker@strw.leidenuniv.nl"}] +description = "Toolkit for atmospheric characterization of directly imaged exoplanets" +readme = "README.rst" +requires-python = ">=3.9" +license = {text = "MIT License"} +classifiers = [ + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "License :: OSI Approved :: MIT License", + "Intended Audience :: Science/Research", + "Topic :: Scientific/Engineering :: Astronomy", +] + +[project.urls] +Documentation = "https://species.readthedocs.io" +Repository = "https://github.com/tomasstolker/species" +Issues = "https://github.com/tomasstolker/species/issues" + +[tool.setuptools] +packages = [] +py-modules = [] + +[tool.setuptools.dynamic] +dependencies = {file = ["requirements.txt"]} + +[tool.setuptools.package-data] +example = ["*.json"] diff --git a/setup.py b/setup.py deleted file mode 100644 index 3bc03df..0000000 --- a/setup.py +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env python - -import pkg_resources -import setuptools - -with open("requirements.txt") as req_txt: - parse_req = pkg_resources.parse_requirements(req_txt) - install_requires = [str(req) for req in parse_req] - -setuptools.setup( - name="species", - version="0.8.4", - description="Toolkit for atmospheric characterization of directly imaged exoplanets", - long_description=open("README.rst").read(), - long_description_content_type="text/x-rst", - author="Tomas Stolker", - author_email="stolker@strw.leidenuniv.nl", - url="https://github.com/tomasstolker/species", - project_urls={"Documentation": "https://species.readthedocs.io"}, - packages=setuptools.find_packages(include=["species", "species.*"]), - package_dir={"species:": "species"}, - package_data={"species": ["data/*/*.json"]}, - install_requires=install_requires, - tests_require=["pytest"], - license="MIT", - zip_safe=False, - keywords="species", - classifiers=[ - "Development Status :: 4 - Beta", - "Intended Audience :: Science/Research", - "Topic :: Scientific/Engineering :: Astronomy", - "License :: OSI Approved :: MIT License", - "Natural Language :: English", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - ], -)