Skip to content

release: 0.1.0-alpha.11 #180

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

Merged
merged 22 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
488d540
feat(api): OpenAPI spec update via Stainless API (#159)
stainless-app[bot] Jul 18, 2024
d0ed786
feat(api): OpenAPI spec update via Stainless API (#160)
stainless-app[bot] Jul 18, 2024
2526bcc
feat(api): OpenAPI spec update via Stainless API (#161)
stainless-app[bot] Jul 22, 2024
b383e7e
feat(api): OpenAPI spec update via Stainless API (#162)
stainless-app[bot] Jul 22, 2024
2c1a08a
feat(api): OpenAPI spec update via Stainless API (#163)
stainless-app[bot] Jul 22, 2024
38da097
feat(api): OpenAPI spec update via Stainless API (#164)
stainless-app[bot] Jul 22, 2024
1e2c2d8
feat(api): OpenAPI spec update via Stainless API (#165)
stainless-app[bot] Jul 22, 2024
33a4e3b
chore(internal): refactor release doctor script (#166)
stainless-app[bot] Jul 22, 2024
d86724c
feat(api): OpenAPI spec update via Stainless API (#167)
stainless-app[bot] Jul 22, 2024
d117418
feat(api): OpenAPI spec update via Stainless API (#168)
stainless-app[bot] Jul 23, 2024
899a45b
chore(tests): update prism version (#169)
stainless-app[bot] Jul 23, 2024
54f6bc6
feat(api): OpenAPI spec update via Stainless API (#170)
stainless-app[bot] Jul 23, 2024
9562025
feat(api): OpenAPI spec update via Stainless API (#171)
stainless-app[bot] Jul 23, 2024
035709a
feat(api): OpenAPI spec update via Stainless API (#172)
stainless-app[bot] Jul 23, 2024
05c5e77
feat(api): OpenAPI spec update via Stainless API (#173)
stainless-app[bot] Jul 23, 2024
450c25a
feat(api): OpenAPI spec update via Stainless API (#174)
stainless-app[bot] Jul 25, 2024
22b91ca
feat(api): OpenAPI spec update via Stainless API (#175)
stainless-app[bot] Jul 26, 2024
47dc736
feat(api): OpenAPI spec update via Stainless API (#176)
stainless-app[bot] Jul 28, 2024
696f2bc
feat(api): OpenAPI spec update via Stainless API (#177)
stainless-app[bot] Jul 28, 2024
759044e
feat(api): OpenAPI spec update via Stainless API (#178)
stainless-app[bot] Jul 29, 2024
97d5676
chore(internal): codegen related update (#179)
stainless-app[bot] Jul 29, 2024
09c218a
release: 0.1.0-alpha.11
stainless-app[bot] Jul 29, 2024
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
2 changes: 2 additions & 0 deletions .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Release Doctor
on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.10"
".": "0.1.0-alpha.11"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 21
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-441451c27073e45d1bdc832c5b66c26d90bd185bd94bd461b91257fbf0987ef2.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-45f9d98caea261be75dc930b7a2113d93836ea7740535cca8130fec897379429.yml
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# Changelog

## 0.1.0-alpha.11 (2024-07-29)

Full Changelog: [v0.1.0-alpha.10...v0.1.0-alpha.11](https://github.com/prompt-foundry/python-sdk/compare/v0.1.0-alpha.10...v0.1.0-alpha.11)

### Features

* **api:** OpenAPI spec update via Stainless API ([#159](https://github.com/prompt-foundry/python-sdk/issues/159)) ([488d540](https://github.com/prompt-foundry/python-sdk/commit/488d5406f71b83d65edb24fe88caf5216dca87c3))
* **api:** OpenAPI spec update via Stainless API ([#160](https://github.com/prompt-foundry/python-sdk/issues/160)) ([d0ed786](https://github.com/prompt-foundry/python-sdk/commit/d0ed78672e4b2567ff349489050921160e66fcfd))
* **api:** OpenAPI spec update via Stainless API ([#161](https://github.com/prompt-foundry/python-sdk/issues/161)) ([2526bcc](https://github.com/prompt-foundry/python-sdk/commit/2526bccb264263a836b1d4671468e24af8bbead8))
* **api:** OpenAPI spec update via Stainless API ([#162](https://github.com/prompt-foundry/python-sdk/issues/162)) ([b383e7e](https://github.com/prompt-foundry/python-sdk/commit/b383e7ea082c5db52a08a421c1029fae5eb20167))
* **api:** OpenAPI spec update via Stainless API ([#163](https://github.com/prompt-foundry/python-sdk/issues/163)) ([2c1a08a](https://github.com/prompt-foundry/python-sdk/commit/2c1a08ab6fcfe256b43f4116759613b51309804b))
* **api:** OpenAPI spec update via Stainless API ([#164](https://github.com/prompt-foundry/python-sdk/issues/164)) ([38da097](https://github.com/prompt-foundry/python-sdk/commit/38da097278cca4956239861ddc9ca3d2511622e8))
* **api:** OpenAPI spec update via Stainless API ([#165](https://github.com/prompt-foundry/python-sdk/issues/165)) ([1e2c2d8](https://github.com/prompt-foundry/python-sdk/commit/1e2c2d8359e5c3f6a4426c7b099b4557f1a1a4be))
* **api:** OpenAPI spec update via Stainless API ([#167](https://github.com/prompt-foundry/python-sdk/issues/167)) ([d86724c](https://github.com/prompt-foundry/python-sdk/commit/d86724c68491c8b3a3476a0ad78f9263b9baf8e8))
* **api:** OpenAPI spec update via Stainless API ([#168](https://github.com/prompt-foundry/python-sdk/issues/168)) ([d117418](https://github.com/prompt-foundry/python-sdk/commit/d11741874e0a3b239c5f46425de31e6bfe7b7297))
* **api:** OpenAPI spec update via Stainless API ([#170](https://github.com/prompt-foundry/python-sdk/issues/170)) ([54f6bc6](https://github.com/prompt-foundry/python-sdk/commit/54f6bc69f6d1d938f02499cbc2d97d4459baebf8))
* **api:** OpenAPI spec update via Stainless API ([#171](https://github.com/prompt-foundry/python-sdk/issues/171)) ([9562025](https://github.com/prompt-foundry/python-sdk/commit/9562025671cb45651a0ba43834da644618a0228d))
* **api:** OpenAPI spec update via Stainless API ([#172](https://github.com/prompt-foundry/python-sdk/issues/172)) ([035709a](https://github.com/prompt-foundry/python-sdk/commit/035709aeaa00d7f0e70b4b66af5592c6cdfbb2e4))
* **api:** OpenAPI spec update via Stainless API ([#173](https://github.com/prompt-foundry/python-sdk/issues/173)) ([05c5e77](https://github.com/prompt-foundry/python-sdk/commit/05c5e77bd33c9276401fe687babb44127b856fa3))
* **api:** OpenAPI spec update via Stainless API ([#174](https://github.com/prompt-foundry/python-sdk/issues/174)) ([450c25a](https://github.com/prompt-foundry/python-sdk/commit/450c25aa4d1f0bd65a786c2a94defcc709e6fa5d))
* **api:** OpenAPI spec update via Stainless API ([#175](https://github.com/prompt-foundry/python-sdk/issues/175)) ([22b91ca](https://github.com/prompt-foundry/python-sdk/commit/22b91ca7a93a8245a0827878c64d2d4714522cad))
* **api:** OpenAPI spec update via Stainless API ([#176](https://github.com/prompt-foundry/python-sdk/issues/176)) ([47dc736](https://github.com/prompt-foundry/python-sdk/commit/47dc736f4901b24f5046ae3bc6a1b5def80855f6))
* **api:** OpenAPI spec update via Stainless API ([#177](https://github.com/prompt-foundry/python-sdk/issues/177)) ([696f2bc](https://github.com/prompt-foundry/python-sdk/commit/696f2bcaaa455fcaf51cdbe1b282f7e88319b062))
* **api:** OpenAPI spec update via Stainless API ([#178](https://github.com/prompt-foundry/python-sdk/issues/178)) ([759044e](https://github.com/prompt-foundry/python-sdk/commit/759044e5c9f3204388200e3e7f9906b0487fe280))


### Chores

* **internal:** codegen related update ([#179](https://github.com/prompt-foundry/python-sdk/issues/179)) ([97d5676](https://github.com/prompt-foundry/python-sdk/commit/97d56768570590484f8ace7f961e1057872b06fd))
* **internal:** refactor release doctor script ([#166](https://github.com/prompt-foundry/python-sdk/issues/166)) ([33a4e3b](https://github.com/prompt-foundry/python-sdk/commit/33a4e3b7fe55787f916e473275f87eddfa13c26d))
* **tests:** update prism version ([#169](https://github.com/prompt-foundry/python-sdk/issues/169)) ([899a45b](https://github.com/prompt-foundry/python-sdk/commit/899a45ba78ecf8c953d1f1cfb017de8c84be03ba))

## 0.1.0-alpha.10 (2024-07-17)

Full Changelog: [v0.1.0-alpha.9...v0.1.0-alpha.10](https://github.com/prompt-foundry/python-sdk/compare/v0.1.0-alpha.9...v0.1.0-alpha.10)
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,12 @@ client = PromptFoundry(
)
```

You can also customize the client on a per-request basis by using `with_options()`:

```python
client.with_options(http_client=DefaultHttpxClient(...))
```

### Managing HTTP resources

By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting.
Expand Down
13 changes: 1 addition & 12 deletions bin/check-release-environment
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
#!/usr/bin/env bash

warnings=()
errors=()

if [ -z "${PYPI_TOKEN}" ]; then
warnings+=("The PROMPT_FOUNDRY_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
fi

lenWarnings=${#warnings[@]}

if [[ lenWarnings -gt 0 ]]; then
echo -e "Found the following warnings in the release environment:\n"

for warning in "${warnings[@]}"; do
echo -e "- $warning\n"
done
errors+=("The PROMPT_FOUNDRY_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
fi

lenErrors=${#errors[@]}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "prompt_foundry_python_sdk"
version = "0.1.0-alpha.10"
version = "0.1.0-alpha.11"
description = "The prompt engineering, prompt management, and prompt evaluation tool for Python "
keywords = ["llm evaluation", "prompt management", "prompt testing", "prompt engineering"]
dynamic = ["readme"]
Expand Down
4 changes: 2 additions & 2 deletions scripts/mock
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ echo "==> Starting mock server with URL ${URL}"

# Run prism mock on the given spec
if [ "$1" == "--daemon" ]; then
npm exec --package=@stoplight/prism-cli@~5.8 -- prism mock "$URL" &> .prism.log &
npm exec --package=@stainless-api/[email protected].4 -- prism mock "$URL" &> .prism.log &

# Wait for server to come online
echo -n "Waiting for server"
Expand All @@ -37,5 +37,5 @@ if [ "$1" == "--daemon" ]; then

echo
else
npm exec --package=@stoplight/prism-cli@~5.8 -- prism mock "$URL"
npm exec --package=@stainless-api/[email protected].4 -- prism mock "$URL"
fi
2 changes: 1 addition & 1 deletion src/prompt_foundry_python_sdk/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "prompt_foundry_python_sdk"
__version__ = "0.1.0-alpha.10" # x-release-please-version
__version__ = "0.1.0-alpha.11" # x-release-please-version
Loading