adewes / blitzdb

Blitz is a document-oriented database for Python that is backend-agnostic. It comes with a flat-file database for JSON documents and provides MongoDB-like querying capabilities.
http://blitzdb.readthedocs.org
MIT License
332 stars 37 forks source link

Support for Python 3.7 #79

Closed epatters closed 5 years ago

epatters commented 5 years ago

Fixes incompatibilities with Python 3.7 related to re.Pattern and PEP 479.

epatters commented 5 years ago

The tests pass on my local machine, but are failing on Travis (on all versions of Python, not just 3.7):

$ psql -c 'create database blitzdb_test;' -U postgres
psql: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
The command "psql -c 'create database blitzdb_test;' -U postgres" failed and exited with 2 during 
epatters commented 5 years ago

The build still seems to be broken, but not, I believe, due to any changes that I made.

Is anyone available to review this PR?

cjgibson commented 5 years ago

Total shot in the dark, but possible we need to add:

services:
  - postgresql

To our Travis config. Alternatively, it looks like the Postgres APT that Travis pulls from claims to no longer support Postgres 9.3, although it looks like the last built package for 9.3 is still available.

adewes commented 5 years ago

Hi @cjgibson, thanks for this MR and sorry that it takes a while to review it!

adewes commented 5 years ago

Thanks to @epatters as well :)