Skip to content

Commit

Permalink
(Feat) improve installation
Browse files Browse the repository at this point in the history
  • Loading branch information
lbesnard committed Jun 4, 2024
1 parent fcbe5e0 commit 16842cf
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,23 @@ A tool to convert IMOS NetCDF files and CSV into Cloud Optimised format (Zarr/Pa


# Installation
## Users
Requirements:
* python >= 3.10.14

```bash
curl -s https://raw.githubusercontent.com/aodn/aodn_cloud_optimised/main/install.sh | bash
```

## Development
Requirements:
* Mamba from miniforge3: https://github.com/conda-forge/miniforge

```bash
mamba env create --file=environment.yml
mamba activate CloudOptimisedParquet

pip install -e . # development (edit mode)
pip install . # prod
poetry install
```
# Requirements
AWS SSO to push files to S3
Expand Down
13 changes: 13 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
latest_release_url=$(curl -s https://api.github.com/repos/aodn/aodn_cloud_optimised/releases/latest | grep -o '"browser_download_url": ".*"' | grep -o 'https://.*.whl"')

# Extract the URL of the wheel file
latest_wheel_url=$(echo "$latest_release_url" | sed 's/"$//')

# Download the wheel file
curl -LO "$latest_wheel_url"

# Extract the filename from the URL
filename=$(basename "$latest_wheel_url")

# Install the package using pip
pip install "$filename"

0 comments on commit 16842cf

Please sign in to comment.