forked from JoshCu/NGIAB_data_preprocess
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update readme and add pypi auto publish (#25)
* Add option to change output directory * add pypi publish workflow * use pypi test * use pypi prod * add output folder selection * fix versioning in action * Update package metadata and README
- Loading branch information
Showing
9 changed files
with
131 additions
and
54 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Upload Python Package to PyPI when a Release is Created | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
pypi-publish: | ||
name: Publish release to PyPI | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/ngiab_data_preprocess | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel build | ||
- name: Update package version | ||
run: | | ||
sed -i 's/^#version.*/version = "${{ github.event.release.tag_name }}"/g' pyproject.toml | ||
sed -i '/^dynamic.*/d' pyproject.toml | ||
- name: Build package | ||
run: | | ||
python -m build | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
conus*.* | ||
modules/*/conus*.* | ||
*.parquet | ||
output/* | ||
!output/.gitkeep | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ name = "ngiab_data_preprocess" | |
#version = "0.0.1" | ||
dynamic = ["version"] | ||
authors = [{ name = "Josh Cunningham", email = "[email protected]" }] | ||
description = "A small example package" | ||
description = "Graphical Tools for creating Next Gen Water model input data." | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
classifiers = [ | ||
|
@@ -51,8 +51,8 @@ dependencies = [ | |
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/pypa/sampleproject" | ||
Issues = "https://github.com/pypa/sampleproject/issues" | ||
Homepage = "https://github.com/CIROH-UA/NGIAB_data_preprocess" | ||
Issues = "https://github.com/CIROH-UA/NGIAB_data_preprocess/issues" | ||
|
||
[build-system] | ||
# scm adds files tracked by git to the package | ||
|