Bug 202918 - [NEW PORT] www/py-google: Python bindings to the Google search engine
Summary: [NEW PORT] www/py-google: Python bindings to the Google search engine
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks: 202900
  Show dependency treegraph
 
Reported: 2015-09-06 02:42 UTC by Yuri Victorovich
Modified: 2015-11-06 04:36 UTC (History)
2 users (show)

See Also:


Attachments
poudriere log (13.03 KB, text/x-log)
2015-09-06 02:42 UTC, Yuri Victorovich
no flags Details
shar archive (1.39 KB, text/plain)
2015-09-06 02:42 UTC, Yuri Victorovich
no flags Details
shar archive (1.40 KB, text/plain)
2015-09-06 02:44 UTC, Yuri Victorovich
no flags Details
shar archive (1.40 KB, text/plain)
2015-09-06 02:44 UTC, Yuri Victorovich
no flags Details
Updated shar (1.49 KB, text/plain)
2015-09-25 16:59 UTC, Yuri Victorovich
no flags Details
poudriere log (13.21 KB, text/plain)
2015-09-25 17:15 UTC, Yuri Victorovich
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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