Bug 181832 - [NEW PORT] net/py-gspreadsheet: Interface to Google spreadsheets with csv.DictReader syntax
Summary: [NEW PORT] net/py-gspreadsheet: Interface to Google spreadsheets with csv.Dic...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Rusmir Dusko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-05 08:50 UTC by Johannes Meixner
Modified: 2013-10-29 18:20 UTC (History)
0 users

See Also:


Attachments
.shar (4.52 KB, text/plain)
2013-09-05 08:50 UTC, Johannes Meixner
no flags Details
py-gspreadsheet.shar (3.47 KB, application/x-shar; charset=us-ascii)
2013-10-29 15:04 UTC, Johannes Meixner
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Meixner 2013-09-05 08:50:00 UTC
gspreadsheet is a wrapper around a wrapper to get Google spreadsheets to look
like csv.DictReader.  If you're used to working with CSVs or a human, you'll 
find that working with Google's Python API for spreadsheets is so frustrating. 
With gspreadsheet, you can adapt your existing csv code to work with Google 
Spreadsheets with just two line changes. As an added bonus, if you alter the 
dict, those changes get saved back to the original spreadsheet.

WWW: https://github.com/texastribune/gspreadsheet

Generated with FreeBSD Port Tools 0.99_8 (mode: new)
Comment 1 Rusmir Dusko freebsd_committer freebsd_triage 2013-10-24 17:34:58 UTC
Responsible Changed
From-To: freebsd-ports-bugs->nemysis

I'll take it.
Comment 2 Johannes Meixner 2013-10-29 15:04:10 UTC
Patch fixes the following:

* Replace setuptools with distutils core
* Thus, support for staging

Johannes Meixner
http://www.meixner.or.at
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-10-29 18:11:07 UTC
Author: nemysis
Date: Tue Oct 29 18:10:58 2013
New Revision: 331977
URL: http://svnweb.freebsd.org/changeset/ports/331977

Log:
  gspreadsheet is a wrapper around a wrapper to get Google spreadsheets to look
  like csv.DictReader.  If you're used to working with CSVs or a human, you'll
  find that working with Google's Python API for spreadsheets is so frustrating.
  With gspreadsheet, you can adapt your existing csv code to work with Google
  Spreadsheets with just two line changes. As an added bonus, if you alter the
  dict, those changes get saved back to the original spreadsheet.
  
  WWW: https://github.com/texastribune/gspreadsheet
  
  PR:		ports/181832
  Submitted by:	Johannes Jost Meixner <xmj@chaot.net>
  Approved by:	wg (mentor)

Added:
  head/net/py-gspreadsheet/
  head/net/py-gspreadsheet/Makefile   (contents, props changed)
  head/net/py-gspreadsheet/distinfo   (contents, props changed)
  head/net/py-gspreadsheet/files/
  head/net/py-gspreadsheet/files/patch-setup.py   (contents, props changed)
  head/net/py-gspreadsheet/pkg-descr   (contents, props changed)
Modified:
  head/net/Makefile

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Tue Oct 29 18:00:51 2013	(r331976)
+++ head/net/Makefile	Tue Oct 29 18:10:58 2013	(r331977)
@@ -904,6 +904,7 @@
     SUBDIR += py-eventlet
     SUBDIR += py-gntp
     SUBDIR += py-google
+    SUBDIR += py-gspreadsheet
     SUBDIR += py-impacket
     SUBDIR += py-iplib
     SUBDIR += py-kombu

Added: head/net/py-gspreadsheet/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/py-gspreadsheet/Makefile	Tue Oct 29 18:10:58 2013	(r331977)
@@ -0,0 +1,28 @@
+# Created by: Johannes Meixner <xmj@chaot.net>
+# $FreeBSD$
+
+PORTNAME=	gspreadsheet
+PORTVERSION=	0.3.0
+CATEGORIES=	net python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	xmj@chaot.net
+COMMENT=	Wrapper around Google Spreadsheets to look like csv.DictReader
+
+LICENSE=	AL2
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gdata>0:${PORTSDIR}/devel/py-gdata
+USE_PYTHON=		2.7
+USE_PYDISTUTILS=	yes
+PYDISTUTILS_AUTOPLIST=	yes
+
+PORTDOCS=	README.rst
+
+OPTIONS_DEFINE=	DOCS
+
+post-install:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>

Added: head/net/py-gspreadsheet/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/py-gspreadsheet/distinfo	Tue Oct 29 18:10:58 2013	(r331977)
@@ -0,0 +1,2 @@
+SHA256 (gspreadsheet-0.3.0.tar.gz) = 102e4714f5e9f21a1a0118aeaef6772d77013ca03f1028326e9b00fa13143460
+SIZE (gspreadsheet-0.3.0.tar.gz) = 7342

Added: head/net/py-gspreadsheet/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/py-gspreadsheet/files/patch-setup.py	Tue Oct 29 18:10:58 2013	(r331977)
@@ -0,0 +1,8 @@
+--- ./setup.py.orig	2013-10-29 16:50:19.871040385 +0200
++++ ./setup.py	2013-10-29 16:51:00.781040301 +0200
+@@ -1,4 +1,4 @@
+-from setuptools import setup
++from distutils.core import setup
+ 
+ with open('README.rst') as f:
+     long_description = f.read()

Added: head/net/py-gspreadsheet/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/py-gspreadsheet/pkg-descr	Tue Oct 29 18:10:58 2013	(r331977)
@@ -0,0 +1,8 @@
+gspreadsheet is a wrapper around a wrapper to get Google spreadsheets to look
+like csv.DictReader.  If you're used to working with CSVs or a human, you'll 
+find that working with Google's Python API for spreadsheets is so frustrating. 
+With gspreadsheet, you can adapt your existing csv code to work with Google 
+Spreadsheets with just two line changes. As an added bonus, if you alter the 
+dict, those changes get saved back to the original spreadsheet.
+
+WWW: https://github.com/texastribune/gspreadsheet
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Rusmir Dusko freebsd_committer freebsd_triage 2013-10-29 18:11:49 UTC
State Changed
From-To: open->closed

New port added, with minor changes. Thanks!