| 1 | --- |
| 2 | tags: news, python, non-technical |
| 3 | date: 2016-10-31 00:00 |
| 4 | title: 3.6.0 Release of Hypothesis for Python |
| 5 | author: drmaciver |
| 6 | --- |
| 7 | |
| 8 | This is a release announcement for the 3.6.0 release of Hypothesis for |
| 9 | Python. It's a bit of an emergency release. |
| 10 | |
| 11 | Hypothesis 3.5.0 inadvertently added a dependency on GPLed code (see below |
| 12 | for how this happened) which this release removes. This means that if you |
| 13 | are running Hypothesis 3.5.x then there is a good chance you are in violation |
| 14 | of the GPL and you should update immediately. |
| 15 | |
| 16 | Apologies for any inconvenience this may have caused. |
| 17 | |
| 18 | <!--more--> |
| 19 | |
| 20 | ### From the Changelog |
| 21 | |
| 22 | This release reverts Hypothesis to its old pretty printing of lambda functions |
| 23 | based on attempting to extract the source code rather than decompile the bytecode. |
| 24 | This is unfortunately slightly inferior in some cases and may result in you |
| 25 | occasionally seeing things like `lambda x: <unknown>` in statistics reports and |
| 26 | strategy reprs. |
| 27 | |
| 28 | This removes the dependencies on uncompyle6, xdis and spark-parser. |
| 29 | |
| 30 | The reason for this is that the new functionality was based on uncompyle6, which |
| 31 | turns out to introduce a hidden GPLed dependency - it in turn depended on xdis, |
| 32 | and although the library was licensed under the MIT license, it contained some |
| 33 | GPL licensed source code and thus should have been released under the GPL. |
| 34 | |
| 35 | My interpretation is that Hypothesis itself was never in violation of the GPL |
| 36 | (because the license it is under, the Mozilla Public License v2, is fully |
| 37 | compatible with being included in a GPL licensed work), but I have not consulted |
| 38 | a lawyer on the subject. Regardless of the answer to this question, adding a |
| 39 | GPLed dependency will likely cause a lot of users of Hypothesis to inadvertently |
| 40 | be in violation of the GPL. |
| 41 | |
| 42 | As a result, if you are running Hypothesis 3.5.x you really should upgrade to |
| 43 | this release immediately. |
| 44 | |
| 45 | ### Notes |
| 46 | |
| 47 | This Halloween release brought to you by the specter of inadvertent GPL |
| 48 | violations (but sadly this is entirely real and neither trick nor treat). |
| 49 | |
| 50 | This dependency also caused a number of other problems, so in many ways its |
| 51 | not entirely a bad thing that it's gone, but it's still sad to remove |
| 52 | functionality. At some point in the future I will try to restore the |
| 53 | lost functionality, but doing it without access to uncompyle6 will be a |
| 54 | moderate amount of work, so it's not going to be high priority in the |
| 55 | near future. |