Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyPI workflow #1

Merged
merged 3 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.