-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
117 lines (110 loc) · 2.27 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
[build-system]
requires = ["setuptools", "setuptools-scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "21cmMC"
description = "An extensible MCMC framework for 21cmFAST."
authors = [
{name="Brad Greig", email="greigb@unimelb.edu.au"},
{name="Steven Murray", email='steven.murray@sns.it'},
]
readme = "README.rst"
requires-python = ">=3.8"
license = {text = "MIT"}
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: Unix",
"Operating System :: POSIX",
"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 :: Implementation :: CPython",
]
dependencies = [
"click",
"numpy",
"cosmoHammer",
"scipy",
"matplotlib>=2.1",
"emcee<3",
"powerbox>=0.5.7",
"cached_property",
"21cmFAST",
"pymultinest",
"ultranest",
"py21cmemu>=1.0.8",
"astropy>=5.2.1",
]
dynamic = [
"version",
]
[project.optional-dependencies]
samplers = [
"pymultinest",
"ultranest",
]
test = [
"pytest",
"pytest-cov",
]
docs = [
"ipython",
"nbsphinx",
"numpydoc",
"sphinx>=1.3",
"furo",
]
dev = [
"pre-commit",
"21cmMC[test,docs]"
]
[tool.setuptools_scm]
write_to = "src/py21cmmc/_version.py"
parentdir_prefix_version = "21CMMC-"
fallback_version = "0.0.0"
# [tool.setuptools]
# packages = ["21CMMC"]
[tool.black]
include = '\.pyi?$'
target-version = ['py38', 'py39', 'py310', 'py311']
exclude = '''
/(
\.git
| \.hg
| \.tox
| \.venv
| _build
| build
| dist
)/
'''
[tool.isort]
line_length = 88
indent = ' '
skip = ['.tox', '.venv', 'build', 'dist']
known_standard_library = ['setuptools', 'pkg_resources']
known_test = 'pytest'
known_first_party = 'py21cmmc'
sections = ['FUTURE','STDLIB','COMPAT','TEST','THIRDPARTY','FIRSTPARTY','LOCALFOLDER']
default_section = 'THIRDPARTY'
profile = 'black'
[tool.pytest.ini_options]
testpaths = "tests"
norecursedirs = [
"migrations",
]
python_files = [
"test_*.py",
"*_test.py",
"tests.py",
]
addopts = [
"-ra",
"--strict",
"--doctest-modules",
"--doctest-glob=\\*.rst",
"--tb=short",
]