-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
114 lines (103 loc) · 2.96 KB
/
Copy pathpyproject.toml
File metadata and controls
114 lines (103 loc) · 2.96 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
[project]
name = "google-news-api"
version = "0.0.10"
description = "Unofficial Python client for Google News RSS with sync, async, URL decoding, caching, and MCP support."
authors = [
{name = "Paolo Mazza",email = "mazzapaolo2019@gmail.com"}
]
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.9"
keywords = [
"google-news",
"google-news-api",
"google-news-rss",
"news-api",
"rss",
"rss-client",
"python-news",
"async",
"httpx",
"mcp",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"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",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"httpx (>=0.28.1,<0.29.0)",
"feedparser (>=6.0.11,<7.0.0)",
"selectolax (>=0.3.29,<0.4.0)",
"tqdm (>=4.67.1,<5.0.0)",
]
[project.urls]
Homepage = "https://github.com/ma2za/google-news-api"
Repository = "https://github.com/ma2za/google-news-api"
Issues = "https://github.com/ma2za/google-news-api/issues"
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.group.dev.dependencies]
isort = "^6.0.1"
black = {version = ">=26.3.1,<27.0.0", python = ">=3.10"}
flake8 = "^7.2.0"
pytest = {version = ">=9.0.3,<10.0.0", python = ">=3.10"}
pytest-cov = {version = ">=4.1.0", python = ">=3.10"}
pytest-asyncio = {version = ">=0.24", python = ">=3.10"}
python-dateutil = "^2.8.2"
tqdm = "^4.66.2"
[tool.black]
line-length = 88
target-version = ['py39']
skip-string-normalization = true # This makes Black preserve single quotes
include = '\.pyi?$'
extend-exclude = '''
# A regex preceded with ^/ will apply only to files and directories
# in the root of the project.
^/docs
'''
[tool.isort]
profile = "black"
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 88
skip = ["docs"]
known_first_party = ["google_news_api"]
known_third_party = ["httpx", "feedparser", "selectolax", "dateutil", "pytest"]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
[tool.pytest.ini_options]
addopts = "--cov=google_news_api --cov-report=term-missing --cov-report=html"
testpaths = ["tests"]
asyncio_mode = "auto"
markers = [
"integration: tests that make live network calls",
]
[tool.coverage.run]
branch = true
source = ["google_news_api"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"pass",
"raise ImportError",
]
[tool.uv.workspace]
members = [
"mcp_server",
]