From 7b143af49d744479e73ac70643620fb015b4ee51 Mon Sep 17 00:00:00 2001 From: Meir Gabay Date: Sat, 10 Oct 2020 19:13:33 +0300 Subject: [PATCH 1/3] __main__.py instead of main.py --- .dockerignore | 2 +- main.py => __main__.py | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename main.py => __main__.py (100%) diff --git a/.dockerignore b/.dockerignore index dcf26f2..05a236a 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,7 +1,7 @@ ** !./test_functionality.sh !./setup.* -!./main.py +!./__main__.py !./README.md !./LICENSE !./version diff --git a/main.py b/__main__.py similarity index 100% rename from main.py rename to __main__.py From 1681ce4a8c2628955bd326876d0b9b8d7be3e6f1 Mon Sep 17 00:00:00 2001 From: Meir Gabay Date: Sat, 10 Oct 2020 21:29:20 +0300 Subject: [PATCH 2/3] addd backed __init__ --- __init__.py | 0 githubsecrets/__init__.py | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 __init__.py create mode 100644 githubsecrets/__init__.py diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/githubsecrets/__init__.py b/githubsecrets/__init__.py new file mode 100644 index 0000000..e69de29 From a90f55dbc1bff2e2e8a6dc7a95add19de327965a Mon Sep 17 00:00:00 2001 From: Meir Gabay Date: Sat, 10 Oct 2020 21:47:39 +0300 Subject: [PATCH 3/3] fix missing module --- .dockerignore | 1 - __init__.py | 0 __main__.py | 4 ---- githubsecrets/__main__.py | 4 ++++ githubsecrets/{cli.py => ghs.py} | 0 setup.py | 2 +- 6 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 __init__.py delete mode 100644 __main__.py create mode 100644 githubsecrets/__main__.py rename githubsecrets/{cli.py => ghs.py} (100%) diff --git a/.dockerignore b/.dockerignore index 05a236a..16ab130 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,7 +1,6 @@ ** !./test_functionality.sh !./setup.* -!./__main__.py !./README.md !./LICENSE !./version diff --git a/__init__.py b/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/__main__.py b/__main__.py deleted file mode 100644 index 3010f71..0000000 --- a/__main__.py +++ /dev/null @@ -1,4 +0,0 @@ -from githubsecrets import cli - -if __name__ == '__main__': - cli.cli() diff --git a/githubsecrets/__main__.py b/githubsecrets/__main__.py new file mode 100644 index 0000000..049e16f --- /dev/null +++ b/githubsecrets/__main__.py @@ -0,0 +1,4 @@ +from .ghs import cli + +if __name__ == '__main__': + cli() diff --git a/githubsecrets/cli.py b/githubsecrets/ghs.py similarity index 100% rename from githubsecrets/cli.py rename to githubsecrets/ghs.py diff --git a/setup.py b/setup.py index bed94b5..cc230da 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ ], entry_points=''' [console_scripts] - ghs=githubsecrets.cli:cli + ghs=githubsecrets.ghs:cli ''', setup_requires=[ 'setuptools>=44.1.0',