Граф коммитов

290 Коммитов

Автор SHA1 Сообщение Дата
William Lachance aa0d88cc79 Bug 1266426 - Accept .zip sha256 hash for PyYAML
Workaround for something changing in pypi that causes pip to prefer
the .zip version.
2016-04-21 11:27:07 -04:00
Cameron Dawson 6ce43bf034 Bug 1177519 - Back end changes for autoclassification work 2016-04-19 19:16:07 +01:00
Ed Morley 05763288fb Bug 1258700 - Replace wsgi-sslify with Django's security middleware
Now that we're using WhiteNoise as middleware, Django's security
middleware can be placed in front of it, making the standalone WSGI app
wsgi-sslify redundant, by using `SECURE_SSL_REDIRECT` and
`SECURE_HSTS_SECONDS`:
https://docs.djangoproject.com/en/1.8/ref/middleware/#django.middleware.security.SecurityMiddleware
https://docs.djangoproject.com/en/1.8/ref/settings/#secure-ssl-redirect
https://docs.djangoproject.com/en/1.8/ref/settings/#secure-hsts-seconds

We will also now be able to enable other Django security middleware
features in the future, that were not present in wsgi-sslify (such as
setting the `X-Content-Type-Options` and `X-XSS-Protection` headers).

Werkzerg has been moved to `requirements/dev.txt` since it's now only
needed in development, by django-extension's `runserver_plus` command.
2016-03-30 13:00:23 +02:00
Ed Morley 23c4a5ea14 Bug 1258700 - Generate Brotli-compressed versions of static files
WhiteNoise 3.0 now supports serving Brotli-compressed files to browsers
whose `Accept-Encoding` includes `br`. Note: Both Firefox and Chrome
only support Brotli over HTTPS.

To take advantage of this, the Brotli package just needs to be available
when the compression tool (`python -m whitenoise.compress`) is run. See:
http://whitenoise.evans.io/en/latest/changelog.html#brotli-compression-support
http://whitenoise.evans.io/en/latest/django.html#brotli-compression

