ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.308.0

This commit is contained in:
speakeasybot
2024-06-14 00:23:02 +00:00
parent e67c4ef5bf
commit 064c843236
9 changed files with 848 additions and 847 deletions

View File

@@ -3,10 +3,10 @@ id: 3eeea668-4ef4-464e-a888-bdfa023bedf5
management: management:
docChecksum: 911d74baa0d06121d2ce2c71d94e977a docChecksum: 911d74baa0d06121d2ce2c71d94e977a
docVersion: 0.0.3 docVersion: 0.0.3
speakeasyVersion: 1.299.6 speakeasyVersion: 1.308.0
generationVersion: 2.338.12 generationVersion: 2.342.2
releaseVersion: 0.8.1 releaseVersion: 0.8.2
configChecksum: e0a296d301c77a4a5799d1b93aa35cfd configChecksum: f20ca4e1b38909fd8d69b6947315f838
repoURL: https://github.com/LukeHagar/plexpy.git repoURL: https://github.com/LukeHagar/plexpy.git
repoSubDirectory: . repoSubDirectory: .
installationURL: https://github.com/LukeHagar/plexpy.git installationURL: https://github.com/LukeHagar/plexpy.git
@@ -15,7 +15,7 @@ features:
python: python:
additionalDependencies: 0.1.0 additionalDependencies: 0.1.0
constsAndDefaults: 0.1.3 constsAndDefaults: 0.1.3
core: 4.6.9 core: 4.6.10
flattening: 2.81.1 flattening: 2.81.1
globalSecurity: 2.83.5 globalSecurity: 2.83.5
globalSecurityCallbacks: 0.1.0 globalSecurityCallbacks: 0.1.0
@@ -44,8 +44,10 @@ generatedFiles:
- src/plex_api/sessions.py - src/plex_api/sessions.py
- src/plex_api/updater.py - src/plex_api/updater.py
- src/plex_api/sdk.py - src/plex_api/sdk.py
- Makefile
- py.typed - py.typed
- pylintrc - pylintrc
- scripts/publish.sh
- setup.py - setup.py
- src/plex_api/__init__.py - src/plex_api/__init__.py
- src/plex_api/utils/__init__.py - src/plex_api/utils/__init__.py

View File

@@ -12,7 +12,7 @@ generation:
auth: auth:
oAuth2ClientCredentialsEnabled: false oAuth2ClientCredentialsEnabled: false
python: python:
version: 0.8.1 version: 0.8.2
additionalDependencies: additionalDependencies:
dependencies: {} dependencies: {}
extraDependencies: extraDependencies:

View File

@@ -1,9 +1,9 @@
speakeasyVersion: 1.306.0 speakeasyVersion: 1.308.0
sources: sources:
my-source: my-source:
sourceNamespace: my-source sourceNamespace: my-source
sourceRevisionDigest: sha256:c661461e812b435c03e582528fc079a40116a7794349548e439433810462ede2 sourceRevisionDigest: sha256:0281386c0424f9309c449ac0e8b84e64d4d4b546427c13e890f4a989cb0c9e11
sourceBlobDigest: sha256:01ea875ed58731c7f0da0076a2f593efd48353df386b633ed2cc79b6de77be5f sourceBlobDigest: sha256:ad868dd074aef16acba0f48666bfc67bfcaf8e9270c51b2112e82afacd223147
tags: tags:
- latest - latest
- main - main
@@ -11,8 +11,8 @@ targets:
plexpy: plexpy:
source: my-source source: my-source
sourceNamespace: my-source sourceNamespace: my-source
sourceRevisionDigest: sha256:c661461e812b435c03e582528fc079a40116a7794349548e439433810462ede2 sourceRevisionDigest: sha256:0281386c0424f9309c449ac0e8b84e64d4d4b546427c13e890f4a989cb0c9e11
sourceBlobDigest: sha256:01ea875ed58731c7f0da0076a2f593efd48353df386b633ed2cc79b6de77be5f sourceBlobDigest: sha256:ad868dd074aef16acba0f48666bfc67bfcaf8e9270c51b2112e82afacd223147
outLocation: /github/workspace/repo outLocation: /github/workspace/repo
workflow: workflow:
workflowVersion: 1.0.0 workflowVersion: 1.0.0

View File

@@ -1,26 +1,6 @@
.PHONY: * .PHONY: *
SHELL := bash
all: speakeasy publish:
./scripts/publish.sh
speakeasy: check-speakeasy
speakeasy generate sdk --lang python -o . -s ./openapi.yaml
speakeasy-validate: check-speakeasy
speakeasy validate openapi -s ./openapi.yaml
openapi:
curl https://raw.githubusercontent.com/LukeHagar/plex-api-spec/main/plex-media-server-spec-dereferenced.yaml > ./openapi.yaml
# This will replace the generation source in your workflow file with your local schema path
generate-from-local:
@if ! which sed >/dev/null; then \
echo "sed is not installed. Please install it using the following command:"; \
echo "For Ubuntu/Debian: apt-get install sed"; \
echo "For macOS: sed is pre-installed"; \
exit 1; \
fi
@sed -i '' '/openapi_docs: |/{n;s|-.*|- ./openapi.yaml|;}' ./.github/workflows/speakeasy_sdk_generation.yml
check-speakeasy:
@command -v speakeasy >/dev/null 2>&1 || { echo >&2 "speakeasy CLI is not installed. Please install before continuing."; exit 1; }

View File

@@ -599,3 +599,13 @@ Based on:
- [python v0.8.1] . - [python v0.8.1] .
### Releases ### Releases
- [PyPI v0.8.1] https://pypi.org/project/plex-api-client/0.8.1 - . - [PyPI v0.8.1] https://pypi.org/project/plex-api-client/0.8.1 - .
## 2024-06-14 00:22:16
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.308.0 (2.342.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.8.2] .
### Releases
- [PyPI v0.8.2] https://pypi.org/project/plex-api-client/0.8.2 - .

File diff suppressed because it is too large Load Diff

9
scripts/publish.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
export TWINE_USERNAME=__token__
export TWINE_PASSWORD=${PYPI_TOKEN}
python -m pip install --upgrade pip
pip install setuptools wheel twine
python setup.py sdist bdist_wheel
twine upload dist/*

View File

@@ -19,7 +19,7 @@ except FileNotFoundError:
setuptools.setup( setuptools.setup(
name='plex-api-client', name='plex-api-client',
version='0.8.1', version='0.8.2',
author='LukeHagar', author='LukeHagar',
description='Python Client SDK Generated by Speakeasy', description='Python Client SDK Generated by Speakeasy',
url='https://github.com/LukeHagar/plexpy.git', url='https://github.com/LukeHagar/plexpy.git',

View File

@@ -34,9 +34,9 @@ class SDKConfiguration:
server_defaults: List[Dict[str, str]] = field(default_factory=List) server_defaults: List[Dict[str, str]] = field(default_factory=List)
language: str = 'python' language: str = 'python'
openapi_doc_version: str = '0.0.3' openapi_doc_version: str = '0.0.3'
sdk_version: str = '0.8.1' sdk_version: str = '0.8.2'
gen_version: str = '2.338.12' gen_version: str = '2.342.2'
user_agent: str = 'speakeasy-sdk/python 0.8.1 2.338.12 0.0.3 plex-api-client' user_agent: str = 'speakeasy-sdk/python 0.8.2 2.342.2 0.0.3 plex-api-client'
retry_config: Optional[RetryConfig] = None retry_config: Optional[RetryConfig] = None
def __post_init__(self): def __post_init__(self):