Skip to content

Commit

Permalink
Minor clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
JosePizarro3 committed Jan 28, 2025
1 parent 9664634 commit 9095881
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 24 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@

The BAM Masterdata is a repository containing all the masterdata schema defining in BAM, as well as some utility functions to handle the masterdata.

<!--

## Getting started

Add here installation instructions once the package is deployed -->
`bam-masterdata` can be installed as a PyPI package using `pip`:
```sh
pip install bam-masterdata
```

## Development

Expand All @@ -28,7 +31,7 @@ source .venv/bin/activate
Run the following script:

```sh
./scripts/install_python_dependencies
./scripts/install_python_dependencies.sh
```

### Run the tests
Expand Down
5 changes: 0 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@ dev = [
"python-decouple",
"structlog==24.4.0",
]
jupy = [
"jupyterlab",
"notebook",
"ipywidgets",
]
docu = [
"mkdocs-material",
"mkdocs-click",
Expand Down
17 changes: 1 addition & 16 deletions scripts/install_python_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,13 @@
# Fail immediately if any command exits with a non-zero status
set -e

echo "Initializing submodules..."
git submodule update --init --recursive

echo "Making sure pip is up to date..."
pip install --upgrade pip

echo "Installing uv..."
pip install uv

echo "Installing main project dependencies..."
uv pip install -e '.[dev,docu,jupy]'

echo "Installing submodule dependencies..."
SUBMODULE_PATH="bam_masterdata/dependencies/openbisschema"

if [ -d "$SUBMODULE_PATH" ]; then
pushd "$SUBMODULE_PATH" > /dev/null
uv pip install -e '.[test,doc]'
popd > /dev/null
else
echo "Submodule path $SUBMODULE_PATH does not exist. Initialization may have failed."
exit 1
fi
uv pip install -e '.[dev,docu]'

echo "All dependencies installed successfully."

0 comments on commit 9095881

Please sign in to comment.