-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
149 lines (138 loc) · 4.19 KB
/
Copy pathpyproject.toml
File metadata and controls
149 lines (138 loc) · 4.19 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
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
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pyASDReader"
dynamic = ["version"]
description = "A Python library for reading and parsing all versions of ASD binary spectral files"
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.8"
license = {file = "LICENSE"}
keywords = ["ASD", "spectral files", "spectroradiometer", "remote sensing"]
authors = [
{name = "Kai Cao", email = "caokai_cgs@163.com"}
]
maintainers = [
{name = "Kai Cao", email = "caokai_cgs@163.com"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Information Analysis",
"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 :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"numpy>=1.20.0,<3.0.0", # Upper bound: avoid breaking changes in numpy 3.x
]
[project.optional-dependencies]
dev = [
# Testing
"pytest>=6.0.0,<9.0.0",
"pytest-cov>=2.10.0,<7.0.0",
"pytest-html>=3.0.0,<5.0.0",
"coverage>=5.0.0,<8.0.0",
# Code quality
"flake8>=3.8.0,<8.0.0",
"black>=21.0.0,<26.0.0",
"isort>=5.0.0,<6.0.0",
# Build tools
"build>=0.7.0,<2.0.0",
"twine>=3.0.0,<7.0.0",
# Development utilities
"pre-commit>=2.15.0,<5.0.0",
"tox>=3.20.0,<5.0.0",
# CHANGELOG validation
"keepachangelog>=2.0.0,<3.0.0",
]
docs = [
"sphinx>=4.0.0,<9.0.0",
"sphinx-rtd-theme>=1.0.0,<4.0.0",
]
all = [
# Include all optional dependencies (with version upper bounds)
"pytest>=6.0.0,<9.0.0",
"pytest-cov>=2.10.0,<7.0.0",
"pytest-html>=3.0.0,<5.0.0",
"coverage>=5.0.0,<8.0.0",
"flake8>=3.8.0,<8.0.0",
"black>=21.0.0,<26.0.0",
"isort>=5.0.0,<6.0.0",
"build>=0.7.0,<2.0.0",
"twine>=3.0.0,<7.0.0",
"pre-commit>=2.15.0,<5.0.0",
"tox>=3.20.0,<5.0.0",
"sphinx>=4.0.0,<9.0.0",
"sphinx-rtd-theme>=1.0.0,<4.0.0",
"keepachangelog>=2.0.0,<3.0.0",
]
[project.urls]
Homepage = "https://github.com/KaiTastic/pyASDReader"
Documentation = "https://github.com/KaiTastic/pyASDReader#readme"
Repository = "https://github.com/KaiTastic/pyASDReader"
Source = "https://github.com/KaiTastic/pyASDReader"
Issues = "https://github.com/KaiTastic/pyASDReader/issues"
"Bug Reports" = "https://github.com/KaiTastic/pyASDReader/issues"
Changelog = "https://github.com/KaiTastic/pyASDReader/blob/main/CHANGELOG.md"
PyPI = "https://pypi.org/project/pyASDReader/"
[tool.setuptools]
packages = ["pyASDReader"]
package-dir = {"pyASDReader" = "src"}
[tool.setuptools.package-data]
"*" = ["*.mat"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--verbose",
"--cov=pyASDReader",
"--cov-report=html",
"--cov-report=term-missing",
]
[tool.coverage.run]
source = ["pyASDReader"]
omit = ["*/tests/*", "*/__pycache__/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
[tool.setuptools_scm]
version_scheme = "guess-next-dev"
local_scheme = "no-local-version"
# Fallback version indicates uninitialized/non-git environment
# The actual version is determined by git tags via setuptools_scm
fallback_version = "0.0.0"
[tool.black]
line-length = 120
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.pytest_cache
| __pycache__
| build
| dist
| htmlcov
)/
'''
[tool.isort]
profile = "black"
line_length = 120
skip_gitignore = true
known_first_party = ["pyASDReader"]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]