Skip to content

Commit

Permalink
deps: drop defusedxml
Browse files Browse the repository at this point in the history
revert back the ElementTree usage from `defusedxml` to the native `xml.etree` module, to drop this extra dependency, because there are only two use cases in the code: parse known XML files from ISCE and SNAP. insarlab#340
  • Loading branch information
yunjunz committed Nov 22, 2022
1 parent bd95c51 commit f819b29
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion docs/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ dependencies:
- cvxopt
- dask>=1.0
- dask-jobqueue>=0.3
- defusedxml
- gdal>=3 # for ISCE, ARIA, FRInGE, HyP3, GMTSAR users
- h5py
- joblib
Expand Down
1 change: 0 additions & 1 deletion docs/ports.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ py37-cartopy
py37-cvxopt +accelerate +dsdp +fftw +glpk +gsl
py37-cython
py37-dask
py37-defusedxml
py37-distributed
py37-gdbm
py37-h5py
Expand Down
1 change: 0 additions & 1 deletion docs/requirements4rtd.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# requirements file to build Read the Docs ONLY
defusedxml
h5py
lxml
matplotlib
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ cartopy
cvxopt
dask>=1.0
dask-jobqueue>=0.3
defusedxml
# gdal>=3 # for ISCE, ARIA, FRInGE, HyP3, GMTSAR users
h5py
joblib
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"cvxopt",
"dask>=1.0",
"dask-jobqueue>=0.3",
"defusedxml",
"h5py",
"joblib",
"lxml",
Expand Down
2 changes: 1 addition & 1 deletion src/mintpy/prep_fringe.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

import glob
import os
import xml.etree.ElementTree as ET

import defusedxml.ElementTree as ET
import h5py
import numpy as np

Expand Down
Binary file added src/mintpy/utils/.readfile.py.swp
Binary file not shown.
2 changes: 1 addition & 1 deletion src/mintpy/utils/readfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
import re
import sys
import warnings
import xml.etree.ElementTree as ET

import defusedxml.ElementTree as ET
import h5py
import numpy as np

Expand Down

0 comments on commit f819b29

Please sign in to comment.