-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
103 lines (93 loc) · 2.48 KB
/
pyproject.toml
File metadata and controls
103 lines (93 loc) · 2.48 KB
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
[project]
# name = "targetdb"
name = "ets_target_database"
description = "PFS target database (targetDB) tools"
readme = "README.md"
requires-python = ">=3.11, <3.13"
license = "MIT"
license-files = ["LICENSE"]
authors = [{ name = "Masato Onodera", email = "monodera@naoj.org" }]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Database",
"Topic :: Scientific/Engineering :: Astronomy",
]
dependencies = [
"alembic",
"astropy",
"loguru",
"numpy>=2.0",
"openpyxl",
"pandas",
"psycopg2-binary",
"pyarrow",
"requests",
"sqlalchemy",
# "setuptools",
"sqlalchemy-utils",
"tabulate",
# "wheel",
'tomli >= 1.1.0 ; python_version < "3.11"',
"typer",
]
# version = "0.1.0"
dynamic = ["version"]
[project.urls]
homepage = "https://github.com/Subaru-PFS/ets_target_database"
source = "https://github.com/Subaru-PFS/ets_target_database"
[project.scripts]
pfs-targetdb-cli = "targetdb.cli.cli_main:app"
[project.optional-dependencies]
dev = ["ipython", "pytest", "black", "ruff", "setuptools-scm>=8.0"]
doc = ["mkdocs<2", "mkdocs-material[imaging]"]
[build-system]
requires = ["setuptools>=64", "setuptools-scm>=8.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 88
[tool.pdm.scripts]
serve-doc = { shell = "mkdocs serve", help = "Start the dev server for doc preview" }
build-doc = { shell = "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.ruff]
target-version = "py312"
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.setuptools]
package-dir = { "" = "src" }
include-package-data = true
[tool.setuptools_scm]
version_file = "src/targetdb/_version.py"
tag_regex = "^v\\.?(\\d+\\.\\d+\\.\\d+)$"