Skip to main content

Quetz frontend as Quetz server extension

Project description

quetz header image

Quetz-frontend

The Open-Source Server for Conda Packages

part of mamba-org
Package Manager mamba Package Server quetz Package Builder boa

Github Actions Status

Development

First of all, clone quetz and quetz-frontend, create a conda environment using the environment.yml in quetz, run quetz and modify its config file.

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

Install Quetz in dev mode

cd quetz
pip install -e .

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

Modify the quetz/test_quetz/config.toml file to add the client_id, client_secret, github username and the front-end paths.

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

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

Install Quetz-Frontend in dev mode

# build the app
pip install -e .

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

Useful commands

# 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

Disabling extensions

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

Command line tool

Quetz fronted also comes with a cli to manage extensions

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quetz-frontend-0.4.0a2.tar.gz (4.1 MB view details)

Uploaded Source

Built Distribution

quetz_frontend-0.4.0a2-py3-none-any.whl (6.3 MB view details)

Uploaded Python 3

File details

Details for the file quetz-frontend-0.4.0a2.tar.gz.

File metadata

  • Download URL: quetz-frontend-0.4.0a2.tar.gz
  • Upload date:
  • Size: 4.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for quetz-frontend-0.4.0a2.tar.gz
Algorithm Hash digest
SHA256 14bcb7f336dce557b9e0521cf3095c5ad61b2fe587595748cd9a2e23b4285cf0
MD5 8b4ad94f05d6a04f2141b9535b8998c7
BLAKE2b-256 91f29051c7254b06d5b995917b4986dabf4f58ad14dee6687e7f9cc57a58b438

See more details on using hashes here.

Provenance

File details

Details for the file quetz_frontend-0.4.0a2-py3-none-any.whl.

File metadata

File hashes

Hashes for quetz_frontend-0.4.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 c643ccb026d8308a10c82d58aab110d8ebc2f5f4c1b0a72f9733628dc2956d5d
MD5 85c780e12dff54d30afa7406cb5df349
BLAKE2b-256 11d45cdc90863618d6204719a294baf70f8c64e81a09786af88dcef912a3b1c5

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page