digitalocean / digitalocean/sample-functions-python-jokes

Where to put tests and venv folders?

Open
#8 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
40
Forks
60
PR merge metrics
No merged PRs in 30d

Description

When working on my own DO function, I created a tests folder (with unit and integration tests) as well as a virtualenv in the root folder of the project (including a bin, lib, lib64. include and share folder). But when running the `doctl sbx deploy` command from the root folder of the project (same location as the project.yaml file), it failed with an error saying that the bin folder was larger than the allowed 250KB. Only by removing all the virtualenv folders (and thus making the project non-runnable locally) did I manage to upload the function code.

Is there a list of folders that the doctl deploy command will ignore by default? Or is there a way to manually specify folders to ignore when deploying? Or is there an alternative way of structuring the project that avoids the problem of the deploy command trying to upload unrelated folders?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.