-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
132 lines (115 loc) · 2.48 KB
/
pyproject.toml
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
# see https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm>=6.4"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "src/nbis/_version.py"
[project]
name = "nbis_project_admin"
authors = [
{name = "Per Unneberg", email = "[email protected]"},
]
description = "NBIS project admin"
readme = "README.md"
keywords = ["bioinformatics"]
license = {text = "MIT"}
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Bio-Informatics"
]
dependencies = [
'importlib-metadata; python_version>="3.7"',
'click>=8.0',
'jinja2',
'jsonschema',
'pypandoc',
'ruamel.yaml',
'toml'
]
dynamic = ["version"]
[tool.setuptools.dynamic]
version = {attr = "nbis.__version__"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools]
package-data = { nbis = [
"schemas/config.schema.yaml",
"templates/*.j2",
"resources/*"
]}
[project.scripts]
nbis-admin = "nbis.cli:cli"
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-ra -q --doctest-modules"
pythonpath = [
"src"
]
testpaths = [
"tests",
]
filterwarnings = [
"ignore::DeprecationWarning",
]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py310,py311,py312
isolated_build = true
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
[testenv:test]
changedir = tests
deps =
pytest
pytest-coverage
pytest-shutil
pytest-git
pytest-runner
pip>=22.1.0
wheel
commands =
pytest --basetemp="{envtmpdir}" {posargs}
[testenv:project]
allowlist_externals =
git
touch
changedir = {envtmpdir}/project_foo
setenv =
SKIP = lint
deps =
build
pre-commit
pytest
pytest-coverage
pytest-shutil
pytest-git
pytest-runner
pip>=22.1.0
wheel
commands:
nbis-admin init .
git init -b main .
git add -f .
{envpython} -m pip install -e . --no-deps
project_foo
project_foo admin config init
project_foo admin add template -t quarto
project_foo admin add tool my_tool
touch src/project_foo/tools/__init__.py
project_foo admin smk init
project_foo admin smk add
git add . _quarto.yml src/project_foo/tools/my_tool.py
pre-commit
project_foo
nbis-admin --version
"""
[tool.ruff]
exclude = []