patchwork:pyup-pin-python-dateutil-2.8.1

Last commit made on 2020-04-14
Get this branch:
git clone -b pyup-pin-python-dateutil-2.8.1 https://git.launchpad.net/patchwork

Branch merges

Branch information

Name:
pyup-pin-python-dateutil-2.8.1
Repository:
lp:patchwork

Recent commits

9a54aa8... by pyup-bot <email address hidden> on 2020-04-14

Pin python-dateutil to latest version 2.8.1

4eaf300... by Stephen Finucane <email address hidden> on 2020-04-10

pre-commit: Use Python 3 for everything

This lets us use e.g. f-strings. We also bump the version of the default
pre-commit lib and migrate to the upstream flake8 plugin, since the old
one is now deprecated.

Signed-off-by: Stephen Finucane <email address hidden>

cbc0486... by Jeremy Kerr on 2020-04-14

lib/sql: Update grant script for recent schema changes

This change fixes a few omissions in the grant scripts:

- patchrelation is missing from both mysql and postgres scripts; it's
  only needed for web user access.

- event is missing from the web grants on postgres, and the mail grants
  on mysql.

Tested on postgres only.

Fixes: 27c2acf56c ("models, templates: Add patch relations")
Fixes: 34e3c9c493 ("sql: Update 'grant-all.mysql' script with missing tables")
Fixes: 234bc7c316 ("lib/sql: fix permissions for v2.0.0 on postgres")
Signed-off-by: Jeremy Kerr <email address hidden>
Signed-off-by: Daniel Axtens <email address hidden>

e15fc9f... by Stephen Finucane <email address hidden> on 2020-04-09

Additional Python 2.7 cleanups

Signed-off-by: Stephen Finucane <email address hidden>

f71f5ee... by Stephen Finucane <email address hidden> on 2020-04-09

tox: Remove quotes around posargs

This was preventing us from doing e.g.:

  tox -e py36-django30 -- patchwork -v 2

Signed-off-by: Stephen Finucane <email address hidden>

a2b0850... by Stephen Finucane <email address hidden> on 2020-04-09

tests: Close XML-RPC client when done

This resolves the following irritating warnings that were popping up on
Python 3.7 and 3.8 and were silenced on 3.6:

  /usr/lib/python3.7/unittest/suite.py:107: ResourceWarning: unclosed <socket.socket ...>

Note that we need to use a subclass because the 'ServerProxy' class,
rather annoyingly, does not expose a 'close()' method. Instead, you're
expected to use a context manager, which isn't useful from the context
of a 'setUp' call. We could call '__enter__' and '__exit__' manually but
this seems cleaner. Also note that 'Server' was an alias of
'ServerProxy' [1], and we're taking the opportunity to switch here.

[1] https://docs.python.org/3/library/xmlrpc.client.html#xmlrpc.client.ServerProxy

Signed-off-by: Stephen Finucane <email address hidden>

abfd2df... by Stephen Finucane <email address hidden> on 2020-04-08

Remove __future__ imports

All of these are defaults in Python 3 [1].

[1] https://docs.python.org/3.6/library/__future__.html

Signed-off-by: Stephen Finucane <email address hidden>

feefa47... by Stephen Finucane <email address hidden> on 2020-04-09

Temporarily disable django-dbbackup

This does not support Django 3.0 yet [1].

[1] https://github.com/django-dbbackup/django-dbbackup/issues/314

Signed-off-by: Stephen Finucane <email address hidden>

4ad87ed... by Stephen Finucane <email address hidden> on 2020-04-08

migrations: Add the Python 3 patch

Django has wanted this for a long time. It doesn't seem to do anything
but it keeps Django happy so...

Signed-off-by: Stephen Finucane <email address hidden>

7d7313a... by Stephen Finucane <email address hidden> on 2020-04-08

requirements: Bump django-debug-toolbar to 2.2

This version formally includes support for Django 3.0 [1].

The default installed version of Django is bumped to 3.0.

[1] https://django-debug-toolbar.readthedocs.io/en/latest/changes.html

Signed-off-by: Stephen Finucane <email address hidden>