- Prerequisites
- Project Setup
- Run Tests
- Use Project
- Python 3.7 installed
- If the installation (pip install) is executed behind a (corporate) proxy, the following environments variables must be set: http_proxy and https_proxy (including authentication e.g., http://${proxy_username):$(proxy_password)@yourproxy.yourdomain)
- If you do not run with administration rights, you may need to configure pip target path to write to your user home directory.
On Unix and Mac OS X the configuration file is: $HOME/.pip/pip.conf
If the file does not exist, create an empty file with that name.
Add or replace the following lines:
[global]
target=/somedir/where/your/account/can/write/to
On Windows, the configuration file is: %HOME%\pip\pip.ini
If the file does not exist, create an empty file with that name.
Add or replace the following lines:
[global]
target=C:\SomeDir\Where\Your\Account\Can\Write\To
- If you use a custom pip installation directory, set the PYTHONPATH enviornment variable to the directory that you set in the pip.ini file.
- Checkout vss-tools as submodule of the Vehicle Signal Specification repository (git clone --recurse-submodules -j8 https://github.com/GENIVI/vehicle_signal_specification.git)
- RUN
pip install -e .
from the vss-tools project root directory - Run
pip install -r requirements.txt
from the vss-tools project root directory
Run the following command in your root directory
- RUN
pytest tests
Folder structure for the example below
.
└── vehicle_signal_specification
├── VERSION
├── spec
│ │ ├── VehicleSignalSpecification.id
│ └── VehicleSignalSpecification.vspec
├──vss-tools
├── vspec2c.py
├── vspec2cnative.py
├── vspec2csv.py
├── vspec2franca.py
├── vspec2json.py
└── vspec2json.py
- CSV File generation -> vss.csv:
python /vspec2csv.py -i:../vehicle_signal_specification/spec/VehicleSignalSpecification.id ../vehicle_signal_specification/spec/VehicleSignalSpecification.vspec vss.csv