Skip to content

Commit

Permalink
added pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayur Prajapati committed Sep 26, 2024
1 parent 5617c53 commit 0ab5ee2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
name: Publish package to PyPI

on:
push:
branches:
- build_workflows
on: [push]

jobs:
build:
Expand All @@ -30,14 +27,15 @@ jobs:
name: python-package-distributions
path: dist/
publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI
name: Publish to TestPyPI
if: startsWith(github.ref, 'refs/tags/')
needs:
- build
runs-on: ubuntu-latest

environment:
name: testpypi
url: https://test.pypi.org/p/pyscalr
url: https://test.pypi.org/p/scalr

permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
Expand All @@ -48,7 +46,27 @@ jobs:
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
publish-to-pypi:
name: >-
Publish to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/scalr # Replace <package-name> with your PyPI project name
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
10 changes: 4 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@ requires = ["hatchling", "hatch-requirements-txt"]
build-backend = "hatchling.build"

[project]
name = "pyscalr"
version = "0.0.3"
name = "scaLR"
version = "0.0.2"
requires-python = ">=3.9"
authors = [
{ name="Infocusp", email="info@infocusp.com" },
{ name="Infocusp", email="saurabh@infocusp.com" },
]
description = "scaLR: Single cell analysis using low resource."
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3.9",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Science/Research"
]

dynamic = ["dependencies"]
Expand All @@ -38,4 +37,3 @@ license = {file = "LICENSE"}
Repository = "https://github.com/infocusp/scaLR.git"
Homepage = "https://github.com/infocusp/scaLR"
Issues = "https://github.com/infocusp/scaLR/issues"

0 comments on commit 0ab5ee2

Please sign in to comment.