/
setup.cfg
201 lines (174 loc) · 4.71 KB
/
setup.cfg
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
[metadata]
name = reader
version = attr: reader.__version__
author = lemon24
description = A Python feed reader library.
long_description = file: README.rst
long_description_content_type = text/x-rst
url = https://github.com/lemon24/reader
license = BSD-3-Clause
project_urls =
Documentation = https://reader.readthedocs.io/
Code = https://github.com/lemon24/reader
Issue tracker = https://github.com/lemon24/reader/issues
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.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
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
keywords = atom, cdf, feed, rdf, rss, json feed, web feed, podcast, feed reader, feed aggregator
[options]
packages = find:
package_dir = = src
include_package_data = true
python_requires = >=3.7
install_requires =
typing-extensions
feedparser>=6
requests>=2.18
# for JSON Feed date parsing
iso8601
[options.packages.find]
where = src
[options.extras_require]
# STABLE
search =
beautifulsoup4>=4.5
# UNSTABLE
cli =
click>=7
# for config
PyYAML
app =
flask>=0.10
humanize
# for config
PyYAML
# UNSTABLE PLUGINS
# mushed together for convenience
unstable-plugins =
# enclosure-tags
requests
mutagen
# preview-feed-list
requests
beautifulsoup4
blinker>=1.4
# sqlite-releases
beautifulsoup4
# DEVELOPMENT
# run tests under one interpreter
tests =
pytest>=4
pytest-randomly
flaky
hypothesis>=5
coverage
pytest-cov
requests-mock
# mechanicalsoup hard-depends on lxml (see below)
mechanicalsoup; implementation_name != "pypy"
requests-wsgi-adapter
# we want to test search with all known bs4 parsers.
# lxml (sometimes) fails to build on pypy, we don't bother.
lxml; implementation_name != "pypy"
html5lib
# for _http_utils tests
werkzeug
# mypy does not work on pypy (yet).
mypy; implementation_name != "pypy"
types-requests
# build docs
docs =
sphinx
sphinx_rtd_theme
click>=7
sphinx-click
sphinx-issues
sphinx-hoverxref
sphinxcontrib-log-cabinet
# https://github.com/readthedocs/sphinx_rtd_theme/issues/1112
# https://github.com/readthedocs/readthedocs.org/issues/7858
docutils==0.16
# other things needed to develop / test locally / make releases
dev =
tox
pre-commit
build
twine
[tool:pytest]
markers =
slow: mark a test as slow.
addopts = --no-success-flaky-report
filterwarnings =
ignore:No parser was explicitly specified::reader._search
[coverage:run]
branch = true
source =
reader
tests
[coverage:paths]
source =
src
*/site-packages
[flake8]
# B = bugbear
# E = pycodestyle errors
# F = flake8 pyflakes
# W = pycodestyle warnings
# B9 = bugbear opinions
select = B, E, F, W, B9
ignore =
# slice notation whitespace, invalid
E203
# line length, handled by bugbear B950
E501
# bugbear line length; too sensitive, triggered for comments
# and docstrings (and adding "noqa" in comments is making things worse);
# black taking care of line length for code should be good enough;
# if enabled, we should set max-line-length = 80 (so up to 88 are allowed)
B950
# bare except, handled by bugbear B001
E722
# bin op line break, invalid
W503
# mistakenly triggered for @overload;
# https://github.com/PyCQA/pyflakes/issues/320 says it should be fixed
# in 2.1.1, but it doesn't seem to be (it's fixed in master though)
F811
per-file-ignores =
# __init__ modules export names
**/__init__.py: F401
exclude = tests/*, docs/*, scripts/*, src/reader/_vendor/*
[mypy]
# empty section required in 0.800; https://github.com/python/mypy/issues/9940
[mypy-reader.__main__]
ignore_errors = True
[mypy-reader._cli]
ignore_errors = True
[mypy-reader._config]
ignore_errors = True
[mypy-reader._app.*]
ignore_errors = True
[mypy-reader._plugins.*]
ignore_errors = True
[mypy-reader.plugins.*]
ignore_errors = True