Package Details: csvkit-git 0.9.1.r319.gea1e7bb-4

Git Clone URL: https://aur.archlinux.org/csvkit-git.git (read-only)
Package Base: csvkit-git
Description: A suite of utilities for converting to and working with CSV.
Upstream URL: http://csvkit.readthedocs.org
Licenses: MIT
Submitter: mszczepanczyk
Maintainer: kamazee
Last Packager: kamazee
Votes: 6
Popularity: 0.004042
First Submitted: 2013-04-09 12:52
Last Updated: 2016-07-08 19:14

Pinned Comments

kamazee commented on 2016-03-08 19:41

Dear all,

Feel free to submit a pull request at https://github.com/kamazee/aur-csvkit-git instead of posting patches here as it seems way more convenient (and doesn't swallow leading spaces). You can also make a patch using `git format-patch` and email it to me (address is in my profile).

Latest Comments

pmedina commented on 2016-05-03 20:56

Had to change the sources again to allow for proxy, see below.

source=(
'csvkit::git+https://github.com/wireservice/csvkit.git'
'agate::git+https://github.com/wireservice/agate.git'
'agate-excel::git+https://github.com/wireservice/agate-excel.git'
'agate-dbf::git+https://github.com/wireservice/agate-dbf.git'
)

kamazee commented on 2016-03-08 19:41

Dear all,

Feel free to submit a pull request at https://github.com/kamazee/aur-csvkit-git instead of posting patches here as it seems way more convenient (and doesn't swallow leading spaces). You can also make a patch using `git format-patch` and email it to me (address is in my profile).

kamazee commented on 2016-03-08 19:39

@ekkelett, I've pulled your changes in, thanks.

ekkelett commented on 2016-03-07 19:32

I've made a minor update to the PKGBUILD as there's a new organization hosting the repository, and the development has been relatively stable over new year's.

diff --git a/.SRCINFO b/.SRCINFO
index e19fc0f..cd1b3f6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,22 @@
+# Generated by mksrcinfo v8
+# Mon Mar 7 19:29:28 UTC 2016
pkgbase = csvkit-git
pkgdesc = A suite of utilities for converting to and working with CSV.
- pkgver = 0.9.1.gbf18815
- pkgrel = 2
+ pkgver = 1.0.0.g48f9602
+ pkgrel = 1
url = http://csvkit.readthedocs.org
arch = any
license = MIT
- makedepends = tar
- makedepends = gzip
+ makedepends = git
+ makedepends = python-setuptools
depends = python
depends = python-xlrd>=0.9.2
depends = python-dateutil>=2.0
depends = python-sqlalchemy>=0.9.3
depends = python-openpyxl>=2.0.3
depends = python-six>=1.6.1
- source = csvkit-0.9.1.tar.gz::https://github.com/onyxfish/csvkit/archive/0.9.1.tar.gz
- md5sums = 5708394caa93408254a15269a83cfeed
+ source = csvkit::git://github.com/wireservice/csvkit.git
+ md5sums = SKIP

pkgname = csvkit-git

diff --git a/.gitignore b/.gitignore
index effcdbf..f0d06db 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1 @@
-/csvkit-*.tar.[gx]z
-/src
-/pkg
+/csvkit-git-*.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
index 5eea2d7..9672e08 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,27 @@
# Maintainer: Alexander Kurilo <alex@kurilo.me>
# Contributor: Mariusz Szczepańczyk <mszczepanczyk@gmail.com>
-gittag=0.9.1
-gitrev=gbf18815
+# Contributor: Thor K. H. <thor alfakrøll roht dott no>
+
pkgname=csvkit-git
-pkgver=$gittag.$gitrev
-pkgrel=2
+pkgver=1.0.0.g48f9602
+pkgrel=1
pkgdesc="A suite of utilities for converting to and working with CSV."
arch=('any')
url="http://csvkit.readthedocs.org"
license=('MIT')
makedepends=('git')
depends=('python' 'python-xlrd>=0.9.2' 'python-dateutil>=2.0' 'python-sqlalchemy>=0.9.3' 'python-openpyxl>=2.0.3' 'python-six>=1.6.1')
-makedepends=('tar' 'gzip')
-md5sums=('5708394caa93408254a15269a83cfeed')
-source=("csvkit-$gittag.tar.gz::https://github.com/onyxfish/csvkit/archive/$gittag.tar.gz")
+makedepends=('git' 'python-setuptools')
+md5sums=('SKIP')
+source=('csvkit::git://github.com/wireservice/csvkit.git')
+
+pkgver() {
+ cd "$srcdir/csvkit"
+ git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+}

