diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..29f00f8 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,4 @@ +graft gref4hsi +include pyproject.toml +include setup.py +global-exclude *.py[cod] \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b4eaf22 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,6 @@ +[build-system] +requires = [ + "setuptools >= 42", + "wheel", +] +build-backend = "setuptools.build_meta" \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 0817d09..01097c6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,6 @@ opencv-python dill geopandas h5py -lmfit matplotlib numpy open3d @@ -20,6 +19,7 @@ xmltodict pykdtree trimesh rtree +embreex pyembree sphinx ipykernel diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..3186919 --- /dev/null +++ b/setup.py @@ -0,0 +1,50 @@ +import pathlib +import setuptools + +setuptools.setup( + name='gref4hsi', + version='0.1.1', + description='A Python package for for georeferencing and orthorectifying hyperspectral imagery', + long_description=pathlib.Path("README.md").read_text(), + long_description_content_type = "text/markdown", + url='https://github.com/havardlovas/gref4hsi', + author='Haavard Snefjellaa Loevaas', + author_email='havard.s.lovas@ntnu.no', + license='EUPL-1.2', + install_requires=[ + "opencv-python", + "dill", + "geopandas", + "h5py", + "matplotlib", + "numpy", + "open3d", + "pandas", + "Pillow", + "pymap3d", + "pyproj", + "pyvista", + "pyvistaqt", + "scikit-learn", + "scipy", + "shapely", + "spectral", + "xmltodict", + "pykdtree", + "trimesh", + "rtree", + "pyembree", + "ephem" + ], + + classifiers=[ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Science/Research', + 'License :: OSI Approved :: European Union Public Licence 1.2 (EUPL 1.2)', + 'Operating System :: Microsoft :: Windows :: Windows 10', + 'Programming Language :: Python :: 3.8', + ], + python_requires='>3.7,<3.9', + packages=setuptools.find_packages(), + include_package_data=True +) \ No newline at end of file