Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 886 Bytes

File metadata and controls

20 lines (16 loc) · 886 Bytes

Setting up project for the first time

  1. Write all dependencies into setup.cfg (install_requires and extras_require).
  2. Create venv (python -m venv .venv) and activate it (".venv\scripts\activate" or "source .venv/bin/activate")
  3. Update pip (python -m pip install -U pip)
  4. Install pip-tools (pip install pip-tools)
  5. Update/Create requirements.txt
    • with Development dependencies

      pip-compile --extra dev setup.cfg

    • or only with Runtime dependencies

      pip-compile setup.cfg

  6. Install dependencies (pip install -U -r requirements.txt)
  7. Install project into local venv (pip install -e .[extra])

Generate Dataclasses from xsd

xsdata testbench_xsd\itb-project-export.xsd --config .\xsdata_config.xml

Fix unreadable Enums in newly generated model

python .\fix_model.py .\libdoc2testbench\project_dump_model\itb_project_export.py