跳转到主要内容

Quetz前端作为Quetz服务器扩展

项目描述

quetz header image

Quetz-frontend

开源的Conda软件包服务器

属于mamba-org
软件包管理器 mamba 软件包服务器 quetz 软件包构建工具 boa

Github Actions Status

开发

首先,克隆quetz和quetz-frontend,使用quetz中的environment.yml创建conda环境,运行quetz并修改其配置文件。

# Create an environment
mamba env create -f quetz/environment.yml
mamba activate quetz
mamba install -c conda-forge nodejs=16 yarn=1.22

以开发模式安装Quetz

cd quetz
pip install -e .

# Run quetz
quetz run test_quetz --delete --copy-conf ./dev_config.toml --dev --reload

修改quetz/test_quetz/config.toml文件,添加client_id、client_secret、github用户名和前端路径。

[github]
# Register the app here: https://github.com/settings/applications/new
client_id = "id"
client_secret = "secret"

[users]
admins = ["github:username"]

以开发模式安装Quetz-Frontend

# build the app
pip install -e .

# Create a link to the quetz folder
quetz-frontend link-frontend --development

有用命令

# Start an already configured quetz deployment in dev mode:
quetz start test_quetz --reload

# Build the Quetz-frontend
yarn run build

# Build the Quetz-Frontend in watch mode
yarn run watch

禁用扩展

"quetz": {
    "extension": true,
    "outputDir": "quetz_light_theme/quetzextension",
    "themePath": "style/index.css",
    "disabledExtensions": ["quetz-theme"]
  },

命令行工具

Quetz前端还附带一个用于管理扩展的cli

Usage: quetz-frontend [OPTIONS] COMMAND [ARGS]...

Options:
  --install-completion  Install completion for the current shell.
  --show-completion     Show completion for the current shell, to copy it or
                        customize the installation.
  --help                Show this message and exit.

Commands:
  build           Build an extension
  clean           Clean the extensions directory
  clean-frontend  Clean the Quetz-Frontend
  develop         Build and install an extension in dev mode
  install         Build and install an extension
  link-frontend   Intall the Quetz-Frontend
  list            List of extensions
  paths
  watch           Watch an extension

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分发

quetz-frontend-0.4.1.tar.gz (4.1 MB 查看哈希值)

上传时间

构建分发

quetz_frontend-0.4.1-py3-none-any.whl (6.3 MB 查看哈希值)

上传时间 Python 3

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面