-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(env): create infra automatically (#17)
- Loading branch information
1 parent
4299d5b
commit 4d51e08
Showing
156 changed files
with
21,563 additions
and
5,071 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.idea | ||
/get-pip.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade setuptools wheel | ||
install_mode=${1:-poetry} | ||
download_model_version=${2:-none} | ||
|
||
pip install -e packages/inference | ||
if [ $download_model_version != 'none' ]; then | ||
# Download the model from here : | ||
# https://github.com/guillaume-chervet/MLOpsPython/releases/download/v0.1.0/mlopspython_model.zip | ||
# Unzip it | ||
curl -L https://github.com/guillaume-chervet/MLOpsPython/releases/download/v0.1.0/mlopspython_model.zip --output model.zip | ||
unzip model.zip -d ./production/api/core/model | ||
rm model.zip | ||
fi | ||
|
||
cd packages/inference/ | ||
python setup.py sdist bdist_wheel | ||
cd dist | ||
cp *.whl ../../../train/evaluate/packages | ||
cp *.whl ../../../production/api/packages | ||
cd ../../../ | ||
|
||
pip install -e packages/extraction | ||
|
||
cd packages/extraction/ | ||
python setup.py sdist bdist_wheel | ||
cd dist | ||
cp *.whl ../../../train/extraction/packages | ||
cp *.whl ../../../production/api/packages | ||
cd ../../../ | ||
if [ $install_mode = 'pip' ]; then | ||
echo "Installing with pip (degraded mode)" | ||
chmod +x pip-install.sh | ||
./pip-install.sh | ||
else | ||
echo "Installing with poetry (default mode)" | ||
chmod +x poetry-install.sh | ||
./poetry-install.sh | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
/build/ | ||
/dist/ | ||
**/*.egg-info/ | ||
**/__pycache__/ | ||
**/__pycache__/ | ||
/.coverage |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[tool.poetry] | ||
name = "mlopspython_extraction" | ||
version = "0.0.0" | ||
description = "" | ||
authors = ["Guillaume Chervet <[email protected]>"] | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8,<3.11" | ||
pymupdf = "1.23.3" | ||
|
||
|
||
[tool.poetry.group.dev.dependencies] | ||
coverage = "^7.3.1" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
pymupdf==1.21.1 | ||
pymupdf==1.23.3 ; python_version >= "3.8" and python_version < "3.11" | ||
pymupdfb==1.23.3 ; python_version >= "3.8" and python_version < "3.11" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
/build/ | ||
/dist/ | ||
**/*.egg-info/ | ||
**/__pycache__/ | ||
**/__pycache__/ | ||
/.coverage |
Oops, something went wrong.