File tree Expand file tree Collapse file tree 3 files changed +28
-3
lines changed Expand file tree Collapse file tree 3 files changed +28
-3
lines changed Original file line number Diff line number Diff line change 1+ name : Upload Python Package
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ jobs :
8+ deploy :
9+ runs-on : ubuntu-20.04
10+
11+ steps :
12+ - uses : actions/checkout@v2
13+ - uses : actions/setup-python@v2
14+ - name : Install dependencies
15+ run : |
16+ python -m pip install --upgrade pip
17+ pip install setuptools wheel twine
18+ - name : Build and publish
19+ env :
20+ TWINE_USERNAME : __token__
21+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
22+ run : |
23+ python setup.py sdist bdist_wheel
24+ twine upload dist/*
Original file line number Diff line number Diff line change @@ -52,8 +52,9 @@ def mt_layover(list_of_ls):
5252
5353 df2 = gpd .read_file (file )
5454 df2 = df2 [~ (df2 .geometry .is_empty | df2 .geometry .isna ())]
55- geom2 = df2 .geometry .buffer (0 ).unary_union
56- geom = unary_union ([geom , geom2 ])
55+ if not df2 .empty :
56+ geom2 = df2 .geometry .buffer (0 ).unary_union
57+ geom = unary_union ([geom , geom2 ])
5758
5859 if y > 0 :
5960 # make geometry valid in case it isn't
Original file line number Diff line number Diff line change 1111 name = 'opensartoolkit' ,
1212 packages = find_packages (),
1313 include_package_data = True ,
14- version = '0.12.4 ' ,
14+ version = '0.12.5 ' ,
1515 description = 'High-level functionality for the inventory, download '
1616 'and pre-processing of Sentinel-1 data' ,
1717 install_requires = [
You can’t perform that action at this time.
0 commit comments