Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish to PyPI #8

Merged
merged 2 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/publish-package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Publish Package"

on:
release:
types: [published]

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: "Checkout Infrastructure"
uses: actions/checkout@main
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10

- name: Install Dependencies
run: |
pip install build twine
- name: Build and Distribute
env:
PYPI_USERNAME: __token__
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload -u $PYPI_USERNAME -p $PYPI_PASSWORD dist/*
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ APPENDIX: How to apply the Apache License to your work.
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2023-2024 MetroStar, Inc.
Copyright 2024 MetroStar, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
# Welcome to the Onyx GenAI SDK
# Onyx GenAI SDK

The goal of this project is to simplify the developer experience when interacting with Onyx GenAI Services. This project provides wrappers around the the underlying APIs provided by the service.

## Table of Contents

1. [Using the SDK in Onyx](#using-the-sdk-in-onyx)
2. [Running Unit Tests](#running-unit-tests)
3. [Running Code Quality Checks](#running-code-quality-checks)
1. [Installation](#installation)
2. [Using the SDK in Onyx](#using-the-sdk-in-onyx)
3. [Running Unit Tests](#running-unit-tests)
4. [Running Code Quality Checks](#running-code-quality-checks)

## Installation

To install with `pip`, run:

```bash
pip install onyxgenai
```

## Using the SDK in Onyx

Expand All @@ -16,7 +25,9 @@ The goal of this project is to simplify the developer experience when interactin

3. Create a new Jupyter Notebook

4. Add the onyxgenai client imports to your project
4. Install the client as indicated above

5. Add the onyxgenai client imports to your project

For more in depth examples, see [notebooks](https://github.com/MetroStar/onyx-genai-sdk/tree/main/notebooks) section of this repo.

Expand Down
27 changes: 27 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
[build-system]
requires = ["setuptools>=75.1.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "onyxgenai"
version = "1.0.2"
description = "Python SDK for interacting with Onyx Generative AI Services"
readme = "README.md"
license = { file = "LICENSE" }
dependencies = [
"requests",
"spacy",
"PyPDF2",
"python-pptx",
]
requires-python = ">=3.10"

[project.optional-dependencies]
dev = ["pytest", "ruff"]

[project.urls]
Homepage = "https://github.com/MetroStar/onyx-genai-sdk"

[tool.setuptools]
py-modules = ['onyxgenai']

[tool.ruff]
select = ["B", "C4", "EXE", "F", "E", "ISC", "ICN", "INP", "PIE", "SIM", "W", "T20", "UP", "T10", "G", "C90", "ERA"]
ignore = ["B008", "SIM102", "T201"]
Expand Down
7 changes: 0 additions & 7 deletions setup.py

This file was deleted.

Loading