-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (120 loc) · 3.8 KB
/
Copy pathpyproject.toml
File metadata and controls
134 lines (120 loc) · 3.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "snputils"
dynamic = ["version"] # Version is set by setuptools_scm and determined by the latest git tag
description = "Python toolkit for fast genotype I/O, ancestry analysis, population-genetics statistics, genotype QC, GWAS, and visualization"
readme = "README.md"
requires-python = ">=3.9"
license = {text = "BSD 3-Clause License"}
keywords = ["bioinformatics", "genomics", "population genetics", "genotype", "ancestry", "VCF", "BCF", "BGEN", "PLINK", "PGEN", "GWAS"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"numpy<2; python_version < '3.10'",
"numpy; python_version >= '3.10'",
"pandas",
"pandas-stubs",
"scikit-learn",
"Pgenlib",
"matplotlib",
"joblib",
"tqdm",
"polars>=1.34",
"plotly",
"plotly_express",
"nbformat",
"adjustText",
"zstandard",
"cairosvg"
]
[project.optional-dependencies]
torch = ["torch"]
demos = ["notebook"]
tests = ["tox", "pytest", "pytest-cov"]
docs = [
"sphinx>=7.2",
"furo>=2023.9.10",
"myst-parser>=2.0",
"myst-nb>=1.0",
"sphinx-copybutton>=0.5",
"sphinx-design>=0.6",
"sphinx-sitemap>=2.8",
]
benchmark = ["pytest", "pytest-benchmark", "memory_profiler",
"pandas-plink", "pysam", "scikit-allel", "sgkit[plink,bgen]", "zarr<3", "hail>=0.2.130", "pysnptools[bgen]", "bgen>=1.9.9", "Pgenlib", "cyvcf2", "plinkio", "PyVCF3"]
grg = ["pygrgl>=2.9"]
[project.urls]
"Homepage" = "https://snputils.org"
"Documentation" = "https://docs.snputils.org"
"Tutorials" = "https://docs.snputils.org/tutorials/index.html"
"Changelog" = "https://docs.snputils.org/changelog.html"
"Paper" = "https://doi.org/10.64898/2026.02.28.708618"
"Source Code" = "https://github.com/AI-sandbox/snputils"
"Issue Tracker" = "https://github.com/AI-sandbox/snputils/issues"
[project.scripts]
snputils = "snputils.tools.cli:main"
[tool.setuptools.packages.find]
where = ["."]
include = ["snputils*"]
[tool.setuptools.package-data]
"snputils.snp" = ["models/*"]
[[tool.setuptools.ext-modules]]
name = "snputils.snp.io.read._bcf"
sources = ["snputils/snp/io/read/_bcf.c"]
libraries = ["pthread"]
[[tool.setuptools.ext-modules]]
name = "snputils.snp.io.read._vcf"
sources = ["snputils/snp/io/read/_vcf.c"]
libraries = ["pthread"]
[[tool.setuptools.ext-modules]]
name = "snputils.snp.io.write._bcf"
sources = ["snputils/snp/io/write/_bcf.c"]
libraries = ["z"]
[[tool.setuptools.ext-modules]]
name = "snputils.snp.io._bgen"
sources = ["snputils/snp/io/_bgen.c"]
libraries = ["z", "pthread"]
[tool.setuptools_scm]
[tool.cibuildwheel]
build = "cp39-* cp310-* cp311-* cp312-* cp313-* cp314-*"
skip = "*-musllinux_* *-win*"
test-command = "python {project}/.github/scripts/wheel_smoke_test.py"
[tool.mypy]
python_version = "3.9"
ignore_missing_imports = true
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py39, py314
isolated_build=true
[gh-actions]
python =
3.9: py39
3.14: py314
[testenv]
changedir = {envtmpdir}
passenv =
CI
GITHUB_ACTIONS
extras =
tests
torch
grg
commands =
python -c "import snputils.snp.io.read._bcf; import snputils.snp.io.write._bcf"
python -m pytest -vv --color=yes --cov=snputils --cov-report=xml:{toxinidir}/coverage.xml --pyargs snputils
"""