From 39abd041d7efc02f5e30f9f88b3ca3b31788d73f Mon Sep 17 00:00:00 2001 From: George Yoshida Date: Fri, 26 Jan 2018 13:46:34 +0100 Subject: [PATCH] change package hierarchy --- athena_dl/__init__.py | 0 .../athena_batch_query.py | 2 -- athena_dl.py => athena_dl/athena_dl.py | 0 setup.py | 12 +++++++----- 4 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 athena_dl/__init__.py rename athena_batch_query.py => athena_dl/athena_batch_query.py (98%) rename athena_dl.py => athena_dl/athena_dl.py (100%) diff --git a/athena_dl/__init__.py b/athena_dl/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/athena_batch_query.py b/athena_dl/athena_batch_query.py similarity index 98% rename from athena_batch_query.py rename to athena_dl/athena_batch_query.py index 9ecd0b2..47660db 100644 --- a/athena_batch_query.py +++ b/athena_dl/athena_batch_query.py @@ -1,7 +1,5 @@ import logging import pprint -import sys -import traceback import boto3 from retrying import retry diff --git a/athena_dl.py b/athena_dl/athena_dl.py similarity index 100% rename from athena_dl.py rename to athena_dl/athena_dl.py diff --git a/setup.py b/setup.py index a72a660..19aee75 100644 --- a/setup.py +++ b/setup.py @@ -5,14 +5,16 @@ setup( name='Athena-DL', - version='0.1', - description='CLI to ', + version='0.5', + description='command line interface to query SQL to Amazon Athena and save its results', author='George Yoshida', url='https://github.com/quiver/athena-dl', - py_modules=['athena'], + packages=['athena_dl'], + include_package_data=True, install_requires=[ + 'boto3', 'Click', - 'retry', + 'retrying', ], classifiers=( 'Development Status :: 3 - Alpha', @@ -21,6 +23,6 @@ ), entry_points=''' [console_scripts] - athena-dl=athena_dl:cli + athena-dl=athena_dl.athena_dl:cli ''' )