$ pip install -e .
Obtaining file:///home/bdorlandt-t1/tmp/fortigate-api
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/home/bdorlandt-t1/tmp/fortigate-api/setup.py", line 7, in <module>
import fortigate_api as package
File "/home/bdorlandt-t1/tmp/fortigate-api/fortigate_api/__init__.py", line 3, in <module>
from fortigate_api.fortigate import Fortigate
File "/home/bdorlandt-t1/tmp/fortigate-api/fortigate_api/fortigate.py", line 12, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
I have no experience yet with combining it with pypi and if the setup.py can be replaced.
With the pyproject.toml in place python3.10.5 successfully installs the fortigate-api module, including the requests module.
Within a fresh venv in the cloned fortigate-api directory:
Before, without the pyproject.toml
I have no experience yet with combining it with pypi and if the setup.py can be replaced.