Bug 208548 - devel/py-hypothesis: 1.18.1 -> 3.33.0
Summary: devel/py-hypothesis: 1.18.1 -> 3.33.0
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kurt Jaeger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-05 12:43 UTC by Kurt Jaeger
Modified: 2018-05-08 19:31 UTC (History)
7 users (show)

See Also:
bugzilla: maintainer-feedback? (brendan+freebsd)


Attachments
patch (1.02 KB, patch)
2016-04-05 12:43 UTC, Kurt Jaeger
no flags Details | Diff
Update to 3.33.0 (1.27 KB, patch)
2017-10-20 06:16 UTC, Yuri Victorovich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Jaeger freebsd_committer freebsd_triage 2016-04-05 12:43:08 UTC
Created attachment 169002 [details]
patch

Testbuilds fine, portlint -AC is fine, only dependency security/py-pymacaroons-pynacl is not version-sensible.
Comment 1 Brendan Molloy 2016-04-05 12:57:50 UTC
Hey,

Thanks for the patch! I've dropped the ball a bit lately (recovering from a sinus operation since two weeks ago).

Could you do me a massive favour and check that the tests for `security/py-pymacaroons-pynacl` still run and pass? I ask because this is a major version bump, which implies API breakage.
Comment 2 Kurt Jaeger freebsd_committer freebsd_triage 2016-04-05 13:24:48 UTC
Changelog:
  https://github.com/DRMacIver/hypothesis/blob/master/docs/changes.rst

make test for security/py-pymacaroons-pynacl fails:

======================================================================
ERROR: Failure: ImportError (cannot import name strategy)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/local/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/local/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/ports/security/py-pymacaroons-pynacl/work/pymacaroons-0.9.3/tests/property_tests/macaroon_property_tests.py", line 5, in <module>
    from hypothesis import assume, given, strategy
ImportError: cannot import name strategy

----------------------------------------------------------------------
Ran 22 tests in 0.154s
FAILED (SKIP=1, errors=1)

If I test with 1.18.1, it is sucessful.
Comment 3 Brendan Molloy 2016-04-05 13:56:19 UTC
Well this sucks, though there will be other packages in the future that rely on hypothesis 1.x anyway.

We may have to repackage hypothesis 3.1.0 as devel/py-hypothesis3 so packages that still rely on the 1.x series (there is no 2.x as they pulled it very quickly and incremented to 3.x) can still function appropriately.
Comment 4 Martin Wilke freebsd_committer freebsd_triage 2017-04-10 15:10:54 UTC
Submitter is committer.
Comment 5 Yuri Victorovich freebsd_committer freebsd_triage 2017-10-20 06:16:52 UTC
Created attachment 187321 [details]
Update to 3.33.0

I am not sure what happened with the previous patch.
security/py-pymacaroons-pynacl isn't a dependency in 3.33.0

Passes poudriere 11.1 amd64.
Comment 6 Kurt Jaeger freebsd_committer freebsd_triage 2017-10-20 19:28:19 UTC
(In reply to Yuri Victorovich from comment #5)
security/py-pymacaroons-pynacl has py-hypothesis as TEST_DEPENDS.

With 1.18.1 installed, security/py-pymacaroons-pynacl passes all 22 tests.

With 3.33.0 installed, security/py-pymacaroons-pynacl fails one of them:

ERROR: Failure: ImportError (cannot import name strategy)
Comment 7 Kurt Jaeger freebsd_committer freebsd_triage 2017-10-20 19:34:17 UTC
Btw, testbuilds are fine: cur 111 10i
Comment 8 Kurt Jaeger freebsd_committer freebsd_triage 2017-10-20 19:35:12 UTC
(In reply to Kurt Jaeger from comment #6)
I think the cause is some bug in devel/py-nose, but my py-foo is weak...
Comment 9 Yuri Victorovich freebsd_committer freebsd_triage 2017-10-23 16:16:21 UTC
(In reply to Kurt Jaeger from comment #8)

> ERROR: Failure: ImportError (cannot import name strategy)

'strategy' isn't exported from py-hypothesis any more. It has 'searchstrategy' now.

security/py-pymacaroons-pynacl gets source from https://github.com/matrix-org/pymacaroons This github project seems to be not up-to-date.

https://pypi.python.org/pypi/pymacaroons says that the latest version is 0.12.0, not 0.9.3.

I suggest:
* to switch to the latest python version as it appears on https://pypi.python.org/pypi/pymacaroons
* to remove '-pynacl' from the port name.

Yuri
Comment 10 Kurt Jaeger freebsd_committer freebsd_triage 2017-10-23 17:04:51 UTC
Tested make test with security/py-pymacaroons @0.12, same error:

ERROR: Failure: ImportError (No module named specifiers)

So besides an update, pymacaroons needs some patch as well to work
with hypothesis-3.33.0 ?
Comment 11 Yuri Victorovich freebsd_committer freebsd_triage 2017-10-23 17:08:23 UTC
(In reply to Kurt Jaeger from comment #10)

Then this is a bug in upstream of py-pymacaroons. They might be the best party that can help.
Comment 12 vali gholami 2017-11-26 20:48:16 UTC
MARKED AS SPAM
Comment 13 Walter Schwarzenfeld freebsd_triage 2018-05-08 19:31:37 UTC
py-hypothesis has version 3.56.5.
See
https://svnweb.freebsd.org/ports?view=revision&revision=468449

I close here, overcome by events.