Skip to content

Commit

Permalink
add pypi publish dev setup
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlovicmilena committed Oct 30, 2023
1 parent 0afcf7a commit 0591198
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 2 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/pypi-publish-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Publish Python distribution of dev immuneML to PyPI

on:
push:
branches:
- nar

jobs:
build:
name: build distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/

publish-to-pypi:
name: >-
Publish tagged Python distribution to PyPI
if: startsWith(github.ref, 'refs/tags/')
needs:
- build
runs-on: ubuntu-latest
environment:
name: dev_nar_env
url: https://pypi.org/p/immuneML_dev
permissions:
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
1 change: 1 addition & 0 deletions immuneML/environment/Constants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
class Constants:

VERSION = "2.2.6"
DEV_VERSION = "0.0.1"

# encoding constants
FEATURE_DELIMITER = "-"
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def import_requirements(filename) -> list:


setup(
name="immuneML",
version=Constants.VERSION,
name="immuneML_dev",
version=Constants.DEV_VERSION,
description="immuneML is a software platform for machine learning analysis of immune receptor repertoires.",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 0591198

Please sign in to comment.