Closed Bug 1121496 Opened 9 years ago Closed 9 years ago

Cleanup python dependencies

Categories

(Webtools Graveyard :: Elmo, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: adrian, Assigned: Pike)

References

Details

Attachments

(1 file)

We have a lot of dependencies in our requirement files, many inherited from Playdoh, that we might not really need anymore. Let's audit what we need and remove what we don't. 

We also want to make sure all dependencies listed in `prod.txt` are actually needed in production (i.e. when running the app through mod_wsgi). Things related to nose for example could probably be moved to `dev.txt`.
Blocks: 1141023
QA Contact: l10n
Taking notes:

Need to review funfactory.monkeypatches.patch(). Notably accounts may need something, says accounts.tests:AccountsTestCase.test_django_session.csrf. Though the test passes without.
Assignee: nobody → l10n
QA Contact: l10n
Peter, I'd like to ask you for review on this one, as the only thing that really needs review here is how I monkeypatch elmo for session_csrf, and how I drop the other monkeys from https://github.com/mozilla/funfactory/blob/d85bcca/funfactory/monkeypatches.py (that's the specific version that elmo uses right now).

In order of appearance, the monkeys there seem to be
logging (not in elmo)
jinja2 (safe_forms, which isn't in nuggets anymore, not in elmo)
session_csrf (yes)
jinja2, again (not in elmo)

Doing a fake PR here, as I want to keep this as a few commits. I might even make an explicit merge commit on this one, too.
Attachment #8575310 - Flags: review?(peterbe)
Comment on attachment 8575310 [details] [review]
Remove a bunch of stuff we don't need, monkeypatch session_csrf only

https://github.com/mozilla/elmo/pull/13#issuecomment-78073871
Attachment #8575310 - Flags: review?(peterbe)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Blocks: 1141581
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: