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

165 Коммитов

Автор SHA1 Сообщение Дата
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
Ed Morley 1af312e0cc Bug 1175432 - Use dj-database-url to simplify DB environment variables
dj-database-url extracts DB host, port, username, password and database
name from the env variable 'DATABASE_URL' (unless another env variable
name is specified). If the env variable is not defined, it falls back to
the default passed to dj_database_url.config().

This means for Heroku and similar we can replace the multiple DB env
variables with just one URL for default & one for read_only.

This also effectively makes the setting of the read only DB variable
mandatory for stage/production/heroku, since DEFAULT_DATABASE_URL won't
be valid for them - so prevents us inadvertently not using the read only
DB.

The deployment script also had to be updated, so that we set the
prod/stage-specific environment variables before using manage.py, since
dj-database-url cannot rely on what's in the stage/prod local.py config
(which isn't a bad thing, since we're deprecating that file).
2015-07-15 14:58:46 +01:00
Mauro Doglio 3f34e5da13 Bug 1145712 - upgrade django-rest-framework from 2.4.5 to 3.1.3
This patch upgrades the version stored in the requirements file and fixes some issues introduced by breaking changes in the new version of the library:
 - Writable nested fields are not available anymore, you need an explicit create method on the serializer to write a nested field.
 - ModelViewSet now requires serializer_class and queryset attributes.
 - @action and @link decorators are now replaced by either @detail_route or @list_route.
 - any attempt to create a ModelSerializer instance with an attribute which type is either dict or list will raise an exception.
2015-07-15 10:34:46 +01:00
Ed Morley 044adae263 Bug 1182994 - Update to datasource v0.9
* Fixes the `offset` parameter, since it previously used the value for
  `limit` instead.
* The `limit` and `offset` parameters are now cast to int, to prevent
  SQL injection if those parameters were not sanitised in the app.
  Note: This intentionally removes the ability to pass a comma delimited
  `limit` string of say "100,200" - since the now-working `offset`
  parameter makes this redundant.

https://github.com/jeads/datasource/compare/v0.8...v0.9
2015-07-13 13:38:55 +01:00
Ed Morley 50ca297bdd Bug 1182485 - Update to datasource v0.8
To pick up the whitespace-stripping change, amongst others:
https://github.com/jeads/datasource/compare/v0.7...v0.8
2015-07-10 21:45:04 +01:00
Ed Morley cc4d813844 Bug 1181836 - Update Django to v1.7.9
https://docs.djangoproject.com/en/1.7/releases/1.7.8/
https://docs.djangoproject.com/en/1.7/releases/1.7.9/

https://github.com/django/django/compare/1.7.7...1.7.9
2015-07-10 14:25:45 +01:00
Ed Morley d84aa3a166 Bug 1181819 - Update django-cors-headers to v1.1.0
https://github.com/ottoyiu/django-cors-headers/releases
and older: https://github.com/ottoyiu/django-cors-headers#changelog

https://github.com/ottoyiu/django-cors-headers/compare/v0.11...1.1.0
2015-07-10 14:23:37 +01:00
Ed Morley 9371347bc2 Revert "Bug 1175432 - Use dj-database-url to simplify DB environment variables"
This reverts commit 3330b3c567.
2015-07-09 23:05:49 +01:00
Ed Morley 3330b3c567 Bug 1175432 - Use dj-database-url to simplify DB environment variables
dj-database-url extracts DB host, port, username, password and database
name from the env variable 'DATABASE_URL' (unless another env variable
name is specified). If the env variable is not defined, it falls back to
the default passed to dj_database_url.config().

This means for Heroku and similar we can replace the multiple DB env
variables with just one URL for default & one for read_only.

This also effectively makes the setting of the read only DB variable
mandatory for stage/production/heroku, since DEFAULT_DATABASE_URL won't
be valid for them - so prevents us inadvertently not using the read only
DB.

Before this is deployed, we'll need to update the stage/prod puppet
configs & Heroku settings to add the new environment variable.
2015-07-09 17:54:29 +01:00
Ed Morley 0c53e1f68a Bug 1181587 - Update python-memcached to v1.53
https://github.com/linsomniac/python-memcached/blob/master/ChangeLog
https://github.com/linsomniac/python-memcached/compare/8078ecfe...release-1.53

