Skip to content

Commit

Permalink
PyPI v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kks32 committed Oct 27, 2023
1 parent 0eb4e4c commit c605e66
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 35 deletions.
47 changes: 25 additions & 22 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
name: Publish to PyPI
on: [push]
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/dsjobs
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Poetry image
uses: abatilo/actions-poetry@v2
- name: Install the project dependencies
run: poetry install
- name: Build package
run: poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/dsjobs
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Poetry image
uses: abatilo/actions-poetry@v2
- name: Install the project dependencies
run: poetry install
- name: Build package
run: poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
17 changes: 8 additions & 9 deletions example-notebooks/template-mpm-run.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@
"outputs": [],
"source": [
"# Default parameters for the MPM template notebook\n",
"path: str = '/MyData/mpm-benchmarks/2d/uniaxial_stress/' # path to input file\n",
"path: str = \"/MyData/mpm-benchmarks/2d/uniaxial_stress/\" # path to input file\n",
"\n",
"input_file: str = 'mpm.json' # input file.json\n",
"input_file: str = \"mpm.json\" # input file.json\n",
"\n",
"duration: str = '00:10:00' # Runtime duration ('HH:MM:SS')\n",
"duration: str = \"00:10:00\" # Runtime duration ('HH:MM:SS')\n",
"\n",
"# The parameters modified in your job will be included in the cell below."
]
Expand Down Expand Up @@ -157,14 +157,13 @@
"ag = Agave.restore()\n",
"\n",
"# generate and modify job info\n",
"job_info = ds.generate_job_info(ag, \n",
" appid='mpm-1.0.0', \n",
" jobname='mpm-uniaxial', \n",
" runtime=duration)\n",
"job_info = ds.generate_job_info(\n",
" ag, appid=\"mpm-1.0.0\", jobname=\"mpm-uniaxial\", runtime=duration\n",
")\n",
"\n",
"# specify input path and file\n",
"job_info[\"inputs\"] = {\"inputDirectory\": [ ds.get_ds_path_uri(ag, path) ]}\n",
"job_info[\"parameters\"] = {\"inputfile\" : [ input_file ]}\n",
"job_info[\"inputs\"] = {\"inputDirectory\": [ds.get_ds_path_uri(ag, path)]}\n",
"job_info[\"parameters\"] = {\"inputfile\": [input_file]}\n",
"print(\"\\n---Job Info---\\n\\n\" + json.dumps(job_info, indent=2))"
]
},
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[tool.poetry]
name = "dsjobs"
version = "0.1.0"
description = ""
version = "0.1.1"
description = "DSJobs simplifies accessing TAPIS on DesignSafe"
authors = [
"Pedro Arduino <parduino@uw.edu>",
"Krishna Kumar <krishnak@utexas.edu>"
"Krishna Kumar <krishnak@utexas.edu>",
"Pedro Arduino <parduino@uw.edu>"
]
readme = "README.md"
packages = [{include = "dsjobs"}]
Expand Down

0 comments on commit c605e66

Please sign in to comment.