pygooglenews
pygooglenews copied to clipboard
Update dependencies
The current version of feedparser
and dateparser
are no longer compatible with the source code. The latest versions of both packages work fine. I updated pyproject.toml
(and subsequently poetry.lock
using the poetry lock command) to reflect that. I have also added a new entry in .gitignore
to ignore macOS-generated system files (I use macOS), and added a new line at the end of __init__.py
(just a habit!).
For those who are unable to use the package due to the outdated dependencies, you can fix the issue by running:
pip install -U --no-deps "dateparser>=1.0.0"
pip install -U --no-deps "feedparser>=6.0.8"
To anyone who wants to use this lib but can't install, you can force the dependencies to be a specific version this way:
python -m pip install "beautifulsoup4==4.9.1"
python -m pip install "dateparser==0.7.6"
python -m pip install "requests==2.24.0"
python -m pip install "feedparser==6.0.8"
python -m pip install --no-deps pygooglenews
This should work. (If it doesn't, check if the versions have changed in pyproject.toml
for some reason)