Skip to content

Commit

Permalink
Updated workflows for publishing to TestPyPI and PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
fercer committed Oct 2, 2023
1 parent 6cf4002 commit 2e0286e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/putblish_to_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release to PyPI

on:
release:
types: [released]

jobs:
release:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Tools
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Package and Upload
env:
VERSION: ${{ github.event.release.tag_name }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/* --verbose
4 changes: 2 additions & 2 deletions .github/workflows/putblish_to_test_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Install Tools
run: |
python -m pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ my_dataset = zds.ZarrDataset(...,
Examples of integration of the **ZarrDataset** class with the PyTorch's **DataLoader** can be found in the (documentation)[https://thejacksonlaboratory.github.io/zarrdataset/index.html].

## Installation
To install this package and have access to the zarr-based PyTorch Dataset and other functionalities, clone this repository and use the following command from inside the cloned repository location.
This package can be installed from PyPI with the following command
```
python -m pip install -e .
pip install zarrdataset
```

0 comments on commit 2e0286e

Please sign in to comment.