-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
1,359 additions
and
109 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
|
||
[[ ! -f "LICENSE" ]] && echo "run the script from the project root directory like this: ./bin/local_install.sh" && exit 1 | ||
|
||
source .venv/bin/activate | ||
|
||
rm -rf ./runs | ||
|
||
uv sync --all-extras | ||
|
||
# QA | ||
flake8 roboquant tests || exit 1 | ||
pylint roboquant tests || exit 1 | ||
python -m unittest discover -s tests/unit || exit 1 | ||
uvx ruff check || exit 1 | ||
uv run python -m unittest discover -s tests/unit || exit 1 | ||
|
||
# Build | ||
rm -rf dist | ||
python -m build || exit 1 | ||
uv build || exit 1 | ||
|
||
# Install | ||
pip install . | ||
uv pip install . | ||
|
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,23 +1,22 @@ | ||
|
||
[[ ! -f "LICENSE" ]] && echo "run the script from the project root directory like this: ./bin/publish.sh" && exit 1 | ||
|
||
source .venv/bin/activate | ||
|
||
rm -rf ./runs | ||
|
||
uv sync --all-extras | ||
|
||
# QA | ||
flake8 || exit 1 | ||
pylint roboquant tests || exit 1 | ||
python -m unittest discover -s tests/unit || exit 1 | ||
uvx ruff check | ||
uv run python -m unittest discover -s tests/unit || exit 1 | ||
|
||
# Build | ||
rm -rf dist | ||
python -m build || exit 1 | ||
uv build || exit 1 | ||
|
||
# Publish | ||
read -p "Publish (y/n)? " ANSWER | ||
if [ "$ANSWER" = "y" ]; then | ||
twine upload dist/*; exit 0 | ||
uv publish; exit 0 | ||
else | ||
echo "Not published"; exit 1 | ||
fi |
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,11 +1,11 @@ | ||
|
||
[[ ! -f "LICENSE" ]] && echo "run the script from the project root directory like this: ./bin/verify.sh" && exit 1 | ||
|
||
source .venv/bin/activate | ||
uv sync --all-extras | ||
|
||
# QA | ||
flake8 || exit 1 | ||
pylint roboquant tests || exit 1 | ||
python -m unittest discover -s tests/unit || exit 1 | ||
echo "Running ruff" | ||
uvx ruff check || exit 1 | ||
echo "Running unittest" | ||
uv run python -m unittest discover -s tests/unit || exit 1 | ||
|
||
echo "All tests passed" |
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 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
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
Oops, something went wrong.