From 66c8e13969041f6cb8fd1697d4bf1635ae130689 Mon Sep 17 00:00:00 2001 From: Tomas Stolker Date: Thu, 26 Sep 2024 16:00:14 +0200 Subject: [PATCH] Added pyproject.toml and removed setup.py --- LICENSE | 2 +- pyproject.toml | 28 ++++++++++++++++++++++++++++ setup.py | 38 -------------------------------------- 3 files changed, 29 insertions(+), 39 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/LICENSE b/LICENSE index 1667e10c..a1382d3d 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 00000000..298878b8 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,28 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[tool.setuptools.dynamic] +dependencies = {file = ["requirements.txt"]} + +[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" diff --git a/setup.py b/setup.py deleted file mode 100644 index 3bc03df4..00000000 --- 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", - ], -)