Skip to content

Commit ae8cdbe

Browse files
committed
uploaded to pypi: updated setup and readme
1 parent 0cd415a commit ae8cdbe

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,26 @@ The cartodb-python project is a Python client for the [CartoDB SQL API](http://d
66

77
You can install cartodb-python by cloning this repository or by using [Pip](http://pypi.python.org/pypi/pip), a Python package installer similar to easy_install.
88

9+
```bash
10+
pip install cartodb
11+
```
12+
13+
or if you want to use the development version
914

1015
```bash
1116
pip install -e git+git://github.com/javisantana/cartodb-python.git#egg=cartodb
1217
```
1318

14-
Note that cartodb-python depends on the python-oauth2 module:
19+
Note that cartodb-python depends on the ouath2 module
20+
21+
```bash
22+
pip install oauth2
23+
```
24+
25+
and if you're running python < 2.6 you need to install simplejson
1526

1627
```bash
17-
sudo apt-get install python-oauth2
28+
pip install simplejson
1829
```
1930

2031

@@ -36,4 +47,4 @@ try:
3647
print cl.sql('select * from mytable')
3748
except CartoDBException as e:
3849
print ("some error ocurred", e)
39-
```
50+
```

setup.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11

22
from distutils.core import setup
3+
import sys
4+
5+
REQUIRES = ['oauth2']
6+
if sys.version_info < (2 , 6):
7+
REQUIRES.append('simplejson')
38

49
setup(name='cartodb',
510
author = 'Javi Santana',
611
author_email = 'jsantana@vizzuality.com',
712
description = 'client to access cartodb api',
813
url='https://github.com/javisantana/cartodb',
9-
version='0.2',
14+
version='0.3',
15+
install_requires=REQUIRES,
1016
packages=['cartodb'],
11-
requires = ['oauth2', 'simplejson']
17+
requires = REQUIRES
1218
)

0 commit comments

Comments
 (0)