I'm using Poetry for Python dependency management, along with PyCrate for ASN.1 encoding/decoding.
PyCrate is a dependency pulled from GitHub, and once pulled from GitHub, is installed by running a setup file within the PyCrate directory.
python setup.py install
I would like to integrate the installation step into my pyproject.toml
, if possible. My current pyproject.toml
includes PyCrate as follows:
…
[tool.poetry.dependencies]
pycrate = {git = "https://github.com/P1sec/pycrate.git"}
…
This will pull PyCrate from the GitHub repository, but into the src
folder in the virtualenv created by Poetry.
Is there any way to automatically run the setup script when performing a poetry install
? I have looked into using Poetry scripts, but haven't been able to get this up and running correctly as of yet.
My current setup involves running a poetry install
, then manually running the setup.py install
for PyCrate, however I would like to have my poetry install
to perform the full setup, if it can be done.
Any help with this would be much appreciated.