-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Move python code to its own directory
- Loading branch information
1 parent
8144a03
commit 7efa77a
Showing
64 changed files
with
173 additions
and
179 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
skore/LICENSE |
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,48 +1,37 @@ | ||
SKORE_ROOT ?= ".datamander" | ||
|
||
pip-compile: | ||
pip-compile --output-file=requirements.txt pyproject.toml | ||
pip-compile --extra=test --output-file=requirements-test.txt pyproject.toml | ||
pip-compile --extra=tools --output-file=requirements-tools.txt pyproject.toml | ||
python -m piptools compile --output-file=skore/requirements.txt skore/pyproject.toml | ||
python -m piptools compile --extra=test --output-file=skore/requirements-test.txt skore/pyproject.toml | ||
python -m piptools compile --extra=tools --output-file=skore/requirements-tools.txt skore/pyproject.toml | ||
|
||
install: | ||
install-skore: | ||
python -m pip install \ | ||
-e . \ | ||
-r requirements.txt \ | ||
-r requirements-test.txt \ | ||
-r requirements-tools.txt | ||
pre-commit install | ||
|
||
check-wip: | ||
pre-commit run --all-files | ||
python -m pytest tests | ||
|
||
serve-api: | ||
SKORE_ROOT=$(SKORE_ROOT) python -m uvicorn \ | ||
--factory skore.ui.app:create_app \ | ||
--reload --reload-dir ./src \ | ||
--host 0.0.0.0 \ | ||
--port 22140 \ | ||
--timeout-graceful-shutdown 0 | ||
-e skore/ \ | ||
-r skore/requirements.txt \ | ||
-r skore/requirements-test.txt \ | ||
-r skore/requirements-tools.txt | ||
|
||
serve-ui: | ||
SKORE_ROOT=$(SKORE_ROOT) python -m uvicorn \ | ||
--factory skore.ui.app:create_app \ | ||
--reload --reload-dir ./src \ | ||
--host 0.0.0.0 \ | ||
--port 22140 \ | ||
--timeout-graceful-shutdown 0 | ||
pre-commit install | ||
|
||
build-skore-ui: | ||
# cleanup | ||
rm -rf skore-ui/dist | ||
rm -rf src/skore/ui/static | ||
rm -rf skore/src/skore/ui/static | ||
# build | ||
(\ | ||
cd skore-ui;\ | ||
npm install;\ | ||
npm run build;\ | ||
npm run build:lib -- --emptyOutDir false;\ | ||
( \ | ||
cd skore-ui; \ | ||
npm install; \ | ||
npm run build; \ | ||
npm run build:lib -- --emptyOutDir false; \ | ||
) | ||
# move | ||
mv skore-ui/dist/ src/skore/ui/static | ||
mv skore-ui/dist/ skore/src/skore/ui/static | ||
|
||
serve-skore-ui: | ||
SKORE_ROOT=$(SKORE_ROOT) python -m uvicorn \ | ||
--factory skore.ui.app:create_app \ | ||
--reload --reload-dir skore/src \ | ||
--host 0.0.0.0 \ | ||
--port 22140 \ | ||
--timeout-graceful-shutdown 0 |
Oops, something went wrong.