apache / apache/openserverless
support for virtual environments
@sciabarracom 已经在做这个了。
开始于 2026年1月8日。
- 主要语言
- Python
- 星标
- 576
- 派生
- 29
- 平均合并
- 50 分钟
- 30 天内合并 PR
- 13
描述
Why you need it?
Currently there is only one global environment so you can be logged into one system at a time, and you have only one ~/.ops with its plugins
I want to add support to have multiple virtual environments
How it could be?
A virtual environent is (or should be) entirely defined by 2 variables
OPS_HOMEthat sets the location of~/.opsWSK_CONFIG_FILEthat sets the location of the~/.wskprops
It could be as simple as to check if in current directlry there is a .ops and in such a case to set OPS_HOME to the current directory and WSK_CONFIG_FILE to $OPS_HOME/.wskprops
Also it is useful to add a simple: ops -venv that will create a .ops and execute an update downloading in it task and prereqs.
Other related information
Check there are not somewhere implicit assumptions of ~/.ops in the task and the code that can break this new logic.
Update documentation.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
评估
这个 Issue 还没有评估数据。