Bug 202918

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:
Description Flags
poudriere log
none
shar archive
none
shar archive
none
shar archive
none
Updated shar
none
poudriere log none

Description Yuri Victorovich freebsd_committer freebsd_triage 2015-09-06 02:42:01 UTC
Created attachment 160757 [details]
poudriere log
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2015-09-06 02:42:30 UTC
Created attachment 160758 [details]
shar archive
Comment 2 Yuri Victorovich freebsd_committer freebsd_triage 2015-09-06 02:44:16 UTC
Created attachment 160759 [details]
shar archive
Comment 3 Yuri Victorovich freebsd_committer freebsd_triage 2015-09-06 02:44:54 UTC
Created attachment 160761 [details]
shar archive
Comment 4 Jan Beich freebsd_committer freebsd_triage 2015-09-25 12:59:20 UTC
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
Comment 5 Yuri Victorovich freebsd_committer freebsd_triage 2015-09-25 16:59:27 UTC
Created attachment 161386 [details]
Updated shar

Thanks for noticing this. Attaching an updated shar.
Comment 6 Yuri Victorovich freebsd_committer freebsd_triage 2015-09-25 17:15:32 UTC
Created attachment 161391 [details]
poudriere log
Comment 7 commit-hook freebsd_committer freebsd_triage 2015-11-05 21:41:38 UTC
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