-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
112 lines (96 loc) · 3.07 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
[tool.poetry]
name = "maser4py"
version = "0.15.3"
description = "maser4py offers tools to handle low frequency radioastronomy data"
authors = ["Baptiste CECCONI <baptiste.cecconi@obspm.fr>", "Xavier BONNIN <xavier.bonnin@obspm.fr>", "Sonny LION <sonny.lion@obspm.fr>", "Alan Loh <alan.loh@obspm.fr>", "Quynh Nhu Nguyen <quynh-nhu.nguyen@obspm.fr>"]
readme = "README.md"
# be careful to format the license correctly so that Zenodo can use it as metadata
# valid licenses are listed here : https://zenodo.org/api/licenses/
license = "GPL-3.0"
homepage = "https://pypi.org/project/maser4py"
repository = "https://github.com/maserlib/maser4py"
keywords = ["maser4py", "data science", "radioastronomy"]
# handle namespace with poetry
packages = [
{ include = "maser", from = "src" },
]
[tool.poetry.urls]
"Documentation" = "https://maser.pages.obspm.fr/maser4py"
"Tracker" = "https://gitlab.obspm.fr/maser/maser4py/-/issues"
# [[tool.poetry.source]]
# name = "gitlab_obspm"
# url = "https://gitlab.obspm.fr/api/v4/projects/2910/packages/pypi/simple"
[tool.poetry.scripts]
maser = 'maser.script:main'
[tool.poetry.dependencies]
python = ">=3.8,<4"
jupyter = {version = "^1.0.0", optional = true}
jupytext = {version = "^1.13.8", optional = true}
spacepy = {version = "^0.4.0", optional = true}
maser-data = {version = "^0.3.0", optional = true}
maser-plot = {version = "^0.2.0", optional = true}
maser-tools = {version = "^0.1.0", optional = true}
[tool.poetry.extras]
jupyter = ["jupyter", "jupytext"]
data = ["maser-data", "spacepy"]
plot = ["maser-plot"]
tools = ['maser-tools']
all = ["jupyter", "jupytext", "spacepy", "maser-data", "maser-plot", "maser-tools"]
[tool.poetry.dev-dependencies]
pytest = "^7.0.1"
pytest-cov = "^3.0.0"
pre-commit = "^2.17.0"
requests = "^2.27.1"
Sphinx = "^5.0.2"
sphinx-rtd-theme = "^1.0.0"
tomli = "^2.0.1"
myst-parser = "^0.18.0"
mypy = "^0.961"
black = "^22.6.0"
"maser-tools" = { path = "src/maser_tools", develop = true }
"maser-das2" = { path = "src/maser_das2", develop = true }
"maser-data" = { path = "src/maser_data", develop = true, extras = ["spacepy"]}
"maser-plot" = { path = "src/maser_plot", develop = true }
#[[tool.poetry.source]]
#name = "gitlab_obspm"
#url = "https://gitlab.obspm.fr/api/v4/projects/2910/packages/pypi/simple"
#secondary = true
[tool.black]
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.pytest.ini_options]
markers = [
"test_data_required: mark tests that require downloading test data",
"nenupy_required: mark tests that require the nenupy package",
"spacepy_required: mark tests that require the spacepy package",
]
[tool.jupytext]
formats = "ipynb,py:percent"
# remove notebooks metadata from scripts
notebook_metadata_filter = "-all"
cell_metadata_filter = "-all"
[[tool.mypy.overrides]]
module = [
"astropy.*",
"spacepy.*",
"nenupy.*",
"matplotlib.*",
"numpy.*",
"xarray.*",
]
ignore_missing_imports = true
[build-system]
requires = ["poetry>=1.1.4", "setuptools"]
build-backend = "poetry.core.masonry.api"