Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
  • Loading branch information
enciyo committed Jun 9, 2024
1 parent f867ad7 commit e3b6717
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 13 deletions.
2 changes: 1 addition & 1 deletion che.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version=1.0.15
version=1.0.16
python=3.11
15 changes: 4 additions & 11 deletions che/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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,
Expand All @@ -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())
12 changes: 12 additions & 0 deletions gh_che.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Metadata-Version: 2.1
Name: gh-che
Version: 1.0.15
Summary: Chat History Exporter
Author: mustafakilic
Author-email: [email protected]
License: LICENCE
Requires-Python: ~=3.11
License-File: LICENCE
Requires-Dist: mitmproxy; python_version == "3.11"
Requires-Dist: click
Requires-Dist: setuptools
23 changes: 23 additions & 0 deletions gh_che.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions gh_che.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 2 additions & 0 deletions gh_che.egg-info/entry_points.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[console_scripts]
gh-che = che.main:main
5 changes: 5 additions & 0 deletions gh_che.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
click
setuptools

[:python_version == "3.11"]
mitmproxy
1 change: 1 addition & 0 deletions gh_che.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
che
1 change: 0 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#bin/bash
# Commit all change
git add .
git commit -m "Release"
git push origin main
Expand Down

0 comments on commit e3b6717

Please sign in to comment.