From 74b02bb1017e0312811e48293bd5933b45627190 Mon Sep 17 00:00:00 2001 From: Tomas Stolker Date: Mon, 7 Oct 2024 12:44:44 +0200 Subject: [PATCH] Added pyproject.toml and removed setup.py --- pyproject.toml | 30 ++++++++++++++++++++++++++++++ setup.py | 35 ----------------------------------- 2 files changed, 30 insertions(+), 35 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..4ba45ed --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,30 @@ +[build-system] +requires = ["setuptools>=61.0", "setuptools-scm>=8.0"] +build-backend = "setuptools.build_meta" + +[project] +name = "diskmap" +version = "0.2.0" +authors = [{name = "Tomas Stolker", email = "stolker@strw.leidenuniv.nl"}] +description = "Scattered light mapping of protoplanetary disks" +readme = "README.rst" +requires-python = ">=3.9,<3.12" +license = {text = "MIT License"} +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Intended Audience :: Science/Research", + "Topic :: Scientific/Engineering :: Astronomy", +] +dynamic = ["dependencies"] + +[project.urls] +Documentation = "https://diskmap.readthedocs.io" +Repository = "https://github.com/tomasstolker/diskmap" +Issues = "https://github.com/tomasstolker/diskmap/issues" + +[tool.setuptools] +packages = ["diskmap"] + +[tool.setuptools.dynamic] +dependencies = {file = "requirements.txt"} diff --git a/setup.py b/setup.py deleted file mode 100644 index 5673934..0000000 --- a/setup.py +++ /dev/null @@ -1,35 +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='diskmap', - version='0.2.0', - description='Scattered light mapping of protoplanetary disks', - 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/diskmap', - project_urls={'Documentation': 'https://diskmap.readthedocs.io'}, - packages=['diskmap'], - install_requires=install_requires, - license='MIT', - zip_safe=False, - keywords='diskmap', - 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', - ], -)