Skip to content

Commit

Permalink
configure build with pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Jul 12, 2024
1 parent f56d5cd commit d55395a
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 57 deletions.
67 changes: 65 additions & 2 deletions server/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,69 @@
[project]
name = "curfu"
authors = [
{name = "Wagner Lab"},
]
readme = "README.md"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.10"
description = "Curation tool for gene fusions"
license = {file = "../LICENSE"}
dependencies = [
"fastapi >= 0.72.0",
"aiofiles",
"asyncpg",
"fusor ~= 0.0.30-dev1",
"sqlparse >= 0.4.2",
"urllib3 >= 1.26.5",
"click",
"jinja2",
"boto3",
]
dynamic = ["version"]

[project.optional-dependencies]
tests = [
"pytest",
"pytest-asyncio >= 0.19.0",
"pytest-cov",
"coverage",
"httpx",
]
dev = [
"psycopg2-binary",
"ruff",
"black",
"pre-commit",
"gene-normalizer ~= 0.1.39",
"pydantic-to-typescript",
]

[project.scripts]
curfu_devtools = "curfu.cli:devtools"
curfu = "curfu.cli:serve"

[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta:__legacy__"
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools_scm]

[tool.pytest.ini_options]
addopts = "--cov=src --cov-report term-missing"
testpaths = ["tests"]

[tool.black]
line-length = 88
Expand Down
50 changes: 0 additions & 50 deletions server/setup.cfg

This file was deleted.

5 changes: 0 additions & 5 deletions server/setup.py

This file was deleted.

0 comments on commit d55395a

Please sign in to comment.