Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
82 lines (72 loc) · 2.38 KB
/
Copy pathpyproject.toml
File metadata and controls
82 lines (72 loc) · 2.38 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
[build-system]
requires = ["hatchling>=1.21"]
build-backend = "hatchling.build"
[project]
name = "mound"
dynamic = ["version"]
description = "A CLI and Python toolkit for acquiring, analyzing and visualizing MLB pitch-level data."
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
authors = [{ name = "Matt Stiles" }]
keywords = ["mlb", "baseball", "cli", "sports", "statcast", "pitching"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: MIT License",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Science/Research",
"Environment :: Console",
"Topic :: Utilities",
"Topic :: Games/Entertainment",
"Topic :: Scientific/Engineering :: Visualization",
]
dependencies = [
"requests>=2.31",
"pandas>=2.0",
"matplotlib>=3.8",
"typer>=0.12",
]
[project.optional-dependencies]
parquet = ["pyarrow>=14.0"]
viz = ["scipy>=1.10"]
dev = ["pytest>=8.0", "responses>=0.25", "ruff>=0.6", "build>=1.0", "twine>=5.0"]
[project.scripts]
mound = "mound.cli:app"
[project.urls]
Homepage = "https://github.com/stiles/mound"
Repository = "https://github.com/stiles/mound"
Issues = "https://github.com/stiles/mound/issues"
# The version is a single literal, in mound/__init__.py. A second copy here
# drifts: what `mound --version` prints and what the wheel is named stop
# agreeing, and the mismatch only surfaces after the release is spent.
[tool.hatch.version]
path = "mound/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["mound"]
# Hatchling skips files the root .gitignore lists, but not ones a nested
# .gitignore lists, so site/node_modules and site/.next were landing in the
# sdist (337 MB of it, past PyPI's own limit). Naming what belongs keeps the
# sdist to the package, its tests and its docs no matter what else grows in
# the repo root. Every pattern is anchored with a leading slash: an
# unanchored "README.md" matches at any depth, which pulls in a README from
# each of a thousand npm packages.
[tool.hatch.build.targets.sdist]
include = [
"/mound",
"/tests",
"/docs",
"/examples",
"/scripts",
"/README.md",
"/CHANGELOG.md",
"/ROADMAP.md",
"/LICENSE",
]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B"]
[tool.pytest.ini_options]
testpaths = ["tests"]