Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fluentci-io/rye-plugin

Set up your CI/CD Pipeline with a specific version of rye
https://github.com/fluentci-io/rye-plugin

continuous-delivery continuous-integration plugin python rust rye wasm webassembly

Last synced: 5 days ago
JSON representation

Set up your CI/CD Pipeline with a specific version of rye

Awesome Lists containing this project

README

        

# Rye Plugin

[![fluentci pipeline](https://shield.fluentci.io/x/rye)](https://pkg.fluentci.io/rye)
[![ci](https://github.com/fluentci-io/rye-plugin/actions/workflows/ci.yml/badge.svg)](https://github.com/fluentci-io/rye-plugin/actions/workflows/ci.yml)

This plugin sets up your CI/CD pipeline with a specific version of [rye](https://github.com/astral-sh/rye).

## 🚀 Usage

Add the following command to your CI configuration file:

```bash
fluentci run --wasm rye setup
```

## Functions

| Name | Description |
| ------ | ------------------------------------------ |
| setup | Installs a specific version of rye. |
| fmt | Run the code formatter on the project |
| build | Builds a package for distribution |
| fetch | Fetches a Python interpreter for the local machine |
| init | Initialize a new or existing Python project with Rye |
| install | Installs a package as global tool |
| lint | Run the linter on the project |
| publish | Publish packages to a package repository |
| run | Runs a command installed into this package |
| toolchain | Helper utility to manage Python toolchains |
| tools | Helper utility to manage global tools |

## Code Usage

Add `fluentci-pdk` crate to your `Cargo.toml`:

```toml
[dependencies]
fluentci-pdk = "0.1.9"
```

Use the following code to call the plugin:

```rust
use fluentci_pdk::dag;

// ...

dag().call("https://pkg.fluentci.io/[email protected]?wasm=1", "setup", vec![])?;
```

## 📚 Examples

Github Actions:

```yaml
- name: Setup Fluent CI CLI
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
plugin: rye
args: |
setup
- name: Show rye version
run: |
type rye
rye --version
```