From 2b21cda41aa813a3b1b7fb06929675e7e4e05cfd Mon Sep 17 00:00:00 2001 From: ostix360 Date: Mon, 26 Jun 2023 09:28:01 +0200 Subject: Add pyproject.toml to build the project --- pyproject.toml | 20 ++++++++++++++++++++ requirements.txt | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..6f170632 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,20 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "gpt4free" +version = "0.2.0" +description = "" +authors = [] +license = { text = "GPL-3.0" } +readme = "README.md" +requires-python = ">=3.10" +dynamic = ["dependencies"] + +[tool.setuptools.packages.find] +exclude = ["**/*.txt", "/.v1/*"] + + +[tool.setuptools.dynamic] +dependencies = {file = ["requirements.txt"]} \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 0742c40b..7b9d01f2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,7 +9,7 @@ streamlit selenium fake-useragent twocaptcha -https://github.com/AI-Yash/st-chat/archive/refs/pull/24/head.zip +st-chat@git+https://github.com/AI-Yash/st-chat.git@ff0f4309d9f654a77955c4cf856a9cf4c3b6c54d pydantic pymailtm Levenshtein -- cgit v1.2.3 From 1a48e56b5db5815830b5ebcd80fa6d2d5fdfc4eb Mon Sep 17 00:00:00 2001 From: ostix360 Date: Mon, 26 Jun 2023 10:02:09 +0200 Subject: revert st-chat to head.zip in requirements.txt --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 7b9d01f2..9d4073a8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,7 +9,7 @@ streamlit selenium fake-useragent twocaptcha -st-chat@git+https://github.com/AI-Yash/st-chat.git@ff0f4309d9f654a77955c4cf856a9cf4c3b6c54d +st-chat@https://github.com/AI-Yash/st-chat/archive/refs/pull/24/head.zip pydantic pymailtm Levenshtein -- cgit v1.2.3 From ae5e1a9c49a4149974817ebe05e1af968764b4db Mon Sep 17 00:00:00 2001 From: ostix360 Date: Mon, 26 Jun 2023 10:08:12 +0200 Subject: fix requirements.txt --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 9d4073a8..1ec8ad45 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,7 +9,7 @@ streamlit selenium fake-useragent twocaptcha -st-chat@https://github.com/AI-Yash/st-chat/archive/refs/pull/24/head.zip +streamlit-chat@https://github.com/AI-Yash/st-chat/archive/refs/pull/24/head.zip pydantic pymailtm Levenshtein -- cgit v1.2.3 From abad284b8b8e27bf70137ff0b65660c9357b56e3 Mon Sep 17 00:00:00 2001 From: ostix360 Date: Mon, 26 Jun 2023 10:25:37 +0200 Subject: include g4f package --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 6f170632..10718ffa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,7 @@ dynamic = ["dependencies"] [tool.setuptools.packages.find] exclude = ["**/*.txt", "/.v1/*"] +include = ["g4f"] [tool.setuptools.dynamic] -- cgit v1.2.3