appsody / stacks

Appsody application stacks. This repo will be archived soon.
https://appsody.dev
Apache License 2.0
90 stars 120 forks source link

python-flask Pipfile not populated with required dependencies after appsody init #748

Open campnic opened 4 years ago

campnic commented 4 years ago

Describe the bug In order to run resolve the applications dependencies within the development environment, we need the Pipfile in the workspace to be populated with the necessary dependencies after appsody init however, these dependencies are present only within the image.

To Reproduce Steps to reproduce the behavior:

  1. mkdir my-app
  2. cd my-app
  3. appsody init python-flask
  4. pipenv install

Expected behavior A python virtual environment to be created with the necessary dependencies

Actual behaviour A python virtual environment is created, but none of the necessary dependecies are installed. They are not present in the Pipfile. If you deploy to the container, however, you will see:

python -m pip install -r requirements.txt -t /project/deps

The necessary requirements for pip to install the environment are included w/in the image in: https://github.com/appsody/stacks/blob/master/incubator/python-flask/image/project/Pipfile

Environment Details (please complete the following information):

If applicable please specify:

henrynash commented 4 years ago

Could you confirm which version of the python stack you are found this problem in? It may be that this is a consequence of https://github.com/appsody/stacks/issues/833, which has now been fixed in python stack 0.2.4.