vipyrsec / dragonfly-mainframe

The mainframe for Dragonfly
https://docs.vipyrsec.com/dragonfly-mainframe/
MIT License
5 stars 2 forks source link

Add build-system to pyproject.toml and fix version specifier #145

Closed shenanigansd closed 2 months ago

shenanigansd commented 1 year ago

Add the [build-system] table to become spec compliant.

Robin5605 commented 5 months ago

I believe this will fail in CI because the build system needs the README.md file and we don't copy it in the Containerfile:

- COPY pyproject.toml pdm.lock ./
+ COPY pyproject.toml pdm.lock README.md ./
shenanigansd commented 2 months ago

@Robin5605, the error message was FileNotFoundError: [Errno 2] No such file or directory: '/app/src/mainframe/__init__.py' because the version is fetched dynamically from the source but the installation was being done without the source.