digitalocean / digitalocean/sample-functions-python-jokes
Where to put tests and venv folders?
- 主要言語
- Python
- スター
- 40
- フォーク
- 60
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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?
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Start by reproducing `doctl sbx deploy` from the project root with the `tests` and virtualenv folders present, using the existing `project.yaml`. Check how deployment selects files and whether ignored folders or a configurable exclusion mechanism is documented; done means the project can retain its local test and virtualenv folders while deployment excludes them and stays within the size limit.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- cli, cloud
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100