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

Develop #75

Merged
merged 5 commits into from
May 25, 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
10 changes: 7 additions & 3 deletions .github/workflows/semantic-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ jobs:
release:
if: ${{ github.event.label.name == 'semantic versioning' }}
runs-on: ubuntu-latest
concurrency: release
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Python Semantic Release
uses: relekang/python-semantic-release@v7.33.2
uses: relekang/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repository_username: __token__
repository_password: ${{ secrets.PYPI_TOKEN }}
repository_password: ${{ secrets.PYPI_TOKEN }}
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@

sys.path.insert(0, os.path.abspath("."))
sys.path.insert(0, os.path.abspath(".."))
from scar.main.__version__ import __version__, _copyright, _author
from scar import __version__

# -- Project information -----------------------------------------------------
project = "scAR"
copyright = _copyright
author = _author
copyright = "Novartis Institute for BioMedical Research, 2022"
author = "Caibin Sheng"
release = __version__


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

[project]
name = "scar"
version = "0.5.5"
requires-python = ">= 3.10"
dependencies = [
"torch >= 1.10.0",
"torchvision >= 0.9.0",
"tqdm >= 4.62.3",
"seaborn >= 0.11.2",
"scikit-learn >= 1.0.1",
"pyro-ppl >= 1.8.0",
"scanpy >= 1.9.2"
]
authors = [
{name = "Caibin Sheng", email = "caibin.sheng.res@gmail.com"}
]
description = "scAR (single-cell Ambient Remover) is a package for denoising the ambient signals in droplet-based single cell omics"
readme = "README.md"
license = {text = "MIT License"}
keywords = ["single cell omics", "variational autoencoder", "machine learning", "generative model", "cite-seq", "scCRISPRseq", "scRNAseq"]

[project.urls]
Homepage = "https://github.com/Novartis/scAR"
Documentation = "https://scar-tutorials.readthedocs.io/en/main/"
Repository = "https://github.com/Novartis/scar.git"
Issues = "https://github.com/Novartis/scAR/issues"
Changelog = "https://github.com/me/spam/blob/master/CHANGELOG.md"

[tool.semantic_release]
version_toml = ["pyproject.toml:project.version"]
major_on_zero = false
branch = "develop"
upload_to_release = false
hvcs = "github"
upload_to_repository = false
upload_to_pypi = false
patch_without_tag = false

[tool.semantic_release.changelog]
changelog_file="docs/Release_notes.md"

[project.gui-scripts]
scar = "scar.main.__main__:main"
3 changes: 2 additions & 1 deletion scar/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from importlib.metadata import version
__version__ = version("scar")

from .main.__version__ import __version__
from .main._scar import model
from .main._setup import setup_anndata
from .main import _data_generater as data_generator
2 changes: 1 addition & 1 deletion scar/main/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import scanpy as sc
from scipy.sparse import csr_matrix
from ._scar import model
from .__version__ import __version__
from ..__init__ import __version__
from ._utils import get_logger


Expand Down
6 changes: 0 additions & 6 deletions scar/main/__version__.py

This file was deleted.

45 changes: 0 additions & 45 deletions setup.cfg

This file was deleted.

Loading