-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #486 from onyxfish/agate
Agate integration
- Loading branch information
Showing
49 changed files
with
306 additions
and
1,123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
language: python | ||
python: | ||
- "2.6" | ||
- "2.7" | ||
- "pypy" | ||
- "3.3" | ||
- "3.4" | ||
- "3.5" | ||
install: | ||
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install -r requirements-py2.txt --use-mirrors --allow-external argparse; fi | ||
- if [[ $TRAVIS_PYTHON_VERSION == "2.7" ]]; then pip install -r requirements-py2.txt; fi | ||
- if [[ $TRAVIS_PYTHON_VERSION == "pypy" ]]; then pip install -r requirements-py2.txt; fi | ||
- if [[ $TRAVIS_PYTHON_VERSION == "3.3" ]]; then pip install -r requirements-py3.txt; fi | ||
- if [[ $TRAVIS_PYTHON_VERSION == "3.4" ]]; then pip install -r requirements-py3.txt; fi | ||
- if [[ $TRAVIS_PYTHON_VERSION == "3.5" ]]; then pip install -r requirements-py3.txt; fi | ||
script: nosetests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,20 @@ | ||
#!/usr/bin/env python | ||
|
||
""" | ||
This module contains csvkit's superpowered replacement for the builtin :mod:`csv` module. For Python 2 users, the greatest improvement over the standard library full unicode support. Python 3's :mod:`csv` module supports unicode internally, so this module is provided primarily for compatability purposes. | ||
This module contains csvkit's superpowered alternative to the standard Python | ||
CSV reader and writer. It can be used as a drop-in replacement for the standard | ||
module. | ||
* Python 2: :mod:`csvkit.py2`. | ||
* Python 3: :mod:`csvkit.py3`. | ||
""" | ||
|
||
import six | ||
.. warn:: | ||
if six.PY2: | ||
from csvkit import py2 | ||
|
||
CSVKitReader = py2.CSVKitReader | ||
CSVKitWriter = py2.CSVKitWriter | ||
CSVKitDictReader = py2.CSVKitDictReader | ||
CSVKitDictWriter = py2.CSVKitDictWriter | ||
reader = py2.reader | ||
writer = py2.writer | ||
DictReader = py2.CSVKitDictReader | ||
DictWriter = py2.CSVKitDictWriter | ||
else: | ||
from csvkit import py3 | ||
Since version 1.0 csvkit relies on `agate <http://agate.rtfd.org>`_'s | ||
CSV reader and writer. This module is supported for legacy purposes only and you | ||
should migrate to using agate. | ||
""" | ||
|
||
CSVKitReader = py3.CSVKitReader | ||
CSVKitWriter = py3.CSVKitWriter | ||
CSVKitDictReader = py3.CSVKitDictReader | ||
CSVKitDictWriter = py3.CSVKitDictWriter | ||
reader = py3.reader | ||
writer = py3.writer | ||
DictReader = py3.CSVKitDictReader | ||
DictWriter = py3.CSVKitDictWriter | ||
import agate | ||
|
||
reader = agate.reader | ||
writer = agate.writer | ||
DictReader = agate.DictReader | ||
DictWriter = agate.DictWriter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.