Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
61 lines (52 loc) · 2.12 KB
/
Copy pathpyproject.toml
File metadata and controls
61 lines (52 loc) · 2.12 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
[build-system]
requires = ["hatchling>=1.24"]
build-backend = "hatchling.build"
# One source of truth for the number. The package exposes __version__, the CLI prints
# it and the HTTP User-Agent carries it, so a second copy here would drift the moment
# one of them was bumped alone.
[tool.hatch.version]
path = "src/newsscore/_version.py"
[project]
name = "newsscore"
dynamic = ["version"]
description = "News sentiment scoring for stocks. Mainstream news APIs in, a pluggable scorer (TypeSafe Jev by default), one score per symbol out."
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
license-files = ["LICENSE"]
authors = [{ name = "Huaiyuan Ma", email = "huaiyuanma2003@gmail.com" }]
keywords = ["finance", "news", "sentiment", "jev", "typesafe", "quant"]
classifiers = [
"Programming Language :: Python :: 3",
"Framework :: AsyncIO",
"Intended Audience :: Financial and Insurance Industry",
"Topic :: Office/Business :: Financial :: Investment",
]
dependencies = [
"httpx>=0.27",
"typer>=0.12",
"platformdirs>=4",
]
[project.urls]
Homepage = "https://github.com/mahynotch/newsscore"
Repository = "https://github.com/mahynotch/newsscore"
Issues = "https://github.com/mahynotch/newsscore/issues"
[project.optional-dependencies]
# The Jev scorer is the only thing that imports typesafe-sdk; everything else
# (sources, aggregation, the keyword scorer, your own score_fn) works without it.
jev = ["typesafe-sdk>=0.6"]
dev = ["pytest>=8", "pytest-asyncio>=0.23", "respx>=0.21"]
# `uv run` / `uv sync` install this group by default, so the Jev SDK and the test
# tools survive syncing. pip users get the same via `pip install ".[jev,dev]"`.
[dependency-groups]
dev = ["typesafe-sdk>=0.6", "pytest>=8", "pytest-asyncio>=0.23", "respx>=0.21"]
[project.scripts]
newsscore = "newsscore.cli:app"
[tool.hatch.build.targets.sdist]
# Lockfile and design notes are for contributors (in git), not for installers.
exclude = ["uv.lock", "PLAN.md", ".env.example", ".gitattributes", ".gitignore"]
[tool.hatch.build.targets.wheel]
packages = ["src/newsscore"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]