Skip to content

Commit

Permalink
Merge pull request #1 from wahlby-lab/pypi
Browse files Browse the repository at this point in the history
PyPI workflow
  • Loading branch information
jwindhager authored Jan 26, 2024
2 parents 33f81ce + ad19376 commit 183b55f
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 29 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: PyPI
on:
push:
tags:
- v*
jobs:
build-and-publish:
name: Build and publish Python package
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/points2regions
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install pypa/build
run: python3 -m pip install --user build
- name: Build wheel & tarball
run: python3 -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Points2Regions is a Python tool designed for clustering and defining regions bas
You can install Points2Regions using the following command:

```bash
pip install git+https://github.com/wahlby-lab/Points2Regions
pip install points2regions
```


Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
36 changes: 36 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[metadata]
name = points2regions
author = Axel Andersson
author_email = axel.andersson@it.uu.se
description = A simple and efficient clustering tool for spatial 2D points with categorical labels.
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/wahlby-lab/Points2Regions
license = MIT
license_files = LICENSE
classifiers =
Intended Audience :: Science/Research
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Topic :: Scientific/Engineering :: Bio-Informatics
Topic :: Scientific/Engineering :: Image Processing

[options]
packages = find:
python_requires = >=3.8
install_requires =
numpy
pandas
scikit-image
scikit-learn
scipy

[options.packages.find]
include = tissuumaps
28 changes: 0 additions & 28 deletions setup.py

This file was deleted.

0 comments on commit 183b55f

Please sign in to comment.