Skip to content

Commit

Permalink
Clean up script for installation and pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
JosePizarro3 committed Jan 29, 2025
1 parent 1069bf0 commit aafce0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 25 deletions.
8 changes: 1 addition & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,10 @@ dev = [
"python-decouple",
"structlog==24.4.0",
]
jupy = [
"jupyterlab",
"notebook",
"ipywidgets",
]
docu = [
"mkdocs",
"mkdocs-material",
"pymdown-extensions",
"mkdocs-click",
"mkdocstrings-python",
]

[project.scripts]
Expand Down
19 changes: 1 addition & 18 deletions scripts/install_python_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,11 @@
# 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

echo "All dependencies installed successfully."
uv pip install -e '.[dev,docu]'

2 comments on commit aafce0d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
bam_masterdata
   logger.py80100% 
bam_masterdata/cli
   cli.py724444 39%
   entities_to_excel.py5433 94%
   entities_to_json.py3655 86%
   excel_to_entities.py328314314 4%
   fill_masterdata.py195181181 7%
bam_masterdata/datamodel
   collection_types.py370100% 
   dataset_types.py184184184 0%
   object_types.py15150100% 
   property_types.py8000100% 
   vocabulary_types.py137210100% 
bam_masterdata/metadata
   definitions.py780100% 
   entities.py5433 94%
bam_masterdata/openbis
   get_entities.py534343 19%
   login.py633 50%
bam_masterdata/utils
   utils.py4677 85%
TOTAL1718778795% 

Tests Skipped Failures Errors Time
72 1 💤 0 ❌ 0 🔥 18.506s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
bam_masterdata
   logger.py80100% 
bam_masterdata/cli
   cli.py724444 39%
   entities_to_excel.py5433 94%
   entities_to_json.py3655 86%
   excel_to_entities.py328314314 4%
   fill_masterdata.py195181181 7%
bam_masterdata/datamodel
   collection_types.py370100% 
   dataset_types.py184184184 0%
   object_types.py15150100% 
   property_types.py8000100% 
   vocabulary_types.py137210100% 
bam_masterdata/metadata
   definitions.py780100% 
   entities.py5433 94%
bam_masterdata/openbis
   get_entities.py534343 19%
   login.py633 50%
bam_masterdata/utils
   utils.py4677 85%
TOTAL1718778795% 

Tests Skipped Failures Errors Time
72 1 💤 0 ❌ 0 🔥 18.659s ⏱️

Please sign in to comment.