Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/fluentci-io/rye-plugin
- Owner: fluentci-io
- License: mit
- Created: 2024-04-12T15:57:52.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-25T17:07:39.000Z (6 months ago)
- Last Synced: 2024-11-20T20:55:53.363Z (2 months ago)
- Topics: continuous-delivery, continuous-integration, plugin, python, rust, rye, wasm, webassembly
- Language: Rust
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```