Skip to content

Commit

Permalink
Merge pull request #3 from gregory-halverson-jpl/main
Browse files Browse the repository at this point in the history
preparing v1.0.1 for initial PyPi release
  • Loading branch information
gregory-halverson-jpl authored Jul 19, 2024
2 parents 6ee5024 + 1a569df commit 64dd440
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 5 deletions.
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 }}
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
requires = ["setuptools>=60", "setuptools-scm>=8.0", "wheel"]

[project]
name = "soil_grids"
version = "1.0.0"
name = "soil_capacity_wilting"
version = "1.0.1"
description = "generates rasters of field capacity and wilting point from the SoilGrids dataset"
readme = "README.md"
authors = [
Expand All @@ -21,4 +21,7 @@ dependencies = [
requires-python = ">=3.10"

[tool.setuptools.package-data]
soil_grids = ["*.txt"]
soil_capacity_wilting = ["*.txt"]

[project.urls]
"Homepage" = "https://github.com/JPL-Evapotranspiration-Algorithms/soil_capacity_wilting"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .soil_grids import *
from .soil_capacity_wilting import *

from os.path import join, abspath, dirname

Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions soil_capacity_wilting/version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.1
1 change: 0 additions & 1 deletion soil_grids/version.txt

This file was deleted.

0 comments on commit 64dd440

Please sign in to comment.