Manage multiple mosaik projects with using common tooling.
Project description
mosaik.Multi-Project
Tooling for setting up and maintaining multiple (mosaik) projects.
Motivation
mosaik scenarios often contain multiple simulators. Sometimes, additional packages need to be developed alongside of them. Managing such a set of loosely coupled projects becomes laborious easily. This project provides tooling for some common operations on projects. These operations range from cloning the repository to building a docker image. Operations can be run in parallel on projects, enabling quite some automation.
Status
The code of this project was largely in operation in the Designetz project.
One-line Execution
mosaik.Multi-Project can be run as a container directly from GitLab.com:
docker run registry.gitlab.com/offis.energy/mosaik/mosaik.multi-project:latest --help
Prerequisites
- Python 3.6+
- git
Downloading
git clone git@gitlab.com:offis.energy/mosaik/mosaik.multi-project.git
Virtual Environment
python3 -m venv venv
Tox
venv/bin/python -m pip install -r requirements.d/venv.txt
venv/bin/python -m tox -e py39
Running
PYTHONPATH=. \
.tox_py38_bin_python mosaik_multi_project/multi_project/cli/main.py \
--help
Use Cases
Setup all projects in the config and update their requirements in parallel:
PYTHONPATH=. \
.tox_py38_bin_python mosaik_multi_project/multi_project/cli/main.py
Setup one project in the config and update its requirements:
PYTHONPATH=. \
.tox_py38_bin_python mosaik_multi_project/multi_project/cli/main.py \
--parallel False --project mosaik.EId --operation ALL
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for mosaik.Multi_Project-0.1.0rc20210324102939-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6f465fb4d9d9c8d1597ac0a8c8ef3cb0323374a858d668b77380e514bc75ee6 |
|
MD5 | 961b84ddfa6fe4f0a7df844ad271a9ca |
|
BLAKE2b-256 | 8c849ebed1c779fc035720c20384e21f0f86c39715010df9aed8f4552c64bb7a |