MPSDESC
Building the docker container in a detached state:
docker compose up --build -dBuilding the development docker container in a detached state:
docker compose -f docker-compose-dev.yml up --build -dStopping the docker container:
docker compose downRunning a command in the container:
docker compose run MPSSRC_app <command>Starting a new package:
poetry new --src MPSSRCInstalling dependencies:
poetry install # --with/without <group>Updating dependencies:
poetry update # <package1_name> <package2_name>Add a dependency:
poetry add <package> # --group devRemove a dependency:
poetry remove MPSSRC # --group devList available packages:
poetry showRun a command with poetry:
poetry run <command>Validate the structure of pyproject.toml:
poetry checkExport the dependencies to a requirements.txt file:
poetry export --without dev -f requirements.txt --output requirements.txtExport the dev-dependencies to a requirements-dev.txt file:
poetry export --with dev -f requirements.txt -o dev-requirements.txtInstall pre-commit hooks:
pre-commit installRun all pre-commit hooks:
pre-commit run -aBuild the modules:
poetry run sphinx-apidoc -f -o docs MPSSRCBuild the documentation files:
poetry run make -C docs html
# documentation can now be found at docs/_build/html/index.htmlClean the documentation files:
poetry run make -C docs clean