Open dstathis opened 1 year ago
if you pip install .
this in a virtual environment do you get a bin./cos_alerter
, from a quick look at your pyproject.toml
it does not look like you have entry_point
or scripts
entry defined.
https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
Bug Description
The modern way to package python projects is to use pyproject.toml instead of setup.py. If you use the python plugin to package a snap, there will be a failure if there is no setup.py. This appears to not be a craft-parts but as the failure seems to happen later.
To Reproduce
git clone git@github.com:canonical/cos-alerter.git cd cos-alerter snapcraft clean snapcraft
Environment
Ubuntu 22.04 with snapcraft installed using apt.
snapcraft.yaml
Relevant log output
Additional context
There seems to be some kind of weird memory issue that can make replicating this confusing.