Summary: | [NEW PORT] www/py-google: Python bindings to the Google search engine | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Yuri Victorovich <yuri> | ||||||||||||||
Component: | Individual Port(s) | Assignee: | Pawel Pekala <pawel> | ||||||||||||||
Status: | Closed FIXED | ||||||||||||||||
Severity: | Affects Only Me | CC: | jbeich, pawel | ||||||||||||||
Priority: | --- | ||||||||||||||||
Version: | Latest | ||||||||||||||||
Hardware: | Any | ||||||||||||||||
OS: | Any | ||||||||||||||||
Bug Depends on: | |||||||||||||||||
Bug Blocks: | 202900 | ||||||||||||||||
Attachments: |
|
Created attachment 160758 [details]
shar archive
Created attachment 160759 [details]
shar archive
Created attachment 160761 [details]
shar archive
Make sure to do a basic test of runtime for py-* packages e.g., via |poudriere -i| for interactive environment: $ poudriere bulk -Citj 93i386 www/py-google $ python2.7 >>> import google >>> for res in google.search("foobar"):print(res) ... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/site-packages/google/__init__.py", line 225, in search from BeautifulSoup import BeautifulSoup ImportError: No module named BeautifulSoup But in this case setup.py already has a hint requires=['beautifulsoup4'], while the code has # Lazy import of BeautifulSoup. # Try to use BeautifulSoup 4 if available, fall back to 3 otherwise. global BeautifulSoup if BeautifulSoup is None: try: from bs4 import BeautifulSoup except ImportError: from BeautifulSoup import BeautifulSoup Created attachment 161386 [details]
Updated shar
Thanks for noticing this. Attaching an updated shar.
Created attachment 161391 [details]
poudriere log
A commit references this bug: Author: pawel Date: Thu Nov 5 21:41:30 UTC 2015 New revision: 400873 URL: https://svnweb.freebsd.org/changeset/ports/400873 Log: Google search from Python. WWW: https://breakingcode.wordpress.com/ PR: 202918 Submitted by: Yuri Victorovich <yuri@rawbw.com> Changes: head/www/Makefile head/www/py-google/ head/www/py-google/Makefile head/www/py-google/distinfo head/www/py-google/pkg-descr |
Created attachment 160757 [details] poudriere log