diff --git a/gemgis/utils.py b/gemgis/utils.py index a5a3c4cb..edb12451 100644 --- a/gemgis/utils.py +++ b/gemgis/utils.py @@ -2458,7 +2458,7 @@ def open_mpk(path_in: str): """ # Trying to import py7zr but returning error if py7zr is not installed try: - import py7zr as gp + import py7zr except ModuleNotFoundError: raise ModuleNotFoundError( 'py7zr package is not installed. Use pip install py7zr to install the latest version') diff --git a/pyproject.toml b/pyproject.toml index 2434be75..e8680607 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,11 +34,37 @@ classifiers = [ 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', 'Operating System :: OS Independent', ] +# These dependencies are needed to import GemGIS successfully +# These dependencies will automatically install other packages like numpy, pandas or matplotlib dependencies = [ 'geopandas', 'rasterio', 'pyvista', ] + +[project.optional-dependencies] +optionals = [ + 'scipy', + 'PyPDF2', + 'tqdm', + 'gempy', + 'pvgeo', + 'xml', + 'scikit-image', + 'xmltodict', + 'geopy', + 'scikit-learn', + 'py7zr', + 'segysak', + 'rioxarray', + 'tqdm', + 'mplstereonet', + 'xarray', + 'owslib', + 'requests', + 'urllib' +] + [project.urls] Documentation = 'https://gemgis.readthedocs.io/' Home = 'https://gemgis.readthedocs.io/'