From 85b216bb0ab55b68c74a09c5e5c458de7674f88c Mon Sep 17 00:00:00 2001
From: Kelvin Rodriguez <krodriguez@usgs.gov>
Date: Thu, 15 Dec 2022 15:50:56 -0700
Subject: [PATCH] removed gdal as a requirement (#186)

* removed gdal as a requirement

* added run contrained

* added optional gdal
---
 recipe/meta.yaml | 6 +++---
 setup.py         | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/recipe/meta.yaml b/recipe/meta.yaml
index 296bdc8..0941181 100644
--- a/recipe/meta.yaml
+++ b/recipe/meta.yaml
@@ -22,7 +22,6 @@ requirements:
     - numpy
     - pvl >= 1.3.0
     - protobuf
-    - gdal
     - icu
     - h5py
     - pandas
@@ -38,7 +37,6 @@ requirements:
     - numpy
     - pvl >= 1.3.0
     - protobuf
-    - gdal
     - icu
     - h5py
     - pandas
@@ -49,6 +47,8 @@ requirements:
     - scipy
     - certifi
     - pyproj
+  run_contrained: 
+    - gdal 
 
 test:
   imports:
@@ -56,4 +56,4 @@ test:
 
 about:
   home: http://github.com/USGS-Astrogeology/plio
-  license: Public Domain
+  license: Public Domain
\ No newline at end of file
diff --git a/setup.py b/setup.py
index 56c6c43..7b8190b 100644
--- a/setup.py
+++ b/setup.py
@@ -22,18 +22,18 @@ def setup_package():
         zip_safe=True,
         scripts=['bin/socetnet2isis', 'bin/isisnet2socet'],
         install_requires=[
-            'gdal',
             'numpy',
             'pyproj',
             'pvl',
-            'protobuf',
             'h5py',
+            'protobuf',
             'pandas',
             'sqlalchemy',
             'pyyaml',
             'networkx',
             'affine',
             'scipy'],
+        extras_require={'io_gdal' : "gdal"},
         classifiers=[
             "Development Status :: 3 - Alpha",
             "Topic :: Utilities",
-- 
GitLab