Closed morotti closed 2 years ago
Not sure about this. @mpenkov do you reckon this really improves the documentation?
Yeah, I think it's a step in the right direction (the project doesn't get a lot of attention), but obviously needs more effort.
What python version does the project support?
2.6 is long end of life.
I am surprised Travis stills offers python 2.6. It's probably the stage where they might drop it any minute.
Might want to drop python 2.6 and add 3.7+ 3.8
Might want to drop python 2.6 and add 3.7+ 3.8
I agree. Moving sqlitedict to support only 3.6+ would be awesome – people who still need older Pythons can install older versions of sqlitedict.
And I believe existing data (DB files on disk) will remain readable, because newer Pythons still support the old pickle protocol versions.
Vice versa is not true though – new pickles won't be readable in old Pythons.
I have a problem with getting doctest to work. I think the idea of testing the examples is great but the implementation clearly doesn't work.
Trying to run doctest.testfile("README.rst") on the file currently in master fails with a variety of errors. 1 items had failures: 7 of 21 in old.rst Test Failed 7 failures. TestResults(failed=7, attempted=21)
It doesn't work and it's not part part of the travis build+test. I'd go as far as saying the examples never worked under doctest.
I won't be able to get the documentation to use this doctest thing. If you really want it, the current examples should first be fixed to work and run under travis.
I'd rather have broken doctests (14 out of 21 ain't that bad) then no doctests at all.
What's the actual problem with the tests? It shouldn't be that hard to fix.
After fixing the print statement (need parenthesis on python 3). doctest is throwing random errors about unexpected end of file, syntax error, indentation errors, expected output but got something else, etc... Just run and see for yourself doctest.testfile("README.rst")
.
I tried to investigate but it's nonsense to me, looks like it's failing to parse or it's expecting a quite different format.
There are 5 code blocks in total, there shouldn't be 21 tests founds in the first place.
I think I've edited everything that was mentioned. There's only the issue with doctest left that is not due to my edit, it didn't work before.
Update the README.rst:
I wanted to say this library is AMAZING. I am gonna use that for so many things! And to think I almost skipped it because the intro was meh for a first use.