From d8ce1447fa5115cc1c5119619628e7efb379fa92 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 27 Nov 2019 15:22:31 +0100 Subject: [PATCH] Clean up git repo --- .gitignore | 33 ++++++++++++++++--- .idea/encodings.xml | 4 +++ .idea/inspectionProfiles/Project_Default.xml | 11 +++++++ .../markdown-navigator/profiles_settings.xml | 3 ++ .idea/modules.xml | 8 +++++ .idea/royalnet.iml | 19 +++++++++++ .idea/vcs.xml | 6 ++++ royalnet/configurator.py | 27 --------------- 8 files changed, 79 insertions(+), 32 deletions(-) create mode 100644 .idea/encodings.xml create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/markdown-navigator/profiles_settings.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/royalnet.iml create mode 100644 .idea/vcs.xml delete mode 100644 royalnet/configurator.py diff --git a/.gitignore b/.gitignore index 44102923..1b4cf416 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,29 @@ -*.egg-info -.idea/ -dist/ -**/__pycache__/ -config.toml +# Royalnet ignores +config*.toml downloads/ + + +# Python ignores +**/__pycache__/ +dist/ +*.egg-info/ +**/*.pyc + +# PyCharm ignores +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf +.idea/**/contentModel.xml +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml +.idea/**/gradle.xml +.idea/**/libraries +.idea/**/markdown-navigator.xml +.idea/**/misc.xml diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 00000000..15a15b21 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 00000000..828aba99 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,11 @@ + + + + \ No newline at end of file diff --git a/.idea/markdown-navigator/profiles_settings.xml b/.idea/markdown-navigator/profiles_settings.xml new file mode 100644 index 00000000..db062663 --- /dev/null +++ b/.idea/markdown-navigator/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 00000000..502cd4e7 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/royalnet.iml b/.idea/royalnet.iml new file mode 100644 index 00000000..3dcd20ac --- /dev/null +++ b/.idea/royalnet.iml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..94a25f7f --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/royalnet/configurator.py b/royalnet/configurator.py deleted file mode 100644 index 2bc70d38..00000000 --- a/royalnet/configurator.py +++ /dev/null @@ -1,27 +0,0 @@ -import click -import keyring - - -@click.command() -def run(): - click.echo("Welcome to the Royalnet configuration creator!") - secrets_name = click.prompt("Desired secrets name", default="__default__") - network = click.prompt("Herald password", default="") - if network: - keyring.set_password(f"Royalnet/{secrets_name}", "herald", network) - telegram = click.prompt("Telegram Bot API token", default="") - if telegram: - keyring.set_password(f"Royalnet/{secrets_name}", "telegram", telegram) - discord = click.prompt("Discord Bot API token", default="") - if discord: - keyring.set_password(f"Royalnet/{secrets_name}", "discord", discord) - imgur = click.prompt("Imgur API token", default="") - if imgur: - keyring.set_password(f"Royalnet/{secrets_name}", "imgur", imgur) - sentry = click.prompt("Sentry DSN", default="") - if sentry: - keyring.set_password(f"Royalnet/{secrets_name}", "sentry", sentry) - - -if __name__ == "__main__": - run()