apache / apache/openserverless

support for virtual environments

未关闭
#95 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@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_HOME that sets the location of ~/.ops
  • WSK_CONFIG_FILE that 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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。