Skip to content

Commit 391b6f1

Browse files
authored
Merge pull request #2 from infactory-io/tech-1550-sdk-python-list-on-pypi
minimal cli - deployed for pypi registry
2 parents 85044da + b2c6f50 commit 391b6f1

File tree

133 files changed

+3698
-50792
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+3698
-50792
lines changed

.env

Lines changed: 0 additions & 3 deletions
This file was deleted.

.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
# Create a custom API KEY from https://workshop.infactory.ai/api-keys
3+
# NF_API_KEY=
4+
5+
# This can be changed for a local or custom deployment
6+
# NF_BASE_URL=https://api.infactory.ai
7+
8+
# This can be set to a custom directory if needed
9+
# NF_HOME=~/.infactory-client

.github/workflows/pypi.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*' # Trigger on version tags
7+
8+
jobs:
9+
build-and-publish:
10+
name: Build and publish to PyPI
11+
runs-on: ubuntu-latest
12+
environment: pypi
13+
permissions:
14+
# Required for trusted publishing to PyPI
15+
id-token: write
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: '3.x'
24+
25+
- name: Install build dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install build twine
29+
30+
- name: Build package
31+
run: python -m build
32+
33+
- name: Publish to PyPI
34+
uses: pypa/gh-action-pypi-publish@release/v1

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,7 @@ target/
6464

6565
#Ipython Notebook
6666
.ipynb_checkpoints
67+
.env
68+
69+
repomix-output.txt
70+
openapi.json

.openapi-generator/FILES

Lines changed: 0 additions & 182 deletions
This file was deleted.

.openapi-generator/VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)