diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..4446d703 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,61 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "detectree2" +version = "1.0.7" +description = "Python package for automatic tree crown delineation based on Mask R-CNN" +authors = [ + { name="James G. C. Ball", email="ball.jgc@gmail.com" }, +] +readme = "README.md" +license = { file = "LICENSE" } +requires-python = ">=3.8.0" + +dependencies = [ + "descartes", + "detectron2@git+https://github.com/facebookresearch/detectron2.git", + "fiona", + "gdal>=1.11", + "geopandas", + "geos", + "numpy", + "pygeos", + "pypng", + "proj", + "pycrs", + "pyyaml>=5.1", + "rasterio==1.3a3", + "rtree", + "shapely", +] + +[project.optional-dependencies] +lint = [ + "flake8", + "flake8-docstrings", + "isort", + "mypy", + "pydocstyle", + "yapf", +] + +docs = [ + "nbsphinx", + "sphinx==5.1.0", + "sphinx_rtd_theme", +] +test = [ + "pytest", + "pytest-order", + "opencv-python" +] + +ci = [ + "detectree2[docs,lint,test]" +] + + +[tool.setuptools] +packages = ["detectree2"] diff --git a/setup.py b/setup.py deleted file mode 100644 index bb1216f1..00000000 --- a/setup.py +++ /dev/null @@ -1,30 +0,0 @@ -from setuptools import find_packages, setup - -setup( - name="detectree2", - version="1.0.7", - author="James G. C. Ball", - author_email="ball.jgc@gmail.com", - description="Detectree packaging", - url="https://github.com/PatBall1/detectree2", - # package_dir={"": "detectree2"}, - packages=find_packages(), - test_suite="detectree2.tests.test_all.suite", - install_requires=[ - "pyyaml>=5.1", - "GDAL>=1.11", - "numpy", - "rtree", - "proj", - "geos", - "pypng", - "pygeos", - "shapely", - "geopandas", - "rasterio==1.3a3", - "fiona", - "pycrs", - "descartes", - "detectron2@git+https://github.com/facebookresearch/detectron2.git", - ], -)