Skip to content

Commit d5fbea3

Browse files
committed
Update requirements configuration in setup.py.
Remove unused dependencies.
1 parent 73f87ac commit d5fbea3

File tree

2 files changed

+25
-30
lines changed

2 files changed

+25
-30
lines changed

requirements_test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ requests-cache==1.0.1
22
pytest==7.3.1
33
pycountry==22.3.5
44
pytest-env==0.6.2
5+
mock==2.0.0

setup.py

Lines changed: 24 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,6 @@
1111
with open("docs/history.rst") as history_file:
1212
history = history_file.read()
1313

14-
requirements = [
15-
"pytest>=3.0.2",
16-
"requests>=2.11.1",
17-
"le_utils>=0.1.26",
18-
"validators", # TODO: check if this is necessary
19-
"requests_file",
20-
"beautifulsoup4>=4.6.3,<4.9.0", # pinned to match versions in le-pycaption
21-
"selenium==3.0.1",
22-
"yt-dlp>=2023.3.4",
23-
"html5lib",
24-
"cachecontrol==0.12.0",
25-
"lockfile==0.12.2", # TODO: check if this is necessary
26-
"css-html-js-minify==2.2.2",
27-
"mock==2.0.0",
28-
"pypdf2==1.26.0",
29-
"dictdiffer>=0.8.0",
30-
"Pillow==8.4.0",
31-
"colorlog>=4.1.0,<4.2",
32-
"PyYAML>=5.3.1",
33-
"Jinja2>=2.10",
34-
"chardet==4.0.0",
35-
"ffmpy>=0.2.2",
36-
"pdf2image==1.11.0",
37-
"le-pycaption>=2.2.0a1",
38-
"EbookLib>=0.17.1",
39-
"filetype>=1.1.0",
40-
]
41-
42-
4314
setup(
4415
name="ricecooker",
4516
version=ricecooker.__version__,
@@ -58,7 +29,30 @@
5829
]
5930
},
6031
include_package_data=True,
61-
install_requires=requirements,
32+
install_requires=[
33+
"requests>=2.11.1",
34+
"le_utils>=0.1.26",
35+
"requests_file",
36+
"beautifulsoup4>=4.6.3,<4.9.0", # pinned to match versions in le-pycaption
37+
"selenium==3.0.1",
38+
"yt-dlp>=2023.3.4",
39+
"html5lib",
40+
"cachecontrol==0.12.0",
41+
"lockfile==0.12.2", # This is needed, but not specified as a dependency by cachecontrol
42+
"css-html-js-minify==2.2.2",
43+
"pypdf2==1.26.0",
44+
"dictdiffer>=0.8.0",
45+
"Pillow==8.4.0",
46+
"colorlog>=4.1.0,<4.2",
47+
"PyYAML>=5.3.1",
48+
"Jinja2>=2.10",
49+
"chardet==4.0.0",
50+
"ffmpy>=0.2.2",
51+
"pdf2image==1.11.0",
52+
"le-pycaption>=2.2.0a1",
53+
"EbookLib>=0.17.1",
54+
"filetype>=1.1.0",
55+
],
6256
python_requires=">=3.7, <3.11",
6357
license="MIT license",
6458
zip_safe=False,

0 commit comments

Comments
 (0)