Skip to content

Commit

Permalink
Merge pull request #89 from dkazanc/pypi
Browse files Browse the repository at this point in the history
adding pypi workflow
  • Loading branch information
dkazanc authored Aug 28, 2024
2 parents 6e58794 + 4a24c72 commit 83b3732
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/tomobar_pypi_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Upload Python Package to PyPI when a Release is Created

on:
release:
types: [created]

jobs:
pypi-publish:
name: Publish release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/tomobar
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
pip install --upgrade build
- name: Build package
run: |
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion docs/source/doc-conda-requirements.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: tomophantom-docs
name: tomobar-docs
channels:
- conda-forge
- defaults
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ readme = "Readme.md"
license = {text = "GPLv3"}
authors = [
{name = "Daniil Kazantsev", email = "daniil.kazantsev@diamond.ac.uk"},
{name = "Viktor Nikitin", email = "vnikitin@anl.gov"},
]
classifiers = [
"Development Status :: 4 - Beta",
Expand All @@ -38,6 +39,7 @@ requires-python = ">=3.9"
dynamic = ["version"]
dependencies = [
"numpy",
"astra-toolbox",
"scipy",
"pillow",
"scikit-image"
Expand Down

0 comments on commit 83b3732

Please sign in to comment.