-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify scripts in scripts directory, remove unused scripts
- Loading branch information
1 parent
3b7ce70
commit af60f98
Showing
6 changed files
with
5 additions
and
78 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,22 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# Good stuff. The poor man's toml parser | ||
# https://github.com/pypa/pip/issues/8049 | ||
# This is the analog of pip install -e ".[...]" since for whatever reason | ||
# it does not appear to work cleanly with pip | ||
|
||
install_test_requirements_only () { | ||
python3 -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["project"]["optional-dependencies"]["test"]))' | pip install -r /dev/stdin | ||
} | ||
|
||
install_requirements() { | ||
python3 -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["project"]["dependencies"]))' | pip install -r /dev/stdin | ||
} | ||
|
||
|
||
pip install toml | ||
|
||
if [ "$1" = "test" ]; then | ||
install_test_requirements_only | ||
python3 -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["project"]["optional-dependencies"]["test"]))' | pip install -r /dev/stdin | ||
|
||
else | ||
install_requirements | ||
python3 -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["project"]["dependencies"]))' | pip install -r /dev/stdin | ||
fi |