From a9954f2037ec8b9e7e3ca80323abd492e12ad835 Mon Sep 17 00:00:00 2001 From: Ari Brown Date: Thu, 27 Jul 2023 14:16:36 -0400 Subject: [PATCH] more stuff to build package --- access.py => minerva.py | 0 pyproject.toml | 20 ++++++++++++++++++++ test.py | 4 ++-- 3 files changed, 22 insertions(+), 2 deletions(-) rename access.py => minerva.py (100%) create mode 100644 pyproject.toml diff --git a/access.py b/minerva.py similarity index 100% rename from access.py rename to minerva.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..74f820a --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,20 @@ +[project] +name = "minerva" +version = "0.1.0" +description = "Easier access to AWS Athena" +dependencies = [ + "boto3", + "pyarrow" +] + +[tool.poetry] +name = "wharfer" +version = "0.1.0" +description = "Easier access to AWS Athena" +authors = [ + "Ari Brown " +] +packages = [ + { include = "minerva.py" } +# { include = "minerva/**/*.py"} +] diff --git a/test.py b/test.py index 3798007..9bd4563 100644 --- a/test.py +++ b/test.py @@ -1,9 +1,9 @@ -import access as a +import minerva as m import pprint pp = pprint.PrettyPrinter(indent=4) -athena = a.Athena("hay", "s3://haystac-pmo-athena/") +athena = m.Athena("hay", "s3://haystac-pmo-athena/") query = athena.query('select * from "trajectories"."kitware" limit 10') data = query.results() print(data.head(10))