Skip to content

Commit

Permalink
Merge pull request #4 from gregory-halverson/main
Browse files Browse the repository at this point in the history
preparing for initial release
  • Loading branch information
gregory-halverson authored Oct 31, 2024
2 parents e4482c3 + 009c9e9 commit ec34f16
Show file tree
Hide file tree
Showing 32 changed files with 86 additions and 5 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]

steps:
- name: Checkout repository
uses: actions/checkout@v3 # This is already the latest version

- name: Set up Python
uses: actions/setup-python@v4 # This is also the latest version
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev] # Use dev to install pytest
- name: Run tests
run: |
pytest
39 changes: 39 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
1 change: 0 additions & 1 deletion HLS/version.txt

This file was deleted.

8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ NASA Jet Propulsion Laboratory 329G
[evan.w.davis@jpl.nasa.gov](mailto:evan.w.davis@jpl.nasa.gov)<br>
NASA Jet Propulsion Laboratory 397K

## Installation

This package is available on PyPi: [https://pypi.org/project/harmonized-landsat-sentinel](https://pypi.org/project/harmonized-landsat-sentinel/1.0.0/)

```
pip install harmozined-landsat-sentinel
```

## References

If you use this package to access or analyze the Harmonized Landsat Sentinel (HLS) dataset, please cite the following datasets and research articles:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions harmonized_landsat_sentinel/version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.1
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ requires = ["setuptools>=60", "setuptools-scm>=8.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "HLS"
version = "1.0.0"
name = "harmonized_landsat_sentinel"
version = "1.0.1"
description = "Harmonized Landsat Sentinel (HLS) search and download utility"
readme = "README.md"
authors = [
Expand Down
4 changes: 2 additions & 2 deletions tests/test_HLS_imports.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
def test_HLS1_import():
from HLS import HLS1Connection
from harmonized_landsat_sentinel import HLS1Connection

def test_HLS2_import():
from HLS import HLS2Connection
from harmonized_landsat_sentinel import HLS2Connection

0 comments on commit ec34f16

Please sign in to comment.