-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
165 lines (152 loc) · 4.17 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
[project]
name = "pfs_target_uploader"
dynamic = ["version"]
description = "Target uploader for PFS openuse"
authors = [{ name = "Masato Onodera", email = "[email protected]" }]
dependencies = [
"panel==1.4.5",
"astropy>=5.3.1",
"astroplan>=0.9",
"colorcet>=3.0.1",
"datashader>=0.16.0",
"dask>=2023.10.1",
"fontawesome-markdown @ https://github.com/bmcorser/fontawesome-markdown/archive/master.zip",
"gurobipy>=10,<11",
"holoviews>=1.17.1",
"hvplot>=0.8.4",
"loguru>=0.7.2",
"markdown-it-py>=3.0.0",
"mkdocs-macros-plugin>=0.7.0",
"mkdocs-material[imaging]>=9.5.4",
"mkdocs-video>=1.5.0",
"mkdocs>=1.4.3",
"multiprocess>=0.70.15",
"myst-parser>=2.0.0",
"numpy<2.0.0",
"pandas>=2.0.3",
"python-dotenv>=1.0.0",
"scikit-learn>=1.3.0",
"seaborn>=0.12.2",
"spatialpandas>=0.4.9",
"typer>=0.12.3",
"pip>=23.2.1",
"pybind11>=2.11.1",
"setuptools>=68.2.2",
"wheel>=0.41.2",
"qplan @ git+https://github.com/naojsoft/qplan.git",
"ets-fiber-assigner @ git+https://github.com/Subaru-PFS/ets_fiberalloc.git",
"ics-cobraOps @ git+https://github.com/Subaru-PFS/ics_cobraOps.git",
"pfs-utils @ git+https://github.com/Subaru-PFS/pfs_utils.git",
]
requires-python = ">=3.10,<3.13"
readme = "README.md"
license = { text = "MIT" }
[project.scripts]
pfs-uploader-cli = "pfs_target_uploader.cli.cli_main:app"
[build-system]
requires = ["setuptools", "wheel", "pybind11"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
package-dir = { "" = "src" }
include-package-data = true
[tool.setuptools.dynamic]
version = { attr = "pfs_target_uploader.__version__" }
[tool.pdm.dev-dependencies]
dev = [
"-e git+https://github.com/Subaru-PFS/ics_cobraCharmer.git#egg=ics-cobraCharmer",
"black>=23.7.0",
"ruff",
"flake8>=6.1.0",
"ipython>=8.14.0",
]
profilers = ["pyinstrument>=4.6.0", "snakeviz>=2.2.0", "memray>=1.10.0"]
[tool.pdm.scripts]
serve-app = { cmd = [
"pdm",
"run",
"pfs-uploader-cli",
"start-app",
"uploader",
"--port",
"5008",
"--allow-websocket-origin",
"localhost:5008",
"--allow-websocket-origin",
"localhost:8080",
"--prefix=uploader/",
"--static-dirs",
"doc=docs/site",
"--static-dirs",
"data=data",
"--max-upload-size=500",
"--autoreload",
], help = "Start the dev server for app and admin pages" }
serve-app-admin = { cmd = [
"pdm",
"run",
"pfs-uploader-cli",
"start-app",
"admin",
"--port",
"5009",
"--allow-websocket-origin",
"localhost:5009",
"--prefix=uploader-admin/",
"--static-dirs",
"doc=docs/site",
"--static-dirs",
"data=data",
"--max-upload-size=100",
"--autoreload",
], help = "Start the dev server for app and admin pages" }
serve-doc = { shell = "cd docs && mkdocs serve", help = "Start the dev server for doc preview" }
build-doc = { shell = "cd docs && mkdocs build", help = "Build documentation" }
gen-requirements = { cmd = [
"pdm",
"export",
"--format",
"requirements",
"--without-hashes",
"--pyproject",
"--dev",
"--output",
"requirements.txt",
"--verbose",
], help = "Generate requirements.txt" }
# [tool.pdm.options]
# add = ["--no-isolation"]
# install = ["--no-isolation"]
[tool.ruff]
target-version = "py39"
line-length = 88
# line-length = 128
[tool.ruff.lint]
ignore = [
"F401", # module imported but unused
"F841", # local variable is assigned to but never used
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
# select = [
# "E", # pycodestyle errors
# "W", # pycodestyle warnings
# "F", # pyflakes
# "I", # isort
# "B", # flake8-bugbear
# "C4", # flake8-comprehensions
# "UP", # pyupgrade
# ]
[tool.black]
line-length = 88
target-version = ["py39", "py310", "py311"]
# [tool.pdm.options]
# add = ["--no-isolation", "--no-self"]
# install = ["--no-isolation", "--no-self"]
# add = ["--no-isolation"]
# install = ["--no-isolation"]
# lock = ["--no-cross-platform"]
# [tool.black]
# line-length = 120
# target-version = ["py39", "py310", "py311"]
# target-version = ["py311"]