Commit Graph

33 Commits

Author SHA1 Message Date
Feanil Patel
a7fa0c211d Revert "PLAT-2060 Use pip-tools to manage requirements files" 2018-04-10 12:54:41 -04:00
Jeremy Bowman
432347b881 PLAT-2060 Use pip-tools to manage requirements files 2018-04-09 17:07:02 -04:00
Feanil Patel
041059f740 Update the other requirements to use pyparsing 2.2.0 as well. 2018-03-16 15:47:34 -04:00
bmedx
6a22de454f Upgrade NLTK to 3.2.5, fixup usage and tests 2018-02-07 10:42:23 -05:00
Kshitij Sobti
d8b236da87 Upgrade setuptools to avoid bug while installing of OpenStack requirements
RE: pypa/setuptools#951
2018-01-24 12:47:52 +05:30
Fred Smith
c02c4f9fb7 Merge pull request #15325 from isms/sandbox-cryptography
Add cryptography package to sandbox environment
2017-11-03 13:53:14 -04:00
John Eskew
b7fc838d6f Upgrade lxml in its other versioned requirement location. 2017-09-27 12:09:24 -04:00
Isaac Slavitt
ff1a9a1590 Add cryptography package to sandbox environment
The cryptography package is designed to be the "cryptographic
standard library" for Python developers. (Documents are online
at https://cryptography.io/en/latest/).

The use case for adding this is to bring encrypted claims from
outside edX into a course for assigning a grade using CAPA.
As an example, imagine that users enrolled in a computer security
and penetration testing class on edX are challenged to advance
as many levels as possible in a certain capture-the-flag (CTF)
puzzle hosted on an external app.

The external platform may provide the users an encrypted, tamper-
resistant token allowing them to enter that into an edX CAPA
auto-graded exercise in order for the edX user to claim credit
within the edX course.

For example, the external platform might take some plaintext JSON
like this:

    {'user': 'isaac@example.com', 'score': 30}

And then use the Fernet symmetric encryption to give the user a
token like this:

    gAAAAABZQX8xwdtvpdnTtuXWQUnbTPVA-Gw5dz6-kXFuKi0_2jpqFkSG
    Dhy-BugBx38xhUfbmao9KwIhcxZt0uBAE0WT_uzjagLn7BwRIQP4Ap_B
    r4e797QQllWcaHXVHhskHk6ETohc

Because the external platform and the `loncapa/python` script share
a secret, this token (1) means nothing to the user, (2) can be
decrypted on the edX side and used accordingly, and (3) won't
work if tampered with in between.

There are probably other use cases for using tokens, HMAC, or
encryption with autograded exercises. In any case, the crytography
library is well tested and reliable, so adding it presents little
risk and will probably benefit others.
2017-06-14 14:13:29 -04:00
Matjaz Gregoric
aca929de69 Move matplotlib to post requirements.
Matplotlib depends on numpy, so we want to ensure the correct version
of numpy is already installed when we attempt to install matplotlib.
2017-05-12 11:16:34 +02:00
Ned Batchelder
84b25dd896 Keep the sandbox reqs in sync 2017-01-25 15:11:23 -05:00
Ned Batchelder
8d791b5823 Use latest pyparsing 2.0.x to avoid setuptools entanglement
With 2.0.1, and setuptools 34.0.2, errors happen like:

File "/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/packaging/requirements.py", line 59, in <module>
    MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
TypeError: __call__() takes exactly 2 arguments (1 given)

(cherry picked from commit 73519b3547359a0b791e39d4665f51ac66449a17)
2017-01-25 15:10:02 -05:00
Ned Batchelder
5ab7f995f2 Better instructions about who to ping for requirements changes 2016-08-29 12:21:37 -04:00
Kevin Falcone
bd515185f8 Instead of listing devops, use our group 2015-11-25 13:47:56 -05:00
David Baumgold
fcf84e68d0 Update lxml to 3.4.4 2015-07-13 16:14:39 -04:00
David Baumgold
28433e1d53 Don't install nltk in editable mode 2015-07-09 13:31:18 -04:00
David Baumgold
705fa6999a Use a forked version of NLTK
So that we can use setuptools instead of distribute
2015-07-09 13:04:33 -04:00
Adam Palay
33ddecbc97 update nltk in other parts of the platform 2015-04-08 11:28:49 -04:00
stv
c7e7b5622a Update contact info for licensing questions 2014-11-26 15:16:04 -05:00
David Baumgold
883c9cee84 Upgrade scipy, lxml, boto 2014-09-17 10:48:33 -04:00
Feanil Patel
45b2e5033e Add matplotlib to the sandbox requirements.
Used by MITx/6.341x
2014-09-12 13:26:01 -04:00
David Baumgold
c4505e7350 Downgrade scipy, lxml, boto, edx-ora2 2014-07-31 12:06:13 -04:00
David Baumgold
44f987138e Update lxml to 3.3.5 2014-07-31 10:13:03 -04:00
Ben Weeks
4aa969539d Updating SciPy 2014-07-29 11:02:53 -04:00
David Baumgold
cb5e3c8111 Upgrade pyparsing to 2.0.1 2014-04-02 16:09:53 -04:00
David Ormsbee
ed508f8400 Merge pull request #556 from edx/ormsbee/requirments_notice
Dependency warning message on requirements files
2013-09-06 08:35:36 -07:00
Adam Palay
6078f4c67e add nltk to sandbox reqs 2013-09-04 10:12:44 -04:00
Adam Palay
1ab59a2c3d add pyparsing explicitly to sandbox requirements 2013-09-03 10:00:46 -04:00
David Ormsbee
b6b4f0f987 Dependency warning message on requirements files 2013-08-01 14:49:49 -04:00
e0d
39ee489460 adding sympy and networkx 2013-06-04 13:27:57 -04:00
Ned Batchelder
88d3f253b6 Move symmath to be its own directory, and install it into the sandbox. 2013-05-31 15:22:16 -04:00
e0d
bf20760922 changes to refactor local requirements. 2013-05-22 10:19:30 -04:00
Ned Batchelder
ce005072b0 Sandbox-installed packages will be really installed instead of -e installed. 2013-05-21 19:21:39 -04:00
John Jarvis
b8acb39ce1 moving sandbox requirements 2013-05-16 14:32:27 -04:00