Skip to content

Commit be1a226

Browse files
committed
Use pyproject only
1 parent 1b24cbe commit be1a226

File tree

4 files changed

+79
-89
lines changed

4 files changed

+79
-89
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# auto generated by setuptools_scm and configured in pyproject.toml
2+
bio2zarr/_version.py
3+
14
# Byte-compiled / optimized / DLL files
25
__pycache__/
36
*.py[cod]

pyproject.toml

Lines changed: 76 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,87 @@
1+
[build-system]
2+
requires = ["setuptools >= 69", "setuptools_scm[toml] >= 8"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "bio2zarr"
7+
description = "Convert bioinformatics data to Zarr"
8+
readme = "README.md"
9+
license = {file = "LICENSE"}
10+
authors = [
11+
{name = "sgkit Developers", email = "project@pystatgen.org"},
12+
]
13+
dependencies = [
14+
"numpy",
15+
"zarr >= 2.17",
16+
"click",
17+
"tabulate",
18+
"tqdm",
19+
"humanfriendly",
20+
# cyvcf2 also pulls in coloredlogs and click",
21+
# colouredlogs pulls in humanfriendly",
22+
"cyvcf2",
23+
"bed_reader",
24+
]
25+
requires-python = ">=3.9"
26+
classifiers = [
27+
"Development Status :: 3 - Alpha",
28+
"License :: OSI Approved :: Apache, Software License",
29+
"Operating System :: OS Independent",
30+
"Intended Audience :: Science/Research",
31+
"Programming Language :: Python",
32+
"Programming Language :: Python :: 3",
33+
"Programming Language :: Python :: 3.9",
34+
"Programming Language :: Python :: 3.10",
35+
"Programming Language :: Python :: 3.11",
36+
"Topic :: Scientific/Engineering"
37+
]
38+
dynamic = ["version"]
39+
40+
[project.urls]
41+
repository = "https://github.com/sgkit-dev/bio2zarr"
42+
documentation = "https://sgkit-dev.github.io/bio2zarr/intro.html"
43+
44+
[project.scripts]
45+
vcf2zarr = "bio2zarr.cli:vcf2zarr"
46+
plink2zarr = "bio2zarr.cli:plink2zarr"
47+
vcf_partition = "bio2zarr.cli:vcf_partition"
48+
49+
[tool.setuptools]
50+
packages = ["bio2zarr"]
51+
52+
[tool.setuptools_scm]
53+
version_file = "bio2zarr/_version.py"
54+
55+
[tool.pytest.ini_options]
56+
testpaths = "tests"
57+
addopts = "--cov=bio2zarr --cov-report term-missing"
58+
159
[tool.ruff]
60+
# Assume Python 3.9
61+
target-version = "py39"
62+
263
# Same as Black.
364
line-length = 88
465
indent-width = 4
566

6-
# Assume Python 3.8
7-
target-version = "py38"
8-
967
[tool.ruff.lint]
1068
select = ["E", "F", "B", "W", "I", "N", "UP", "A", "RUF", "PT"]
1169
#Allow uppercase names for e.g. call_AD
1270
ignore = ["N806", "N802", "A001", "A002"]
1371

1472
fixable = ["ALL"]
15-
unfixable = []
73+
unfixable = []
74+
75+
[tool.ruff.lint.isort]
76+
default-section = "third-party"
77+
known-first-party = ["sgkit"]
78+
known-third-party = [
79+
"hypothesis",
80+
"msprime",
81+
"numpy",
82+
"pandas",
83+
"pytest",
84+
"setuptools",
85+
"sgkit",
86+
"zarr"
87+
]

setup.cfg

Lines changed: 0 additions & 76 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)