diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..abb8161 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,50 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[tool.setuptools.packages.find] +include = ["spyndex*"] + +[project] +name = "spyndex" +version = "0.5.1" +authors = [ + {name = "David Montero Loaiza", email = "dml.mont@gmail.com"}, +] +description = "Awesome Spectral Indices in Python" +readme = "README.md" + +requires-python = ">=3.7" + +classifiers=[ + "Development Status :: 2 - Pre-Alpha", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", +] + +dependencies = [ + "dask>=2023.7.0", + "eemont>=0.3.6", + "matplotlib", + "pandas>=2.0.3", + "python-box>=6.0", + "requests", + "seaborn", + "xarray>=2023.6.0", +] + +[project.urls] +"Bug Tracker"= "https://github.com/awesome-spectral-indices/spyndex/issues" +Documentation = "https://spyndex.readthedocs.io" +"Source Code" = "https://github.com/awesome-spectral-indices/spyndex" + +[tool.setuptools.package-data] +"spyndex.data" = ["*.json"] + +# Compatibility between black and isort +[tool.isort] +profile = "black" diff --git a/setup.py b/setup.py deleted file mode 100644 index afc740f..0000000 --- a/setup.py +++ /dev/null @@ -1,46 +0,0 @@ -import io -import os -import re - -from setuptools import find_packages, setup - - -def read(filename): - filename = os.path.join(os.path.dirname(__file__), filename) - text_type = type(u"") - with io.open(filename, mode="r", encoding="utf-8") as fd: - return re.sub(text_type(r":[a-z]+:`~?(.*?)`"), text_type(r"``\1``"), fd.read()) - - -setup( - name="spyndex", - version="0.5.0", - url="https://github.com/awesome-spectral-indices/spyndex", - license="MIT", - author="David Montero Loaiza", - author_email="dml.mont@gmail.com", - description="Awesome Spectral Indices in Python", - long_description=read("README.md"), - long_description_content_type="text/markdown", - packages=find_packages(exclude=("tests",)), - package_data={"spyndex": ["data/*.json"]}, - install_requires=[ - "dask>=2023.7.0", - "eemont>=0.3.6", - "matplotlib", - "pandas>=2.0.3", - "python-box>=6.0", - "requests", - "seaborn", - "xarray>=2023.6.0", - ], - classifiers=[ - "Development Status :: 2 - Pre-Alpha", - "License :: OSI Approved :: MIT License", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - ], -)