Skip to content

Commit

Permalink
195/er async (#198)
Browse files Browse the repository at this point in the history
Co-authored-by: Yun-Wu <[email protected]>
  • Loading branch information
atmorling and Yun-Wu authored Jul 26, 2024
1 parent 218fcf1 commit 791b163
Show file tree
Hide file tree
Showing 9 changed files with 1,015 additions and 77 deletions.
49 changes: 25 additions & 24 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,32 +55,11 @@ jobs:
- name: Test package
run: python -c "import $PACKAGE"

publish-to-pypi:
name: Publish to PyPI
needs:
- build
- install
runs-on: ubuntu-latest
environment:
name: release
if: startsWith(github.ref, 'refs/tags/')

permissions:
id-token: write

steps:
- name: Grab the previously stored build
uses: actions/download-artifact@v4
with:
name: pip-dist
path: dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

github-release:
name: Create release on GH
needs:
- publish-to-pypi
- build
- install
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')

Expand Down Expand Up @@ -114,4 +93,26 @@ jobs:
run: >-
gh release upload
'${{ github.ref_name }}' dist/**
--repo '${{ github.repository }}'
--repo '${{ github.repository }}'
publish-to-pypi:
name: Publish to PyPI
needs:
- build
- install
runs-on: ubuntu-latest
environment:
name: release
if: false

permissions:
id-token: write

steps:
- name: Grab the previously stored build
uses: actions/download-artifact@v4
with:
name: pip-dist
path: dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion doc/source/notebooks/01. IO/EarthRanger_IO.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
"metadata": {},
"outputs": [],
"source": [
"er_io._normalize_column(events_df, \"event_details\")\n",
"ecoscope.io.earthranger_utils.normalize_column(events_df, \"event_details\")\n",
"events_df"
]
},
Expand Down
3 changes: 3 additions & 0 deletions ecoscope/io/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
from ecoscope.io import earthranger, eetools, raster, utils
from ecoscope.io.earthranger import EarthRangerIO
from ecoscope.io.async_earthranger import AsyncEarthRangerIO
from ecoscope.io.utils import download_file

__all__ = [
"earthranger",
"EarthRangerIO",
"AsyncEarthRangerIO",
"download_file",
"earthranger_utils",
"eetools",
"raster",
"utils",
Expand Down
Loading

0 comments on commit 791b163

Please sign in to comment.