python-memcached v1.54 has a performance regression, so only update to
v1.53 for now. See:
https://github.com/linsomniac/python-memcached/issues/71
2015-07-09 12:38:30 +01:00
Ed Morley 27fed6557f Revert ea0fbedf17 ("Bug 1181587 - Update python-memcached to v1.54")
To confirm whether this caused a response time regression for memcached
gets and sets.
2015-07-09 10:13:00 +01:00
Ed Morley 8cf618c2d7 Bug 1181816 - Update requests to v2.7.0
https://github.com/kennethreitz/requests/blob/master/HISTORY.rst
https://github.com/kennethreitz/requests/compare/v2.6.2...v2.7.0
2015-07-09 00:52:38 +01:00
Ed Morley ae13ff1289 Bug 1181813 - Update Unipath to v1.1
https://github.com/mikeorr/Unipath/blob/master/CHANGES
https://github.com/mikeorr/Unipath/compare/v1.0...v1.1
2015-07-09 00:50:26 +01:00
Ed Morley 0fdb8c04a3 Bug 1181778 - Update httplib2 to v0.9.1
https://github.com/jcgregorio/httplib2/blob/master/CHANGELOG
https://github.com/jcgregorio/httplib2/compare/8e63343d...v0.9.1
2015-07-09 00:45:38 +01:00
Ed Morley f47f376312 Bug 1181776 - Update jsonschema to v2.5.1
https://github.com/Julian/jsonschema/blob/master/CHANGELOG.rst
https://github.com/Julian/jsonschema/compare/v2.4.0...v2.5.1

jsonschema now also requires functools32.
2015-07-09 00:43:50 +01:00
Ed Morley 6e22199bb9 Bug 1181700 - Update simplejson to v3.7.3
https://github.com/simplejson/simplejson/blob/master/CHANGES.txt
https://github.com/simplejson/simplejson/compare/v3.6.5...v3.7.3
2015-07-09 00:42:39 +01:00
Ed Morley 3233e7ab01 Bug 1181696 - Update jsonfield to v1.0.3
https://github.com/bradjasper/django-jsonfield#changes
https://github.com/bradjasper/django-jsonfield/compare/68ee4349...1.0.3
2015-07-08 19:49:41 +01:00
Ed Morley a3d19b230c Bug 1181693 - Update futures to v3.0.3
Only one change:
* Fixed AttributeErrors on exit on Python 2.x

https://github.com/agronholm/pythonfutures/blob/master/CHANGES
https://github.com/agronholm/pythonfutures/compare/3.0.2...3.0.3
2015-07-08 19:33:52 +01:00
Ed Morley 0287ea1cc1 Bug 1181600 - Update pytz to v2015.4 2015-07-08 16:08:53 +01:00
Ed Morley ea0fbedf17 Bug 1181587 - Update python-memcached to v1.54
https://github.com/linsomniac/python-memcached/blob/master/ChangeLog
https://github.com/linsomniac/python-memcached/compare/8078ecfe...release-1.54

python-memcached now requires the package 'six', so that has to be
listed in common.txt and not just dev.txt.
2015-07-08 15:40:08 +01:00
Ed Morley bb9a81d75a Bug 1181531 - Update py to v1.4.30 and pytest to v2.7.2
http://pytest.org/latest/changelog.html
https://github.com/pytest-dev/pytest/compare/2.6.4...2.7.2

aea9674297/CHANGELOG
https://bitbucket.org/pytest-dev/py/branches/compare/1.4.30%0D1.4.26
2015-07-08 12:58:01 +01:00
Ed Morley e2e4226dea Bug 1181525 - Update beautifulsoup4 to v4.4.0
http://bazaar.launchpad.net/~leonardr/beautifulsoup/bs4/view/head:/NEWS.txt
2015-07-08 12:17:37 +01:00
Ed Morley 1bd721f7bc Bug 1176482 - WhiteNoise: Update to v2.0.2
https://github.com/evansd/whitenoise/blob/master/CHANGELOG.rst
https://github.com/evansd/whitenoise/compare/v1.0.6...v2.0.2
2015-07-08 11:06:46 +01:00
Ed Morley 58813b0c51 Bug 1169916 - Stop using Cython to build the log parser
Since it only speeds up parsing by a few percent of total runtime, and
is therefore not worth the added complexity for deployment and local
hack-test-debug cycles when working on the log parser.

The .gitignore and update.py entries will be removed in a later commit,
once the stage/prod src directories have been cleaned up.
2015-06-30 14:51:57 +01:00
Ed Morley c929f1d0b2 Bug 1176413 - Update to New Relic Python agent v2.52.0.40 2015-06-25 17:41:49 -07:00
Ed Morley bf4c7c05ff Bug 1151803 - Serve the UI using gunicorn/WhiteNoise instead of Apache
In order that we can serve the UI on Heroku, we wrap the Django wsgi app
with WhiteNoise, so both the UI and API requests are served by gunicorn.

In the Vagrant environment, Apache has been removed and Varnish instead
now proxies all requests to gunicorn/Django runserver directly, without
Apache as a go-between.

The UI on production will not be affected by this commit, since the
Apache config there will still intercept requests for the UI assets
rather than proxying them to gunicorn.

It's worth noting too, that we're not able to make use of WhiteNoise's
automatic Django GZip/caching support since that assumes we are using
Django templates and referring to resources using {% static "foo.css" %}

However, we can sub-class WhiteNoise (or more specifically the
DjangoWhiteNoise class) and override the is_immutable_file() method to
add caching support at a later date:
http://whitenoise.evans.io/en/latest/base.html#caching-headers

Documentation for WhiteNoise can be found at:
http://whitenoise.evans.io/
2015-06-19 15:56:23 +01:00