Skip to content

Commit 16a8b6c

Browse files
author
nik
committed
Initial commit
1 parent de3b54a commit 16a8b6c

File tree

6 files changed

+7303
-0
lines changed

6 files changed

+7303
-0
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: ci
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "The version of the python SDK that you would like to release"
8+
required: true
9+
type: string
10+
11+
jobs:
12+
fern-check:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v4
17+
18+
- name: Install Fern
19+
run: npm install -g fern-api
20+
21+
- name: Check Fern API is valid
22+
run: fern check
23+
24+
fern-generate-pr:
25+
needs: fern-check
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout repo
29+
uses: actions/checkout@v4
30+
31+
- name: Setup node
32+
uses: actions/setup-node@v3
33+
34+
- name: Download Fern
35+
run: npm install -g fern-api
36+
37+
- name: Publish Python SDK PR
38+
env:
39+
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
40+
run: fern generate --group python-sdk-staging --version ${{ inputs.version }} --log-level debug

fern/docs.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
instances:
2+
- url: https://label-studio.docs.buildwithfern.com
3+
title: Label Studio | Documentation
4+
navigation:
5+
- api: API Reference
6+
snippets:
7+
python: label-studio-sdk
8+
9+
colors:
10+
accentPrimary: '#ffffff'
11+
background: '#000000'

fern/fern.config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"organization": "label_studio_sdk",
3+
"version": "0.27.0"
4+
}

fern/generators.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
api:
2+
path: ./openapi/openapi.yaml
3+
overrides: ./openapi/overrides.yaml
4+
settings:
5+
use-title: false
6+
default-group: sdk
7+
groups:
8+
python-sdk-staging:
9+
generators:
10+
- name: fernapi/fern-python-sdk
11+
version: 2.2.0
12+
github:
13+
repository: HumanSignal/label-studio-sdk
14+
mode: pull-request
15+
output:
16+
location: pypi
17+
package-name: label-studio-sdk
18+
# output:
19+
# location: local-file-system
20+
# path: ../label_studio_python
21+
config:
22+
inline_request_params: false
23+
client_class_name: LabelStudio

0 commit comments

Comments
 (0)