-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
174 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This workflow will upload a Python Package using Twine when a release is created | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries | ||
|
||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.9' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
- name: Build package | ||
run: make build | ||
- name: Publish package | ||
run: make upload | ||
env: | ||
TWINE_USERNAME: "__token__" | ||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,27 @@ | ||
from rubeus.api_resources import Rubeus, LLMBase | ||
from rubeus.api_resources import ( | ||
Rubeus, | ||
LLMBase, | ||
RubeusModes, | ||
RubeusModesLiteral, | ||
ProviderTypes, | ||
ProviderTypesLiteral, | ||
RubeusCacheType, | ||
RubeusCacheLiteral, | ||
Message, | ||
RubeusResponse, | ||
) | ||
from rubeus.version import VERSION | ||
|
||
__version__ = VERSION | ||
__all__ = ["Rubeus", "LLMBase"] | ||
__all__ = [ | ||
"Rubeus", | ||
"LLMBase", | ||
"RubeusModes", | ||
"RubeusResponse", | ||
"RubeusModesLiteral", | ||
"ProviderTypes", | ||
"ProviderTypesLiteral", | ||
"RubeusCacheType", | ||
"RubeusCacheLiteral", | ||
"Message", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,29 @@ | ||
"""""" | ||
from .client import Rubeus | ||
from .utils import LLMBase | ||
from .utils import ( | ||
RubeusModes, | ||
RubeusModesLiteral, | ||
LLMBase, | ||
ProviderTypes, | ||
ProviderTypesLiteral, | ||
RubeusCacheType, | ||
RubeusCacheLiteral, | ||
Message, | ||
RubeusResponse, | ||
) | ||
|
||
from rubeus.version import VERSION | ||
|
||
__version__ = VERSION | ||
__all__ = ["Rubeus", "LLMBase"] | ||
__all__ = [ | ||
"Rubeus", | ||
"LLMBase", | ||
"RubeusModes", | ||
"RubeusResponse", | ||
"RubeusModesLiteral", | ||
"ProviderTypes", | ||
"ProviderTypesLiteral", | ||
"RubeusCacheType", | ||
"RubeusCacheLiteral", | ||
"Message", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
VERSION = "0.1.1" | ||
VERSION = "0.1.8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ long_description = file: README.md | |
long_description_content_type = text/markdown | ||
author = Portkey.ai | ||
author_email = [email protected] | ||
url = https://github.com/Portkey-AI | ||
url = https://github.com/Portkey-AI/rubeus-python-sdk | ||
license_files = LICENSE | ||
classifiers = | ||
Programming Language :: Python :: 3 | ||
|
@@ -15,25 +15,23 @@ classifiers = | |
|
||
[options] | ||
packages = find: | ||
python_requires = >=3.9 | ||
python_requires = >=3.8 | ||
zip_safe = True | ||
include_package_data = True | ||
install_requires = | ||
httpx | ||
|
||
[options.extras_require] | ||
dev = | ||
black ~= 21.6b0 | ||
pytest == 6.* | ||
pytest-asyncio | ||
pytest-mock | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
rubeus = rubeus._rubeus_scripts:main | ||
|
||
[options.package_data] | ||
openai = py.typed | ||
rubeus = py.typed | ||
|
||
[options.extras_require] | ||
dev = | ||
mypy == 0.991 | ||
black == 23.7.0 | ||
|
||
[options.packages.find] | ||
exclude = | ||
|