Quantcast
Channel: feed2exec:2ac64d7983b1e4cdf6acea8a7d22d0746823154e commits
Browsing latest articles
Browse All 39 View Live
↧

switch to a single channel for all my projects

View Article


play catchup with newer html2text version again

View Article


workaround timezone parsing bug in dateparser

View Article

switch to dateparser for PyPI and tests as well

Because the Debian package recommends dateparser, I had different results running tests natively on Debian and within tox. This harmonizes things and makes use of dateparser everywhere, warts and...

View Article

register properly the special mark we are using

View Article


reduce noise level of 'missing time' problems

It seems like previous versions of feedparser would never trigger that problem, and would fill in the date instead. Now I have feeds that have this on *every* item and it generates a lot of noise in...

View Article

prepare 0.15.0 release

View Article

split large feeds.py into model.py and controller.py

This rearchitecture seems to make sense to me. I would like to keep those files smaller and that naming will force me to follow that model/controller distinction more clearly. Already, the parse/fetch...

View Article


rename FeedCacheStorage to FeedItemCacheStorage

This is, effectively, a per-item cache, not a full feed cache. We want to implement the latter as part of #10 so it makes sense to rename this first. This is an API breaking change.

View Article


factor out getter/setters in the base sqlite class

This should pave the way for reusing this class in a caching backend like cachecontrol.

View Article

use context manager for connexions, inspired by cachecontrol_sqlite

View Article

remove conn member in sqlite to force use of context manager

View Article

split connection cache logic in a separate function, to simplify

View Article


implement thread-level locking

This is not absolutely necessary as we don't do thread-level parallelism. But if we every want to switch back to doing that, this is an elegant way of supporting that. Inspired by cachecontrol-sqlite.

View Article

enforce commit in context manager unless explicitely disabled

This makes sure we never, ever forget to commit unless we *explicitely* disable it. This is also inspired by cachecontrol-sqlite, except the latter uses False as a default for the autocommit, which...

View Article


small simplification of session init logic

View Article

first attempt at using cachecontrol, failing

It seems we need to provide the timestamp, and it doesn't store it in the database, so it doesn't send if-modified-since headers, so it fails. Maybe we are better off implementing this on our own?

View Article


fix broken cache adapter support

We did not need to pass the if-modified-since header. All that was needd was that we lookup (and return!) the cache value properly. So also remove that from the database. The way things were setup,...

View Article

forcibly preset the builtin feed session

Without this setting, the wrong session gets initialized in the new Feed object. Before the caching layer was implemented, this didn't matter much because those sessions were never called. But since...

View Article

install python3-dev, required for compiling regex

Not sure why all that junk is necessary, but I want to fix the build.

View Article

avoid newer feedparser versions

feedparser 6.0+ removed the FeedParserDict which we depend on: https://github.com/kurtmckee/feedparser/issues/197 Until we refactor the Feed class, stick with older versions of feedparser.

View Article


also test on python 3.8, now available in python:latest

View Article


run apt update before install

View Article

Merge remote-tracking branch 'origin/cachecontrol'

View Article

update supported Python release numbers

View Article


sync up tox.ini and setup.py version lists

View Article

add missing cachecontrol dep

View Article

move session and fetching to the feed manager

Having the session and the network code in the "model" makes no sense: that stuff belongs in the "controller". Having it there made it particularly difficult to implement the caching layer, as I had...

View Article

remove class-level sticky session parameter

This cleans up a lot of stuff. Now we can treat the session as a normal feed_manager parameter. Since there is usually only one feed_manager in operation at any time, it is basically a static member....

View Article



reuse existing conf and db_path instead of creating new

View Article

make test suite pass again

This was failing because hooking up the cache into the session completely obliterates our poor old betamax cache. Instead of doing that, we politely queue the cache layer behind it... ... except that...

View Article

rename feeds to feed_manager in main

The "feeds" appelation is an old remnant of the previous data structures. Now we do use a FeedManager everywhere and we should name it as such. It will be easier to grep for it and will more obviously...

View Article

reuse feed_manager object in fetch as well

I see no reason why we need to construct a different object in this specific class, let's just reuse the one already created. This should make a tiny improvement on the startup latency, but hasn't...

View Article


DRY: refactor common requirements out of tox and setup.py

Requirements are now stored only in setup.py. Before, we were telling tox to delegate the test runs to setup.py, but this made it impossible to pass arguments to pytest. By calling pytest directly, we...

View Article

explicitely override the feed, not the session

This gives us a single override point that is more cohesive and cleaner. It will also make other run tests much easier to call, but that's for a later commit.

View Article

remove useless --config and --database and override instead

By passing the feed_manager, we have complete and coherent control over those parameters, without having to pass along the arguments. The downside is we create empty cassettes for all of those, but...

View Article


Merge branch 'mvc-refact'

View Article


update test docs following refactoring

View Article

update documentation to follow latest changes

View Article
Browsing latest articles
Browse All 39 View Live