From 395e9fc71b134b39380d4e0a38bdffc9a0052a34 Mon Sep 17 00:00:00 2001 From: Kamran Ali Date: Tue, 6 Sep 2022 22:10:13 +0100 Subject: [PATCH] add __main__ entrypoint and change docker image --- .circleci/config.yml | 2 +- auther/__main__.py | 7 +++++++ setup.py | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 auther/__main__.py diff --git a/.circleci/config.yml b/.circleci/config.yml index b813025..630620e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -55,4 +55,4 @@ jobs: command: echo 'export VERSION='${CIRCLE_TAG:-$(cat setup.py | egrep -o "([0-9]+)\.([0-9]+)\.([0-9]+)")} >> $BASH_ENV - run: name: Build docker image - command: docker buildx build . --platform linux/arm64,linux/amd64 -t trewq34/auther-test:${VERSION} -t trewq34/auther-test:latest --push + command: docker buildx build . --platform linux/arm64,linux/amd64 -t trewq34/auther:${VERSION} -t trewq34/auther:latest --push diff --git a/auther/__main__.py b/auther/__main__.py new file mode 100644 index 0000000..4224251 --- /dev/null +++ b/auther/__main__.py @@ -0,0 +1,7 @@ +from auther import cli + +def main(): + cli.app() + +if __name__ == '__main__': + main() \ No newline at end of file diff --git a/setup.py b/setup.py index 73bbe88..49bfc89 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name="auther", - version="0.0.6-dev", + version="0.0.6-dev1", author="Kamran Ali", author_email="auther@trewq34.com", description="Command line tool for AWS CLI authentication",