Building a core20 python snap using pyproject.toml

FWIW, @cjp256 provided me with a workaround to convert the pyproject.toml to a setuppy like so:

  streamdeck-ui:
    after: [desktop-qt5]
    plugin: python
    source: https://github.com/timothycrosley/streamdeck-ui.git
    build-packages:
      - libudev-dev
      - libusb-1.0-0-dev
      - python3-pip
    stage-packages:
      - libhidapi-hidraw0
    override-build: |
      pip3 install --user dephell[full]
      PATH=$HOME/.local/bin:$PATH dephell deps convert --from-path pyproject.toml --from-format poetry --to-path setup.py --to-format setuppy
      snapcraftctl build
1 Like