-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathpyproject.toml
More file actions
201 lines (184 loc) · 5.09 KB
/
pyproject.toml
File metadata and controls
201 lines (184 loc) · 5.09 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
[project]
name = "reader"
authors = [{name = "lemon24"}]
description = "A Python feed reader library."
readme = "README.rst"
license = {text = "BSD-3-Clause"}
keywords = [
"atom", "cdf", "feed", "rdf", "rss", "json feed",
"web feed", "podcast", "feed reader", "feed aggregator",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"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",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Internet",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content :: News/Diary",
"Topic :: Internet :: WWW/HTTP :: Indexing/Search",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
"Typing :: Typed",
]
requires-python = ">=3.11"
dependencies = [
"typing-extensions>=4",
"feedparser>=6",
"requests>=2.18",
# for _http_utils
"werkzeug>2",
# for JSON Feed date parsing
"iso8601>=1",
# search
"beautifulsoup4>=4.5",
]
dynamic = ["version"]
[project.urls]
Documentation = "https://reader.readthedocs.io/"
Repository = "https://github.com/lemon24/reader"
Issues = "https://github.com/lemon24/reader/issues"
Changelog = "https://reader.readthedocs.io/en/latest/changelog.html"
[project.optional-dependencies]
# UNSTABLE
all = ["reader[cli,app,unstable-plugins]"]
cli = [
"click>=7",
]
app = [
"flask>=0.10",
"humanize>=4",
# for config
"PyYAML",
# for v2
"WTForms",
"Flask-WTF",
"jinja2-fragments",
]
# mushed together for convenience
unstable-plugins = [
# enclosure-tags
"requests",
"mutagen",
# preview-feed-list
"requests",
"beautifulsoup4",
"blinker>=1.4",
# sqlite-releases
"beautifulsoup4",
# timer
"tabulate",
]
[dependency-groups]
tests = [
"pytest>=9",
"pytest-randomly",
"pytest-rerunfailures",
"coverage",
"requests-mock",
# mechanicalsoup hard-depends on lxml (see below)
'mechanicalsoup; (implementation_name != "pypy" and python_version <= "3.14")',
"requests-wsgi-adapter",
# we want to test search with all known bs4 parsers.
# lxml usually does not have recent PyPy wheels.
# lxml usually does not have pre-relase CPython wheels.
'lxml; (implementation_name != "pypy" and python_version <= "3.14")',
"html5lib",
# for bench.py
'numpy; (implementation_name != "pypy" and os_name == "posix" and python_version <= "3.14")',
]
typing = [
'mypy',
"types-requests",
"types-beautifulsoup4",
]
docs = [
"sphinx",
# TODO: remove when https://github.com/sphinx-doc/sphinx/issues/14186 is solved
"roman_numerals<4.1",
"sphinx-rtd-theme",
"click>=7",
"sphinx-click",
"sphinxcontrib-log-cabinet",
# for read_configuration used in conf.py
"setuptools",
]
dev = [
{include-group = "tests"},
{include-group = "typing"},
{include-group = "docs"},
"tox",
"pre-commit",
"build",
"twine",
]
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.dynamic]
version = {attr = "reader.__version__"}
[tool.pytest.ini_options]
addopts = "--strict-markers"
markers = [
"slow: mark a test as slow.",
"requires_lxml: mark a test to only run in places where we have lxml.",
"apptest: mark a test as a web app test (skipped sometimes).",
"noscheduled: force update_feeds(scheduled=...) to false.",
"noautoclose: skip 'autoclose' autouse fixture for a test."
]
filterwarnings = [
"ignore:No parser was explicitly specified::reader._storage._html_utils",
]
testpaths = ["tests"]
[tool.coverage.run]
branch = true
source = ["reader", "tests"]
omit = [
"src/reader/_vendor/*",
]
# TODO: remove when https://github.com/nedbat/coveragepy/issues/1987 is solved
core = "ctrace"
[tool.coverage.paths]
source = ["src", "*/site-packages"]
[tool.mypy]
files = ["src"]
show_error_codes = true
pretty = true
strict = true
[[tool.mypy.overrides]]
module = [
"reader.__main__",
"reader._cli",
"reader._config_utils",
"reader._app",
"reader._app.*",
"reader._plugins.*",
"reader.plugins.enclosure_dedupe",
"reader.plugins.entry_dedupe",
"reader.plugins.ua_fallback",
"reader.plugins.readtime",
"reader.plugins.mark_as_read",
"reader._vendor.feedparser.*",
]
ignore_errors = true
[tool.isort]
profile = "black"
py_version = 311
src_paths = ["src", "tests"]
extend_skip = ["examples", "src/reader/_vendor"]
skip_gitignore = true
filter_files = true
force_single_line = true
order_by_type = false