build() {
- cd "$srcdir/csvkit-$gittag"
+ cd "$srcdir/csvkit"
# Quick and dirty fix until the author officially supports dateutil>=2.2
# (see https://github.com/onyxfish/csvkit/issues/370)
sed -i 's/python-dateutil==2.2/python-dateutil>=2.2/' setup.py
@@ -24,7 +29,7 @@ build() {
}

package() {
- cd "$srcdir/csvkit-$gittag"
+ cd "$srcdir/csvkit"
python setup.py install --root="$pkgdir/"
}

pmedina commented on 2015-11-30 21:37

Please add 'python-setuptools' as a dependency.

kamazee commented on 2015-09-16 20:16

@pmedina, done, check it out.

Looks like it doesn't make much sense to build it from git because there has been no new commits for several months, so fetching the whole repo doesn't seem necessary anymore. I switch PKGBUILD to tarball and add a checksum for 0.9.1, so now it's only about 3 Mb of source code + md5 check to make sure it's downloaded properly.
I'll switch back to git master when it's updated.

pmedina commented on 2015-09-16 19:29

Had to change the source for it to work behind my proxy to the following:

source=('csvkit::git+https://github.com/onyxfish/csvkit.git')

Can you please change in the PKGBUILD?

kamazee commented on 2015-05-12 15:46

@IwfY, thanks, added this workaround for PKGBUILD.

IwfY commented on 2015-05-12 15:26

You can add this at line 26 to fix openpyxl dependency:

sed -i 's/openpyxl==2.2.0-b1/openpyxl>=2.2.0-b1/' setup.py

tantalum commented on 2015-04-23 17:17

trying to use csvcut in any way i get:

pkg_resources.DistributionNotFound: The 'openpyxl==2.2.0-b1' distribution was not found and is required by csvkit

kamazee commented on 2015-03-26 10:17

So, until the author upgrades dateutil, here is a PKGBUILD that does patching for you: https://raw.githubusercontent.com/kamazee/csvkit-aur/b77e92eb98831899c83674a026440daeec6bf2ec/csvkit-git/PKGBUILD

jtroesemeier commented on 2015-03-21 10:41

@pmedina,

there is an easy but dirty fix I used: just edit the /usr/lib/python3.4/site-packages/csvkit-1.0.0-py3.4.egg-info/requires.txt and replace python-dateutil==2.2 with python-dateutil>=2.2

Alternatively, you could downgrade to python-dateutil 2.2

Cheers

PS: The maintainer writes on the git issues page:

"[...] dateutil has previously introduced breaking changes rather suddenly so I've been leery of the >= spec. I'll take a look at 2.3 and likely upgrade. Thanks for opening an issue!"

jtroesemeier commented on 2015-03-21 10:38

@pmedina,

there is an easy but dirty fix I used: just edit the /usr/lib/python3.4/site-packages/csvkit-1.0.0-py3.4.egg-info/requires.txt and replace python-dateutil==2.2 with python-datautil>=2.2

Cheers

pmedina commented on 2014-12-16 23:07

There seems to be a conflict with the latest version of 'python-dateutil'

[pmedina@laptop ~]$ csvgrep
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 432, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 741, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 632, in resolve
raise VersionConflict(tmpl % args)
pkg_resources.VersionConflict: python-dateutil 2.3 is installed but python-dateutil==2.2 is required by ['csvkit']

khughitt commented on 2014-07-29 14:24

Python 3 now supported: https://github.com/onyxfish/csvkit/issues/239#issuecomment-50342600

ayr0 commented on 2013-10-23 04:08

python2-argparse is not longer needed as argparse is now part of the python standard library.

khughitt commented on 2013-09-25 10:02

Also, it's possible that the python2-argparse dependency can be dropped. It is now orphaned and may be included in python2.

khughitt commented on 2013-09-25 09:59

python2-sqlalchemy dependency needs to be modified -- the current stable version is 0.8.x, so you can probably just drop the min version requirement.

ishanarora commented on 2013-05-30 13:54

thanks.

mszczepanczyk commented on 2013-05-30 13:49

indeed. i didn't notice that. updated

ishanarora commented on 2013-05-30 13:38

No, i meant python2-distribute should be in depends variable.
All the csv tools in /usr/bin import from pkg_resources, which is provided by python2-distribute

mszczepanczyk commented on 2013-05-30 13:33

done

ishanarora commented on 2013-05-30 12:41

python2-distribute should also be a runtime dependency

mszczepanczyk commented on 2013-05-15 16:33

You're right. Thanks for pointing that out!

ishanarora commented on 2013-05-15 13:39

csvkit requires dbf>=0.94.003 (I maintain it as python2-dbf on AUR)
Your PKGBUILD mistakenly depends on dbfpy (python2-dbfpy), which is a different python module altogether

gtmanfred commented on 2013-04-10 04:34

please use commit count instead of date, what if there are more that one commits in the same day