From e3b67172367bf8d86a25376cfbab0aed237a2038 Mon Sep 17 00:00:00 2001 From: enciyo Date: Mon, 10 Jun 2024 02:52:45 +0300 Subject: [PATCH] Release --- che.properties | 2 +- che/utils.py | 15 ++++----------- gh_che.egg-info/PKG-INFO | 12 ++++++++++++ gh_che.egg-info/SOURCES.txt | 23 +++++++++++++++++++++++ gh_che.egg-info/dependency_links.txt | 1 + gh_che.egg-info/entry_points.txt | 2 ++ gh_che.egg-info/requires.txt | 5 +++++ gh_che.egg-info/top_level.txt | 1 + release.sh | 1 - 9 files changed, 49 insertions(+), 13 deletions(-) create mode 100644 gh_che.egg-info/PKG-INFO create mode 100644 gh_che.egg-info/SOURCES.txt create mode 100644 gh_che.egg-info/dependency_links.txt create mode 100644 gh_che.egg-info/entry_points.txt create mode 100644 gh_che.egg-info/requires.txt create mode 100644 gh_che.egg-info/top_level.txt diff --git a/che.properties b/che.properties index 4fc2939..1313e0c 100644 --- a/che.properties +++ b/che.properties @@ -1,2 +1,2 @@ -version=1.0.15 +version=1.0.16 python=3.11 diff --git a/che/utils.py b/che/utils.py index 241861a..3950ef2 100644 --- a/che/utils.py +++ b/che/utils.py @@ -6,7 +6,7 @@ __SAMPLE_MD = os.path.join(os.path.dirname(__file__), "sample.md") __PREF_DIR = "ai/copilot" - +__CONFIG = os.path.join(os.path.expanduser("~"), ".cache", "gh-che", "config.json") def __author_name(): @@ -83,8 +83,7 @@ def write_to_json_file(conversations: dict): def get_config(): - config_path = os.path.join(os.path.dirname(__file__), "config.json") - if not os.path.exists(config_path): + if not os.path.exists(__CONFIG): save_config( { "port": 9696, @@ -93,16 +92,10 @@ def get_config(): "listen_url": "https://api.githubcopilot.com/chat/completions" } ) - with open(config_path, "r+") as f: + with open(__CONFIG, "r+") as f: return json.load(f) def save_config(config): - config_path = os.path.join(os.path.dirname(__file__), "config.json") - with create_or_open_file(config_path, "w+") as f: + with create_or_open_file(__CONFIG, "w+") as f: json.dump(config, f, indent=2, default=str, ensure_ascii=False) - - -if __name__ == '__main__': - print(__current_branch()) - print(__author_name()) diff --git a/gh_che.egg-info/PKG-INFO b/gh_che.egg-info/PKG-INFO new file mode 100644 index 0000000..b663c85 --- /dev/null +++ b/gh_che.egg-info/PKG-INFO @@ -0,0 +1,12 @@ +Metadata-Version: 2.1 +Name: gh-che +Version: 1.0.15 +Summary: Chat History Exporter +Author: mustafakilic +Author-email: ben@mustafakilic.com +License: LICENCE +Requires-Python: ~=3.11 +License-File: LICENCE +Requires-Dist: mitmproxy; python_version == "3.11" +Requires-Dist: click +Requires-Dist: setuptools diff --git a/gh_che.egg-info/SOURCES.txt b/gh_che.egg-info/SOURCES.txt new file mode 100644 index 0000000..769e715 --- /dev/null +++ b/gh_che.egg-info/SOURCES.txt @@ -0,0 +1,23 @@ +LICENCE +README.md +setup.py +che/__init__.py +che/binding.py +che/config.json +che/main.py +che/sample.md +che/utils.py +che/intercept/__init__.py +che/intercept/cache.py +che/intercept/chain.py +che/intercept/conversation.py +che/intercept/interceptor.py +che/intercept/markdown.py +che/intercept/request.py +che/intercept/vote.py +gh_che.egg-info/PKG-INFO +gh_che.egg-info/SOURCES.txt +gh_che.egg-info/dependency_links.txt +gh_che.egg-info/entry_points.txt +gh_che.egg-info/requires.txt +gh_che.egg-info/top_level.txt \ No newline at end of file diff --git a/gh_che.egg-info/dependency_links.txt b/gh_che.egg-info/dependency_links.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/gh_che.egg-info/dependency_links.txt @@ -0,0 +1 @@ + diff --git a/gh_che.egg-info/entry_points.txt b/gh_che.egg-info/entry_points.txt new file mode 100644 index 0000000..e53b2d2 --- /dev/null +++ b/gh_che.egg-info/entry_points.txt @@ -0,0 +1,2 @@ +[console_scripts] +gh-che = che.main:main diff --git a/gh_che.egg-info/requires.txt b/gh_che.egg-info/requires.txt new file mode 100644 index 0000000..e064cb2 --- /dev/null +++ b/gh_che.egg-info/requires.txt @@ -0,0 +1,5 @@ +click +setuptools + +[:python_version == "3.11"] +mitmproxy diff --git a/gh_che.egg-info/top_level.txt b/gh_che.egg-info/top_level.txt new file mode 100644 index 0000000..2f6b764 --- /dev/null +++ b/gh_che.egg-info/top_level.txt @@ -0,0 +1 @@ +che diff --git a/release.sh b/release.sh index fe4e17a..96d16c7 100644 --- a/release.sh +++ b/release.sh @@ -1,5 +1,4 @@ #bin/bash -# Commit all change git add . git commit -m "Release" git push origin main