The WhiteNoise docs say to use an unofficial PyPI package (brotlipy),
however this has a dependency on libffi (via cffi) and the official repo
now has it's own Python wrapper that does not. As such, this commit
instead uses the official Brotli package from GitHub, whilst we wait for
the official PyPI release (https://github.com/google/brotli/issues/72).

The Brotli install works fine on stage/prod/Heroku/Travis. The Vagrant
environment was missing g++, which is now installed during provision.
2016-03-30 13:00:23 +02:00
Ed Morley 5b48f4b49b Bug 1258700 - Update to WhiteNoise 3.0
There are some backwards incompatible changes:
http://whitenoise.evans.io/en/latest/changelog.html
https://github.com/evansd/whitenoise/compare/v2.0.6...v3.0

Specifically:
* The CLI compression utility must now be called via
`python -m whitenoise.compress` rather than `python -m whitenoise.gzip`.
* The `whitenoise.django.GzipManifestStaticFilesStorage` storage backend
has moved to `whitenoise.storage.CompressedManifestStaticFilesStorage`.
* The internal `add_files()` method has been split into two and the part
which we need to subclass is now named `update_files_dictionary()`. See:
07f9c0bece
2016-03-30 13:00:23 +02:00
Ed Morley 3de0a5ede4 Bug 1253021 - Update celery from 3.1.19 to 3.1.20
http://docs.celeryproject.org/en/latest/changelog.html
https://github.com/celery/celery/compare/v3.1.19...v3.1.20
2016-03-04 13:08:08 +00:00
Ed Morley b0b3c10942 Bug 1253021 - Update kombu from 3.0.32 to 3.0.33
https://github.com/celery/kombu/blob/master/Changelog
https://github.com/celery/kombu/compare/v3.0.32...v3.0.33
2016-03-04 13:08:08 +00:00
Ed Morley 2beb7d2ba8 Bug 1253021 - Update amqp from 1.4.8 to 1.4.9
https://github.com/celery/py-amqp/blob/master/Changelog
https://github.com/celery/py-amqp/compare/v1.4.8...v1.4.9
2016-03-04 13:08:08 +00:00
Ed Morley 577a0669f3 Bug 1253021 - Update mohawk from 0.3.1 to 0.3.2.1
https://mohawk.readthedocs.org/en/latest/#changelog
https://github.com/kumar303/mohawk/compare/0.3.1...0.3.2.1
2016-03-04 13:08:08 +00:00
Ed Morley 285a59bde9 Bug 1253021 - Update django-rest-swagger from 0.3.4 to 0.3.5
https://github.com/marcgibbons/django-rest-swagger/blob/master/CHANGELOG.md
https://github.com/marcgibbons/django-rest-swagger/compare/0.3.4...0.3.5
2016-03-04 13:08:08 +00:00
Ed Morley 5061f18903 Bug 1253021 - Update django-filter from 0.11.0 to 0.12.0
https://github.com/carltongibson/django-filter/blob/master/CHANGES.rst
https://github.com/carltongibson/django-filter/compare/0.11.0...0.12.0
2016-03-04 13:08:08 +00:00
Ed Morley 8ff03d195a Bug 1253021 - Update django-browserid from 1.0.2 to 2.0.1
https://github.com/mozilla/django-browserid/blob/master/CHANGELOG.rst
https://github.com/mozilla/django-browserid/compare/v1.0.2...v2.0.1
2016-03-04 13:08:08 +00:00
Ed Morley 8d0d2c4d11 Bug 1253021 - Update futures from 3.0.3 to 3.0.5
https://github.com/agronholm/pythonfutures/blob/master/CHANGES
https://github.com/agronholm/pythonfutures/compare/3.0.3...3.0.5
2016-03-04 13:08:08 +00:00
Ed Morley a2012266bb Bug 1253021 - Update python-dateutil from 2.4.2 to 2.5.0
https://github.com/dateutil/dateutil/blob/master/NEWS
https://github.com/dateutil/dateutil/compare/2.4.2...2.5.0
2016-03-04 13:08:08 +00:00
Ed Morley dc3787bb1d Bug 1253021 - Update Werkzeug from 0.11.3 to 0.11.4
http://werkzeug.pocoo.org/docs/latest/changes/
https://github.com/mitsuhiko/werkzeug/compare/0.11.3...0.11.4
2016-03-04 13:08:08 +00:00
Ed Morley 2d179e7f94 Bug 1253021 - Update simplejson from 3.8.1 to 3.8.2
https://github.com/simplejson/simplejson/blob/master/CHANGES.txt
https://github.com/simplejson/simplejson/compare/v3.8.1...v3.8.2
2016-03-04 13:08:08 +00:00
Ed Morley 5f5db191fa Bug 1253021 - Update gunicorn from 19.4.3 to 19.4.5
http://docs.gunicorn.org/en/latest/news.html
https://github.com/benoitc/gunicorn/compare/19.4.3...19.4.5
2016-03-04 13:08:08 +00:00
Ed Morley 9d5fc8e451 Bug 1253021 - Update responses from 0.5.0 to 0.5.1
https://github.com/getsentry/responses/blob/master/CHANGES
https://github.com/getsentry/responses/compare/0.5.0...0.5.1
2016-03-04 13:08:08 +00:00
Ed Morley d5fecaaa07 Bug 1253021 - Update pytest from 2.8.5 to 2.9.0
http://pytest.org/latest/changelog.html
https://github.com/pytest-dev/pytest/compare/2.8.5...2.9.0
2016-03-04 13:08:08 +00:00
Ed Morley 2ea6a71bf0 Bug 1252515 - Update to Django 1.8.10
https://docs.djangoproject.com/en/stable/releases/1.8.8/
https://docs.djangoproject.com/en/stable/releases/1.8.9/
https://docs.djangoproject.com/en/stable/releases/1.8.10/
https://github.com/django/django/compare/1.8.7...1.8.10
2016-03-01 18:16:07 +00:00
Ed Morley a83f930296 Bug 1213230 - Use pip 8's require-hashes feature instead of peep
As of pip 8, peep has now been integrated into pip.

Migrating from peep to this native feature has several advantages:
* It avoids the complexity/learning curve of using a wrapper around pip.
* It means we do not need to fork the official Heroku Python buildpack
  (which handles pip installation of requirements files) in order to use
  hash verification on Heroku. (Once the buildpack updates to pip 8.)
* Omitted sub-dependencies result in install-time errors rather than
  the user discovering omissions at run-time.
* pip's native caching is used, and all packages are installed in one
  pip invocation, so it's significantly faster.
* It has better handling of errors and corner cases.

Key facts about the native feature:
* hash-checking mode is enabled if at least one hash is found in the
  requirements files passed to pip, or can be force enabled by passing
  `--requires-hashes` when running `pip install`.
* Once enabled, hash-checking mode enforces that all packages:
  - are pinned to a specific version
  - have hashes listed
  - have all sub-dependencies specified
* Older versions of pip will error out if either `--require-hashes` or
  the requirements file `--hash` syntax is used, meaning it's not
  possible to accidentally lose hash-checking protection if the pip used
  is older than expected.

For more details, see:
https://pip.pypa.io/en/stable/user_guide/#hash-checking-mode
https://pip.pypa.io/en/stable/reference/pip_install/#hash-checking-mode

The pip version on Travis and in the Vagrant virtualenv has been updated
to 8.0.2 in bug 1241144, and the stage/prod virtualenv in bug 1241519.
The Heroku Python buildpack pip was updated in bug 1241909.

The requirements files hashes were ported using `peep port`, and then
comments/URLs re-added by hand.
2016-02-15 12:06:17 +00:00
Ed Morley 1dc1f7fee5 Bug 1182043 - Use pylibmc instead of python-memcached
We're already using pylibmc on Heroku, since we need its SASL
authentication support. However we were still using python-memcached on
Vagrant, Travis, stage & prod.

To reduce the number of simultaneous changes when we migrate to Heroku,
and to ensure at that point we're testing what we ship, this switches us
to pylibmc pre-emptively for all environments.

Django does have a native pylibmc backend [1], however it doesn't
support SASL authentication, so we have to use the custom django-pylibmc
backend instead [2], which we choose to use everywhere (even though only
Heroku's memcache instances require auth) for consistency.

Installing pylibmc requires libmemcached-dev, which is installed by
default on Travis, has just been installed on stage/prod (bug 1243767),
and as of this change, is now installed in the Vagrant environment too.

The comment mentioning that pylibmc must be present in the root
requirements.txt file no longer applies, since the Python buildpack now
uses pip-grep (rather than regex) to determine whether it is in the
requirements files [3], and so handles included requirements files too.
Example: https://emorley.pastebin.mozilla.org/8858007

I'll be checking for any changes in performance when this is deployed,
however if anything I expect it to be faster since it's not pure Python.

[1] https://github.com/django/django/blob/1.8.7/django/core/cache/backends/memcached.py#L171
[2] https://github.com/django-pylibmc/django-pylibmc/blob/master/django_pylibmc/memcached.py
[3] https://github.com/heroku/heroku-buildpack-python/blob/v75/bin/steps/pylibmc#L22
2016-02-05 17:35:57 +00:00
Ed Morley d81ce45ab1 Bug 1238274 - Update hawkrest from v0.0.8 to v0.0.9
https://hawkrest.readthedocs.org/en/latest/#changelog
https://github.com/kumar303/hawkrest/compare/0.0.8...0.0.9
2016-01-09 17:32:03 +00:00
Ed Morley af2e69a5d9 Bug 1238274 - Update mohawk from v0.3.0 to v0.3.1
https://mohawk.readthedocs.org/en/latest/#changelog
https://github.com/kumar303/mohawk/compare/0.3.0...0.3.1
2016-01-09 17:31:42 +00:00
Ed Morley d1e25ed9c7 Revert "Bug 1169696 - Use librabbitmq with Celery/Kombu for improved performance"
This reverts commit 375960c843.

Due to:
exceptions:NotImplementedError: ssl not supported by librabbitmq, please
use pyamqp:// or stunnel
2016-01-06 17:42:32 +00:00
Ed Morley 375960c843 Bug 1169696 - Use librabbitmq with Celery/Kombu for improved performance
For rabbitmq transports specified using `amqp://`, Celery/Kombu will use
librabbitmq automatically if it's available, otherwise will fall back to
the pure Python (and therefore slower) amqp:
http://celery.readthedocs.org/en/latest/userguide/optimizing.html#librabbitmq
2016-01-05 17:23:49 +00:00
Ed Morley a221cf1b45 Bug 1203597 - Heroku: Redirect HTTP to HTTPS and set an HSTS header
Since Heroku doesn't use nginx/Apache we must perform this via wsgi
middleware. We cannot use Django's HTTPS/HSTS features since they won't
help with requests that were served by WhiteNoise directly (eg the site
homepage).

Instead we use wsgi-sslify, as recommended by:
https://github.com/evansd/whitenoise/issues/53#issuecomment-166972824

We only enable it when IS_HEROKU is set, since stage/prod is handled by
Apache, and for local development we have to use HTTP.
2016-01-05 17:08:35 +00:00
Ed Morley 985cd86a6d Bug 1232654 - Update gunicorn from v19.4.1 to v19.4.3
http://docs.gunicorn.org/en/latest/news.html
https://github.com/benoitc/gunicorn/compare/19.4.1...19.4.3
2015-12-29 20:33:45 +00:00
Ed Morley 8f80564d9c Bug 1232654 - Update kombu from v3.0.30 to v3.0.32
https://github.com/celery/kombu/blob/master/Changelog
https://github.com/celery/kombu/compare/v3.0.30...v3.0.32
2015-12-21 15:41:21 +00:00
Ed Morley eac41a546c Bug 1232654 - Update gunicorn from v19.3.0 to v19.4.1
http://docs.gunicorn.org/en/latest/news.html
https://github.com/benoitc/gunicorn/compare/19.3...19.4.1
2015-12-21 15:38:40 +00:00
Ed Morley 631361b511 Bug 1232654 - Update djangorestframework from v3.3.1 to v3.3.2
http://www.django-rest-framework.org/topics/release-notes/
https://github.com/tomchristie/django-rest-framework/compare/3.3.1...3.3.2
2015-12-21 15:38:39 +00:00
Ed Morley f9ad9c288a Bug 1232654 - Update requests from v2.7.0 to v2.9.1
https://github.com/kennethreitz/requests/blob/master/HISTORY.rst
https://github.com/kennethreitz/requests/compare/v2.7.0...v2.9.1
2015-12-21 15:38:35 +00:00
Ed Morley 6916961c1d Bug 1232654 - Update mozlog from v3.0 to v3.1
https://github.com/mozilla/gecko-dev/commits/master/testing/mozbase/mozlog
2015-12-21 15:31:07 +00:00
Ed Morley cde42d044f Bug 1232654 - Update newrelic from v2.58.1.44 to v2.60.0.46
https://docs.newrelic.com/docs/release-notes/agent-release-notes/python-release-notes/python-agent-260046
https://github.com/edmorley/newrelic-python-agent/compare/v2.58.1.44...v2.60.0.46
2015-12-21 15:31:07 +00:00
Ed Morley 527a8f9947 Bug 1212937 - Remove Python client support for OAuth credentials
Since they are deprecated and no longer supported by the API.
The Python client version will be bumped in a later commit.
2015-12-16 18:12:42 +00:00
Ed Morley 32d4ce4888 Bug 1232654 - Update celery from v3.1.18 to v3.1.19
http://docs.celeryproject.org/en/latest/changelog.html
https://github.com/celery/celery/compare/v3.1.18...v3.1.19
2015-12-16 14:59:04 +00:00
Ed Morley 0b727a3562 Bug 1232654 - Update kombu from v3.0.26 to v3.0.30
https://github.com/celery/kombu/blob/3.0/Changelog
https://github.com/celery/kombu/compare/v3.0.26...v3.0.30
2015-12-16 14:59:03 +00:00
Ed Morley 308c1a3e03 Bug 1232654 - Update amqp from v1.4.6 to v1.4.8
https://github.com/celery/py-amqp/blob/master/Changelog
https://github.com/celery/py-amqp/compare/v1.4.6...v1.4.8
2015-12-16 14:59:03 +00:00
Ed Morley 754b4d0bb5 Bug 1232654 - Update billiard from v3.3.0.20 to v3.3.0.22
https://github.com/celery/billiard/blob/master/CHANGES.txt
https://github.com/celery/billiard/compare/v3.3.0.20...v3.3.0.22
2015-12-16 14:59:02 +00:00
Ed Morley ca53f80f81 Bug 1232654 - Update requests-hawk from v0.2.0 to v1.0.0
v1.0.0 has a simplified API for passing the id and key, see:
https://github.com/mozilla-services/requests-hawk#great-how-can-i-use-it

https://github.com/mozilla-services/requests-hawk/blob/master/CHANGES.txt
https://github.com/mozilla-services/requests-hawk/compare/0.2.0...1.0.0
2015-12-16 14:45:36 +00:00
Ed Morley e3c351bf40 Bug 1232654 - Update six from v1.9.0 to v1.10.0
https://bitbucket.org/gutworth/six/src/default/CHANGES
https://bitbucket.org/gutworth/six/branches/compare/1.10.0%0D1.9.0
2015-12-15 13:49:10 +00:00
Ed Morley 146d5a11ac Bug 1232654 - Update django-browserid from v1.0.0 to v1.0.2
https://github.com/mozilla/django-browserid/blob/master/CHANGELOG.rst
https://github.com/mozilla/django-browserid/compare/v1.0.0...v1.0.2
2015-12-15 13:49:09 +00:00
Ed Morley dc83c7d1c7 Bug 1232654 - Update simplejson from v3.7.3 to v3.8.1
https://github.com/simplejson/simplejson/blob/master/CHANGES.txt
https://github.com/simplejson/simplejson/compare/v3.7.3...v3.8.1
2015-12-15 13:49:09 +00:00
Ed Morley d5bb0b2cde Bug 1232654 - Update sqlparse from v0.1.16 to v0.1.18
https://github.com/andialbrecht/sqlparse/blob/master/CHANGES
https://github.com/andialbrecht/sqlparse/compare/0.1.16...0.1.18
2015-12-15 13:49:08 +00:00
Ed Morley 5ba2d0e017 Bug 1232654 - Update functools32 from v3.2.3-1 to v3.2.3-2
https://github.com/MiCHiLU/python-functools32/blob/master/ChangeLog
https://github.com/MiCHiLU/python-functools32/compare/3.2.3-1...3.2.3-2
2015-12-15 13:49:07 +00:00
Ed Morley 0d3bc53b75 Bug 1232654 - Update pytz from v2015.4 to v2015.7
https://launchpad.net/pytz/+announcements
2015-12-15 13:49:07 +00:00
Ed Morley 730a013e63 Bug 1232654 - Update whitenoise from v2.0.4 to v2.0.6
https://github.com/evansd/whitenoise/blob/master/CHANGELOG.rst
https://github.com/evansd/whitenoise/compare/v2.0.4...v2.0.6
2015-12-15 13:49:06 +00:00
Ed Morley e6a3e296e0 Bug 1232550 - Update pytest from v2.8.2 to v2.8.5
http://pytest.org/latest/changelog.html
https://github.com/pytest-dev/pytest/compare/2.8.2...2.8.5
2015-12-15 04:02:30 +00:00
Ed Morley c2f3bcc5bb Bug 1232550 - Update py from v1.4.30 to v1.4.31
http://pylib.readthedocs.org/en/latest/changelog.html
https://bitbucket.org/pytest-dev/py/branches/compare/1.4.31%0D1.4.30
2015-12-15 04:02:30 +00:00
Ed Morley b606ee5934 Bug 1232550 - Update datadiff from v1.1.6 to v2.0.0
http://sourceforge.net/p/datadiff/code/commit_browser
2015-12-15 04:02:29 +00:00
Ed Morley 16eee44d8e Bug 1232550 - Update flake8 from v2.5.0 to v2.5.1
http://flake8.readthedocs.org/en/latest/changes.html
https://gitlab.com/pycqa/flake8/compare/2.5.0...2.5.1
2015-12-15 04:02:29 +00:00
Ed Morley 4a94c4fe38 Bug 1232550 - Update django-extensions from v1.5.9 to v1.6.1
https://github.com/django-extensions/django-extensions/blob/master/CHANGELOG.md
https://github.com/django-extensions/django-extensions/compare/1.5.9...1.6.1
2015-12-15 04:02:28 +00:00
Ed Morley ed82dcc95a Bug 1231831 - Update djangorestframework from v3.2.4 to v3.3.1
http://www.django-rest-framework.org/topics/release-notes/
https://github.com/tomchristie/django-rest-framework/compare/3.2.4...3.3.1
2015-12-10 17:16:20 -05:00
Ed Morley d1b1cb534c Bug 1160561 - Replace dj-database-url with django-environ
We're already using django-environ for standard environment variables,
however it also supports DB URL parsing too, so we might as well use
it for everything, rather than using two packages.

In addition, django-environ already supports DB URI options (eg for
specifying the SSL cert), whereas the dj-database-url PR for that
feature has sat unmerged since May.

Compare:
https://github.com/kennethreitz/dj-database-url/blob/v0.3.0/dj_database_url.py
...with:
https://github.com/joke2k/django-environ/blob/v0.4/environ/environ.py#L323-L392
2015-11-25 21:48:15 +00:00
Ed Morley 63309178d9 Bug 1227733 - Update Django from v1.8.5 to v1.8.7
https://docs.djangoproject.com/en/1.8/releases/1.8.6/
https://docs.djangoproject.com/en/1.8/releases/1.8.7/
https://github.com/django/django/compare/1.8.5...1.8.7
2015-11-25 13:53:32 +00:00
William Lachance 651c5d90d0 Bug 1201154 - Add django-filter to list of required packages 2015-11-24 14:25:13 -05:00
Ed Morley 9cda039e8b Bug 1226565 - Update datasource to v0.10.0 (adds 'rowcount' return_type)
Adds support for a `return_type` of `rowcount`:
https://github.com/jeads/datasource/pull/39

https://github.com/jeads/datasource/compare/v0.9.1...v0.10.0
2015-11-20 18:35:30 +00:00
Ed Morley 5457781fe7 Bug 1223496 - Update newrelic from v2.56.0.42 to v2.58.1.44
https://docs.newrelic.com/docs/release-notes/agent-release-notes/python-release-notes/python-agent-258043
https://docs.newrelic.com/docs/release-notes/agent-release-notes/python-release-notes/python-agent-258144
https://github.com/edmorley/newrelic-python-agent/compare/v2.56.0.42...v2.58.1.44
2015-11-18 10:36:55 +00:00
Ed Morley 87c71dc037 Bug 1223824 - Update django-extensions from v1.5.7 to v1.5.9
https://github.com/django-extensions/django-extensions/blob/master/CHANGELOG.md
https://github.com/django-extensions/django-extensions/compare/1.5.7...1.5.9
2015-11-16 17:45:26 +00:00
Ed Morley 631f470e2b Bug 1223824 - Update beautifulsoup4 from v4.4.0 to v4.4.1
https://groups.google.com/forum/#!topic/beautifulsoup/buk4qPLJhMs
2015-11-16 17:45:25 +00:00
Ed Morley 30b157734a Bug 1223824 - Update waitress from v0.8.9 to v0.8.10
http://docs.pylonsproject.org/projects/waitress/en/latest/#change-history
https://github.com/Pylons/waitress/compare/0.8.9...0.8.10
2015-11-16 17:45:25 +00:00
Ed Morley 111ddbe180 Bug 1223824 - Update WebOb from v1.4.1 to v1.5.1
http://webob.readthedocs.org/en/latest/changes.html
https://github.com/Pylons/webob/compare/1.4.1...1.5.1
2015-11-16 17:45:24 +00:00
Ed Morley 24dc811884 Bug 1223824 - Update WebTest from v2.0.18 to v2.0.20
http://webtest.pythonpaste.org/en/latest/changelog.html
https://github.com/Pylons/webtest/compare/2.0.18...2.0.20
2015-11-16 17:45:23 +00:00
Ed Morley ffc5e723cd Bug 1223824 - Update pytest from v2.7.2 to v2.8.2
http://pytest.org/latest/changelog.html
https://github.com/pytest-dev/pytest/compare/2.7.2...2.8.2
2015-11-16 17:45:22 +00:00
Ed Morley bc273b5d34 Bug 1223824 - Update pyflakes from v0.9.2 to v1.0.0
https://github.com/pyflakes/pyflakes/releases/tag/1.0.0
https://github.com/pyflakes/pyflakes/compare/0.9.2...1.0.0
2015-11-16 17:45:22 +00:00
Ed Morley b7eda32d16 Bug 1223824 - Update flake8 from v2.4.1 to v2.5.0
http://flake8.readthedocs.org/en/latest/changes.html
https://gitlab.com/pycqa/flake8/compare/2.4.1...2.5.0
2015-11-16 17:45:21 +00:00
Ed Morley 01883737b2 Bug 1223824 - Update mock from v1.0.1 to v1.3.0
https://github.com/testing-cabal/mock/blob/master/NEWS
https://github.com/testing-cabal/mock/compare/1.0.1...1.3.0

mock now also requires the funcsigs and pbr packages.
2015-11-16 17:45:20 +00:00
Ed Morley be08ac3420 Bug 1223824 - Update responses from v0.4.0 to v0.5.0
https://github.com/getsentry/responses/blob/master/CHANGES
https://github.com/getsentry/responses/compare/0.4.0...0.5.0
2015-11-16 17:45:19 +00:00
Ed Morley 169a3d8b85 Bug 1182485 - Update datasource to v0.9.1 for the whitespace fix
Gives us the fix in:
https://github.com/jeads/datasource/pull/36

https://github.com/jeads/datasource/compare/v0.9...v0.9.1
2015-11-11 10:39:13 +00:00
Ed Morley 5f767d8e45 Bug 1223497 - Update the New Relic Python agent to v2.56.0.42
https://docs.newrelic.com/docs/release-notes/agent-release-notes/python-release-notes/python-agent-256042
2015-11-11 09:43:17 +00:00
Ed Morley 727658aef1 Bug 1221157 - Update hash for django-browserid now it has a wheel
The wheel archive is preferred over the standard one, so we need to
update the hash associated with django-browserid.
2015-11-03 16:05:06 +00:00
Ed Morley 9fd4f04d14 Bug 1220111 - Remove unused Python coverage packages
We don't currently have code coverage enabled, and whilst we want to do
so, it will likely be in a form different from here (eg coveralls.io).
The packages removed by this commit are also older releases - and the
latest versions have changed their dependencies (for example cov-core is
no longer a separate package). By removing them it will reduce the
number of packages we have to install locally & on Travis, as well as
mean fewer warnings for out of date packages from requires.io.
2015-10-30 14:33:00 +00:00
Ed Morley 2b40a0ada9 Bug 1220105 - Remove unused fancy-tag package dependency
As of django-browserid v1.0.0, it no longer uses fancy_tag:
https://github.com/mozilla/django-browserid/pull/281
2015-10-30 14:02:06 +00:00
Mauro Doglio 5930b4f4c1 Bug 1193836 - Use pytest-django to run tests
pytest-django doesn't setup a test database for every single test, but
only for those tests that actually require a db. Tests that require a db
need to either be marked with `@pytest.mark.django_db` or use a fixture
that has a dependency on `db` or `transactional_db`.
Using a non transactional db would make tests execution much faster, but
unfortunately it doesn't play well with the treeherder datasource
creation so I used a transactional_db.

pytest-django also allows you to specify a settings file to use for
tests in a pytest.ini file, which is nicer than monkeypatch the original
settings file in the pytest session start function 😃.
2015-10-27 11:19:13 +00:00
Ed Morley 654db14fc3 Remove leading whitespace in requirements/common.txt 2015-10-24 14:22:50 +01:00
Mauro Doglio a6b9d736ca Bug 1209555 - add requests-hawk to requirements 2015-10-08 13:11:54 +01:00
Ed Morley 0164b8f72f Bug 1211866 - Update django-extensions to v1.5.7
https://github.com/django-extensions/django-extensions/blob/master/CHANGELOG.md#157
https://github.com/django-extensions/django-extensions/compare/1.5.5...1.5.7
2015-10-06 16:01:36 +01:00
Ed Morley 745df95505 Bug 1211866 - Update django-environ to v0.4.0
https://github.com/joke2k/django-environ#040---23-september-2015
https://github.com/joke2k/django-environ/compare/v0.3...v0.4
2015-10-06 16:01:35 +01:00
Ed Morley 3e47f58a0d Bug 1211866 - Update django-rest-swagger to v0.3.4
https://github.com/marcgibbons/django-rest-swagger/blob/master/CHANGELOG.md#v034-august-19-2015
https://github.com/marcgibbons/django-rest-swagger/compare/0.3.2...0.3.4
2015-10-06 16:01:34 +01:00
Ed Morley ad4df5a2ff Bug 1211866 - Update drf-extensions to v0.2.8
http://chibisov.github.io/drf-extensions/docs/#0-2-8
https://github.com/chibisov/drf-extensions/compare/0.2.7...0.2.8
2015-10-06 16:01:34 +01:00
Ed Morley f9ee70006d Bug 1211866 - Update djangorestframework to v3.2.4
http://www.django-rest-framework.org/topics/3.2-announcement/
http://www.django-rest-framework.org/topics/release-notes/#32x-series
https://github.com/tomchristie/django-rest-framework/compare/3.1.3...3.2.4
2015-10-06 16:01:33 +01:00
Ed Morley 55c86687db Bug 1211866 - Update Django to v1.8.5
https://docs.djangoproject.com/en/1.8/releases/1.8.5/
https://github.com/django/django/compare/1.8.4...1.8.5
2015-10-06 16:01:31 +01:00
Ed Morley a79854f6b7 Bug 1211893 - Update httplib2 to v0.9.2
https://github.com/jcgregorio/httplib2/blob/master/CHANGELOG
https://github.com/jcgregorio/httplib2/compare/0.9.1...0.9.2
2015-10-06 15:50:24 +01:00
Ed Morley fe6e51d457 Bug 1211893 - Update oauth2 to v1.9.0.post1
Includes the fix for CVE-2013-4347.

https://github.com/joestump/python-oauth2/compare/hudson-python-oauth2-211...v1.9
2015-10-06 15:50:24 +01:00
Ed Morley 60a8d4015b Bug 1211900 - Update whitenoise to v2.0.4
https://github.com/evansd/whitenoise/blob/master/CHANGELOG.rst#v204
https://github.com/evansd/whitenoise/compare/v2.0.2...v2.0.4
2015-10-06 15:30:19 +01:00
Ed Morley cfe5ffca3a Bug 1210748 - Update to hawkrest v0.0.8 since v0.0.6 removed from PyPI
https://github.com/kumar303/hawkrest/compare/0.0.6...0.0.8
2015-10-05 16:40:03 +01:00
Ed Morley 8be78f1f57 Bug 1192957 - Add isort v4.2.2 to dev.txt
https://github.com/timothycrosley/isort
2015-10-02 17:54:47 +01:00
Cameron Dawson d23435f8ed Bug 1169320, 1199506 - Adds requirements, settings and JSON schema for Pulse Ingestion 2015-10-01 15:50:12 -07:00
Mauro Doglio 38a2e3a1b5 Bug 1160111 - Add requirements for hawkrest 2015-09-29 21:22:22 +02:00
Cameron Dawson 546f1bec98 Bug 1205888 - Adds base settings for pulse exchange ingestion
These are the settings (which can be overridden by environment variables)
that will be used to specify which Pulse exchanges we ingest data from

This also introduces the ``django-environ`` package which will be used
elsewhere as we move away from ``local.py`` files on the stage/prod
servers.
2015-09-22 15:06:53 -07:00
Mauro Doglio aa91f022ab Bug 1201140 - Add sqlparse to the requirements file
This is required to execute migrations using migrations.RunSQL.
See https://docs.djangoproject.com/en/1.8/ref/migration-operations/#runsql for more info
2015-09-15 10:19:31 +01:00
Mauro Doglio c38d21813e Bug 1182464 - update mozlog version 2015-09-03 10:50:12 +02:00
Ed Morley 5db78a106f Bug 1199378 - Update New Relic Python agent to v2.54.0.41
https://docs.newrelic.com/docs/release-notes/agent-release-notes/python-release-notes/python-agent-254041
2015-08-27 19:29:29 +01:00
Mauro Doglio caebeeb794 Bug 1159167 - Update to latest django-browserid
The latest version of django-browserid removes a view that we used to fetch to retrieve
basig config params for the browserid client initialization. We now have loginUrl and logoutUrl
hardcoded in the client and we fetch the user login status from a dedicated endpoint.
2015-08-20 13:48:58 +01:00
Mauro Doglio 1ab14030ce Bug 1181879 - upgrade django to 1.8.4 2015-08-19 19:53:55 +01:00
Ed Morley 90ba77e596 Bug 1192801 - Remove per-file MPL boilerplate since it's unnecessary
The MPL 2.0 terms state that as long as a LICENSE file is present, the
per-file header text is not required. See "Exhibit A" at the end of:
https://www.mozilla.org/MPL/2.0/
2015-08-18 23:32:11 +01:00
Ed Morley 392af575dc Bug 1169944 - Remove requirements/prod.txt since it contains no packages
We had to do at least one deploy after the initial landing of
bug 1169944, before removing prod.txt, to avoid errors during update.py.
That has now occurred, so we can remove the file.
2015-08-18 23:04:08 +01:00
Ed Morley f9ee81d999 Bug 1169944 - Always install the New Relic package, not just on prod
For bug 1124278, we're going to want to sprinkle new relic annotations
around the codebase, so by always installing it, we save having to stub
these out in development/on Travis. It also seems wise to have prod
running as close to the same packages as in development.

Since NEW_RELIC_LICENSE_KEY isn't set locally, plus
NEW_RELIC_DEVELOPER_MODE is set to true, the New Relic agent doesn't
submit anything. See:
https://docs.newrelic.com/docs/agents/python-agent/installation-configuration/python-agent-configuration#developer_mode
2015-08-11 23:23:26 +01:00
Ed Morley f9d2efddb8 Revert "Bug 1189499 - Use link to .tar.gz when downloading python-memcached"
This reverts commit 39ecfd1716, since
the mis-versioned package has now been removed, so the workaround is no
longer needed:
https://github.com/linsomniac/python-memcached/issues/72#issuecomment-126793510
2015-08-03 10:33:50 +01:00
William Lachance 39ecfd1716 Bug 1189499 - Use link to .tar.gz when downloading python-memcached
The wheel package which is the default to be installed accidentally got
swapped with 1.55: https://github.com/linsomniac/python-memcached/issues/72
2015-07-30 16:46:30 -04:00