Skip to content

Commit

Permalink
build: configure build with pyproject.toml (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson authored and korikuzma committed Apr 10, 2024
1 parent 20133b6 commit 7fe7387
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 137 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-cqa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
env:
SEQREPO_ROOT_DIR: ./tests/data/seqrepo/latest

Expand Down
6 changes: 0 additions & 6 deletions .style.yapf

This file was deleted.

101 changes: 101 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
[project]
name = "ga4gh.vrs"
authors = [
{name = "Larry Babb", email = "lbabb@broadinstitute.org"},
{name = "Reece Hart", email = "reecehart@gmail.com"},
{name = "Andreas Prlic", email = "andreas.prlic@gmail.com"},
{name = "Alex Wagner", email = "alex.wagner@nationwidechildrens.org"},
]
readme = "README.md"
description = "GA4GH Variation Representation Specification (VRS) reference implementation"
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Healthcare Industry",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
]
keywords = [
"bioinformatics",
"ga4gh",
"genomics",
"hgvs",
"spdi",
"variation"
]
requires-python = ">=3.8"
dynamic = ["version"]
dependencies = [
"pydantic~=2.1",
"bioutils",
"requests",
]

[project.optional-dependencies]
extras = [
"psycopg2-binary",
"biocommons.seqrepo>=0.5.1",
"bioutils>=0.5.2",
"hgvs>=1.4",
"dill~=0.3.7",
"click",
]
dev = [
# tests
"pytest",
"pytest-cov",
"pytest-vcr",
"vcrpy",
"pyyaml",
# style
"pylint",
"yapf",
# docs
"sphinx",
"sphinx_rtd_theme",
"restview",
]
notebooks = [
"jupyter",
"tabulate",
"pyyaml"
]

[project.urls]
Homepage = "https://github.com/ga4gh/vrs-python"
Documentation = "https://github.com/ga4gh/vrs-python"
Changelog = "https://github.com/ga4gh/vrs-python/releases"
Source = "https://github.com/ga4gh/vrs-python"
"Bug Tracker" = "https://github.com/ga4gh/vrs-python/issues"

[build-system]
requires = ["setuptools>=65.3", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"

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

[tool.setuptools_scm]

[tool.pytest.ini_options]
addopts = "--cov-report=term-missing --cov=ga4gh"
testpaths = ["tests", "src"]
doctest_optionflags = "ALLOW_UNICODE ALLOW_BYTES ELLIPSIS IGNORE_EXCEPTION_DETAIL NORMALIZE_WHITESPACE"

[tool.yapf]
based_on_style = "pep8"
column_limit = 120
spaces_before_comment = 4
split_before_logical_operator = true
split_before_named_assigns = true
127 changes: 0 additions & 127 deletions setup.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions setup.py

This file was deleted.

0 comments on commit 7fe7387

Please sign in to comment.