Skip to content

Commit

Permalink
Merge pull request #9 from metaspace2020/dev
Browse files Browse the repository at this point in the history
GH actions to release to pypi
  • Loading branch information
tdrose authored Nov 27, 2023
2 parents b2a4021 + 2da1969 commit 5a82907
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 5 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release Python Package to PyPI

on:
release:
types:
- created

jobs:
build_and_deploy:
name: Publish package distributions to PyPI
runs-on: ubuntu-latest

environment:
name: pypi
url: https://pypi.org/p/metaspace2020

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build

- name: Publish package to PyPI
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ If you encounter any bugs or have suggestions for new features, please open an i

## Installation

Our package requires `python >= 3.8`.
Our package requires `python >= 3.9`.

```bash
pip install -U git+https://github.com/metaspace2020/metaspace-converter@master
Expand Down
2 changes: 1 addition & 1 deletion metaspace_converter/tests/to_spatialdata_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def test_metaspace_with_napari_spatialdata(dataset_id, database, fdr, sm, reques
][0]
# 1. Select coordinate system
sdata_widget.coordinate_system_widget._select_coord_sys(COORD_SYS_GLOBAL)
sdata_widget.elements_widget._onClickChange(COORD_SYS_GLOBAL)
sdata_widget.elements_widget._onItemChange(COORD_SYS_GLOBAL)
# 2. Select image element
sdata_widget._onClick(OPTICAL_IMAGE_KEY)
# 3. Select points element
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ authors = [
{name = "Andreas Eisenbarth", email = "[email protected]"},
]
description = "Convert Metaspace datasets to AnnData"
requires-python = ">=3.8"
license = {text = "GPLv3"}
requires-python = ">=3.9"
license = {text = "Apache-2.0"}
classifiers = [
"License :: OSI Approved :: GNU General Public License v3",
"License :: OSI Approved :: Apache Software License",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Intended Audience :: Science/Research",
"Natural Language :: English",
Expand Down

0 comments on commit 5a82907

Please sign in to comment.