This repository has been archived by the owner on Jan 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
52 lines (47 loc) · 1.64 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from carto_cli.carto.version import CARTO_CLI_VERSION
import os
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# Get the dependencies
try:
with open('requirements.txt') as f:
required = f.read().splitlines()
except:
required = ['carto==1.3.0', 'click>=6.7', 'PyYAML==3.12', 'prettytable==0.7.2']
try:
with open('test_requirements.txt') as f:
test_required = f.read().splitlines()
except:
pass
setup(name="carto-cli",
author="Jorge Sanz",
author_email="[email protected]",
description="Command Line applications to interact with your CARTO account",
long_description=read('README.md'),
long_description_content_type="text/markdown",
keywords="carto cli cartodb api",
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
],
version=CARTO_CLI_VERSION,
url="https://github.com/jsanz/carto_cli",
install_requires=required,
packages=find_packages(),
include_package_data=True,
entry_points='''
[console_scripts]
carto_cli=carto_cli.app:cli
carto_env=carto_cli.carto_env:cli
carto_sql=carto_cli.carto_sql:cli
carto_batch=carto_cli.carto_batch:cli
carto_dataset=carto_cli.carto_dataset:cli
''')