Skip to content

Commit

Permalink
Modify scripts in scripts directory, remove unused scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewcarbone committed Mar 29, 2024
1 parent 3b7ce70 commit af60f98
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 78 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
python-version: 3.9

- name: Build and apply version
run: bash scripts/build_project.sh
run: bash scripts/build.sh

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
29 changes: 0 additions & 29 deletions scripts/LICENSE

This file was deleted.

7 changes: 0 additions & 7 deletions scripts/README.md

This file was deleted.

File renamed without changes.
25 changes: 0 additions & 25 deletions scripts/build_docs.sh

This file was deleted.

20 changes: 4 additions & 16 deletions scripts/install.sh
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

0 comments on commit af60f98

Please sign in to comment.