diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..01837c1 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,38 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "pycrires" +version = "Data reduction pipeline for VLT/CRIRES+" +authors = [ + {name = "Tomas Stolker", email = "stolker@strw.leidenuniv.nl"}, + {name = "Rico Landman", email = "rlandman@strw.leidenuniv.nl"}, +] +description = "Data reduction pipeline for VLT/CRIRES+" +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://pycrires.readthedocs.io" +Repository = "https://github.com/tomasstolker/pycrires" +Issues = "https://github.com/tomasstolker/pycrires/issues" + +[tool.setuptools] +packages = [] +py-modules = [] + +[tool.setuptools.dynamic] +dependencies = {file = ["requirements.txt"]} + +[tool.setuptools.package-data] +example = ["keywords.txt", "calib_data/*.txt", "calib_data/*.dat"] diff --git a/setup.py b/setup.py deleted file mode 100644 index 567b4fc..0000000 --- a/setup.py +++ /dev/null @@ -1,39 +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='pycrires', - version='0.3.1', - description='Data reduction pipeline for VLT/CRIRES+', - 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/pycrires', - project_urls={'Documentation': 'https://pycrires.readthedocs.io'}, - packages=['pycrires'], - package_data={'pycrires': ['*.txt', - 'calib_data/*.dat', - 'calib_data/*.txt']}, - install_requires=install_requires, - tests_require=['pytest'], - license='MIT', - zip_safe=False, - keywords='pycrires', - 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', - ], -)