-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add steps to publish in github workflow
- Loading branch information
Showing
2 changed files
with
33 additions
and
25 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -46,25 +46,31 @@ jobs: | |
# verbose: true | ||
|
||
# Publishes to PyPi if tests are passed and release is created | ||
# publish: | ||
# if: github.event_name == 'release' && github.event.action == 'created' | ||
# needs: test | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# # Checkout repo | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# # Install rye with cache | ||
# - name: Install the latest version of rye | ||
# uses: eifinger/setup-rye@v4 | ||
# with: | ||
# enable-cache: true | ||
# # Sync dependencies | ||
# - name: Sync dependencies | ||
# run: rye sync | ||
# # Build and publish to PyPI | ||
# - name: Build and publish to pypi | ||
# uses: JRubics/[email protected] | ||
# with: | ||
# pypi_token: ${{ secrets.PYPI_TOKEN }} | ||
# | ||
publish: | ||
if: github.event_name == 'release' && github.event.action == 'created' | ||
needs: test | ||
name: Upload release to PyPI | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/project/isp-workbook-parser/ | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
steps: | ||
# Checkout repo | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
# Install rye with cache | ||
- name: Install the latest version of rye | ||
uses: eifinger/setup-rye@v4 | ||
with: | ||
enable-cache: true | ||
# Sync dependencies | ||
- name: Sync dependencies | ||
run: rye sync | ||
# Build | ||
- name: Build | ||
run: rye build | ||
# Publish to PyPI | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1token "$PYPI_TOKEN" |
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,9 +1,11 @@ | ||
[project] | ||
name = "isp-workbook-parser" | ||
version = "0.1.0" | ||
description = "Add your description here" | ||
description = "A Python package for reading data from the Inputs, Assumptions and Scenarios Report (IASR) Microsoft Excel workbook published by the Australian Energy Market Operator for use in their Integrated System Plan modelling." | ||
authors = [ | ||
{ name = "nick-gorman", email = "[email protected]" } | ||
{ name = "nick-gorman", email = "[email protected]" }, | ||
{ name = "prakaa", email = "[email protected]" }, | ||
{ name = "dylanjmcconnell", email = "[email protected]" } | ||
] | ||
dependencies = [ | ||
"pandas>=2.2.2", | ||
|
@@ -12,7 +14,7 @@ dependencies = [ | |
"pyyaml>=6.0.1", | ||
] | ||
readme = "README.md" | ||
requires-python = ">= 3.8" | ||
requires-python = ">= 3.9" | ||
|
||
[build-system] | ||
requires = ["setuptools>=61.0", "wheel"] | ||
|