From 93574f7d4bbaad109bb40fe080df65dc80313209 Mon Sep 17 00:00:00 2001 From: XxMistaCruzxX Date: Fri, 2 Feb 2024 14:42:59 -0500 Subject: [PATCH 1/2] Added more hatchling configuration to pyproject.toml --- idep.sh | 5 ----- pyproject.toml | 5 ++++- requirements.txt | 5 +++++ 3 files changed, 9 insertions(+), 6 deletions(-) delete mode 100644 idep.sh create mode 100644 requirements.txt diff --git a/idep.sh b/idep.sh deleted file mode 100644 index 073f749..0000000 --- a/idep.sh +++ /dev/null @@ -1,5 +0,0 @@ -py -m pip install beautifulsoup4 -py -m pip install EbookLib -py -m pip install replicate -py -m pip install google-cloud-aiplatform -py -m pip install pytesseract \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index e2a760d..1189c4d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,9 +9,12 @@ requires = [ ] build-backend = "hatchling.build" +[tool.hatch.build.targets.wheel] +packages = ["src"] # Adjust this based on your project structure + [project] name = "alt-text" -version = "0.1.0" +version = "0.2.0" authors = [ { name = "Free Ebook Foundation", email = "eric@ebookfoundation.org" }, { name = "Jack Byrne", email = "jbyrne4@stevens.edu" }, diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..b180a9b --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +beautifulsoup4 +EbookLib +replicate +google-cloud-aiplatform +pytesseract \ No newline at end of file From 3ab8838903b194dd7026b2bc105be2e20316cc58 Mon Sep 17 00:00:00 2001 From: XxMistaCruzxX Date: Fri, 2 Feb 2024 14:53:18 -0500 Subject: [PATCH 2/2] Changed packages path in pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1189c4d..d1cb08a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ requires = [ build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] -packages = ["src"] # Adjust this based on your project structure +packages = ["src/alttext"] [project] name = "alt-text"