From d10545eadf70f74cfbb0b13e3fa91439f9e22dbe Mon Sep 17 00:00:00 2001 From: Jorge Sanz Date: Tue, 2 Oct 2018 15:37:20 +0200 Subject: [PATCH] bump to 0.0.2 --- README.md | 20 +++++++++++++------- carto_cli/carto/version.py | 2 +- requirements.txt | 2 +- setup.py | 6 +++--- 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index d3a4d34..6a3fcdc 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,14 @@ -`$ carto_cli` +`$ carto-cli` ========================= -**WORK IN PROGRESS** - ## TO-DO * Finish visualization and named maps interactions * Set up defaults system for formats and a default account +* Add subcommands to `carto_env` to add, update and remove entries +* Support new `COPY` methods +## TL;DR A simple set of command line applications to interact with your own CARTO account. @@ -22,7 +23,11 @@ A simple set of command line applications to interact with your own CARTO accoun ### How to install -As for now you need to clone or download the repo and run `pip install .` or `python setup.py install`. +The package is available at [pypi](https://pypi.org/project/carto-cli/) so you can just run: + +``` +$ pip install carto-cli +``` ### How to contribute @@ -65,10 +70,11 @@ Commands: version Prints the version of this application ``` -So if you have the `$CARTO_ENV` environment pointing for example to `/tmp/cartoenv` and then you define `alias c="source $CARTO_ENV"` then you can load any user of your database with: +So if you have the `$CARTO_ENV` environment pointing for example to `/tmp/cartoenv`, then you you can load any user of your database with: ```bash -$ carto_env load jsanz; c +$ carto_env load jsanz +$ source /tmp/cartoenv; echo $CARTO_API_URL ``` ### Configuration file @@ -198,4 +204,4 @@ Commands: ## `carto_map` -Manage your maps \ No newline at end of file +Manage your maps diff --git a/carto_cli/carto/version.py b/carto_cli/carto/version.py index bf5d506..3cc23ab 100644 --- a/carto_cli/carto/version.py +++ b/carto_cli/carto/version.py @@ -1,6 +1,6 @@ import click -CARTO_CLI_VERSION='0.0.0' +CARTO_CLI_VERSION='0.0.2' @click.command(help='Prints the version of this application') @click.help_option('-h', '--help') diff --git a/requirements.txt b/requirements.txt index f58455e..c9fe87c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -carto==1.1.2 +carto==1.3.0 click==6.7 PyYAML==3.12 prettytable==0.7.2 diff --git a/setup.py b/setup.py index 57795c9..9350963 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ def read(fname): with open('requirements.txt') as f: required = f.read().splitlines() except: - required = ['carto>=1.0.1', 'click>=6.6'] + required = ['carto==1.3.0', 'click>=6.7','PyYAML=3.12','prettytable=0.7.2'] try: with open('test_requirements.txt') as f: @@ -26,13 +26,13 @@ def read(fname): setup(name="carto-cli", author="Jorge Sanz", - author_email="jorge@carto.com", + author_email="xurxosanz@gmail.com", description="Command Line applications to interact with your CARTO account", long_description=read('README.md'), keywords = "carto cli cartodb api", license="MIT", version=CARTO_CLI_VERSION, - url="https://github.com/CartoDB/carto-cli", + url="https://github.com/jsanz/carto_cli", install_requires=required, packages=find_packages(), include_package_data=True,