Skip to content

Commit

Permalink
Refactor to use poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobiaspk committed Apr 9, 2024
1 parent e10a366 commit 45cff80
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 37 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,5 @@ venv.bak/
# mkdocs documentation
/site

# Others
.pypi_token
62 changes: 25 additions & 37 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,48 +1,36 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
[tool.poetry]
name = "scSpectra"
version = "0.2.0"
description = "Supervised discovery of interpretable gene programs from single-cell data"
authors = [
{ name = "Russel Z. Kunes", email = "KunesR@mskcc.org" },
{ name = "Thomas Walle", email = "t.walle@dkfz-heidelberg.de" },
"Russel Z. Kunes <KunesR@mskcc.org>",
"Thomas Walle <t.walle@dkfz-heidelberg.de>"
]
maintainers = [
{ name = "Russel Z. Kunes", email = "KundesR@mskcc.org" },
{ name = "Tobias Krause", email = "krauset@mskcc.org" }
]
dependencies = [
"numpy>=1.20.3",
"scipy>=1.7.3",
"scanpy>=1.8.2",
"torch>=1.10.1",
"opt-einsum>=3.3.0",
"pandas>=1.3.5",
"tqdm>=4.62.3",
"pyvis>=0.1.9",
"Russel Z. Kunes <KundesR@mskcc.org>",
"Tobias Krause <krauset@mskcc.org>"
]
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
license = "MIT"
packages = [
{include = "Spectra", from="src"},
{include = "Spectra/load", from="src"},
]

[tool.setuptools.packages.find]
where = ["src"]
[tool.poetry.dependencies]
python = "^3.8"
numpy = "^1.20.3"
scipy = "^1.7.3"
scanpy = "^1.8.2"
torch = "^1.10.1"
opt-einsum = "^3.3.0"
pandas = "^1.3.5"
tqdm = "^4.62.3"
pyvis = "^0.1.9"

[tools.setuptools]
include-package-data = true
packages = ["Spectra", "Spectra.load"]

[tool.setuptools.package-data]
default_gene_sets = ["Spectra/data/default_gene_sets.json"]
sample_data = ["Spectra/data/sample_data.json"]

[project.urls]
"Publication" = "https://www.nature.com/articles/s41587-023-01940-3"
"bioRxiv" = "https://www.biorxiv.org/content/10.1101/2022.12.20.521311v1"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.urls]
Publication = "https://www.nature.com/articles/s41587-023-01940-3"
bioRxiv = "https://www.biorxiv.org/content/10.1101/2022.12.20.521311v1"

0 comments on commit 45cff80

Please sign in to comment.