-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (97 loc) · 2.76 KB
/
pyproject.toml
File metadata and controls
109 lines (97 loc) · 2.76 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
[project]
name = "newsdataapi"
description = "Official Python client (SDK) for the Newsdata.io News API — fetch real-time, historical, crypto, and stock-market news via REST, with validation, retries, pagination, and typed exceptions."
dynamic = ["version"]
readme = "README.md"
license = { file = "LICENSE" }
authors = [{ name = "NewsData.io", email = "contact@newsdata.io" }]
requires-python = ">=3.8"
dependencies = [
"requests>=2.25,<3",
]
keywords = [
"news",
"newsdata",
"newsdata-io",
"news-api",
"rest-api",
"api-client",
"python-sdk",
"sdk",
"crypto-news",
"financial-news",
"market-news",
"news-aggregator",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"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",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
[project.urls]
Homepage = "https://newsdata.io"
Documentation = "https://newsdata.io/documentation"
Repository = "https://github.com/bytesview/python-client"
Issues = "https://github.com/bytesview/python-client/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# Single source of truth for the version: __init__.py.
[tool.hatch.version]
path = "src/newsdataapi/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/newsdataapi"]
# PEP 735 dependency groups (uv reads these natively).
[dependency-groups]
dev = [
"pytest>=8",
"pytest-cov>=5",
"responses>=0.25",
"ruff>=0.6",
"mypy>=1.10",
"types-requests",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"integration: live API tests requiring PYTEST_TOKEN env var",
]
# Skip integration tests by default; opt in with `pytest -m integration`
# or `-m ""` to run everything.
addopts = [
"-ra",
"--strict-markers",
"-m", "not integration",
]
[tool.ruff]
line-length = 100
target-version = "py38"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"RET", # flake8-return
"PTH", # flake8-use-pathlib
]
[tool.mypy]
python_version = "3.9"
strict = true
files = ["src/newsdataapi"]