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

release: 0.20.1 #55

Open
wants to merge 39 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
762488e
chore(internal): version bump (#54)
stainless-app[bot] May 20, 2024
3f06cb7
chore: rebuild project due to codegen change (#56)
stainless-app[bot] Nov 4, 2024
eaf1330
chore: rebuild project due to codegen change (#57)
stainless-app[bot] Nov 6, 2024
2e4560f
chore: rebuild project due to codegen change (#58)
stainless-app[bot] Nov 12, 2024
7728427
chore: rebuild project due to codegen change (#59)
stainless-app[bot] Nov 18, 2024
6742d13
chore: rebuild project due to codegen change (#60)
stainless-app[bot] Nov 18, 2024
6fedf36
chore(internal): fix compat model_dump method when warnings are passe…
stainless-app[bot] Nov 22, 2024
175f6b8
docs: add info log level to readme (#62)
stainless-app[bot] Nov 26, 2024
540b49a
chore: remove now unused `cached-property` dep (#63)
stainless-app[bot] Nov 26, 2024
5ba7000
chore(internal): codegen related update (#64)
stainless-app[bot] Nov 28, 2024
9ee84bd
fix(client): compat with new httpx 0.28.0 release (#65)
stainless-app[bot] Nov 28, 2024
9d5db21
chore(internal): bump pyright (#66)
stainless-app[bot] Dec 3, 2024
3070bff
chore: make the `Omit` type public (#67)
stainless-app[bot] Dec 4, 2024
13d4ec2
chore(internal): bump pydantic dependency (#68)
stainless-app[bot] Dec 10, 2024
f0129cf
docs(readme): fix http client proxies example (#69)
stainless-app[bot] Dec 10, 2024
2a732e0
chore(internal): bump pyright (#70)
stainless-app[bot] Dec 13, 2024
911abd4
chore(internal): add support for TypeAliasType (#71)
stainless-app[bot] Dec 13, 2024
6ddf080
chore(internal): codegen related update (#72)
stainless-app[bot] Dec 14, 2024
d8c41ed
chore(internal): codegen related update (#73)
stainless-app[bot] Dec 14, 2024
b6bb66d
chore(internal): codegen related update (#74)
stainless-app[bot] Dec 17, 2024
4b98a96
chore(internal): codegen related update (#75)
stainless-app[bot] Dec 17, 2024
2ab6503
chore(internal): codegen related update (#76)
stainless-app[bot] Dec 17, 2024
694418c
chore(internal): codegen related update (#77)
stainless-app[bot] Dec 17, 2024
dcf8544
chore(internal): codegen related update (#78)
stainless-app[bot] Dec 18, 2024
2dbb767
chore(internal): codegen related update (#79)
stainless-app[bot] Dec 18, 2024
412f142
chore(internal): codegen related update (#80)
stainless-app[bot] Dec 18, 2024
031e5b8
chore(internal): codegen related update (#81)
stainless-app[bot] Dec 18, 2024
476ccee
chore(internal): fix some typos (#82)
stainless-app[bot] Dec 18, 2024
5bcb54b
chore(internal): codegen related update (#83)
stainless-app[bot] Dec 18, 2024
f9b8c6a
chore(internal): codegen related update (#84)
stainless-app[bot] Dec 18, 2024
f349307
chore(internal): codegen related update (#85)
stainless-app[bot] Dec 18, 2024
57946cb
chore(internal): codegen related update (#86)
stainless-app[bot] Dec 18, 2024
7dbadda
chore(internal): codegen related update (#87)
stainless-app[bot] Jan 2, 2025
cc7a473
chore: add missing isclass check (#88)
stainless-app[bot] Jan 7, 2025
c37a99c
chore(internal): bump httpx dependency (#89)
stainless-app[bot] Jan 8, 2025
071db7c
fix(client): only call .close() when needed (#90)
stainless-app[bot] Jan 8, 2025
e3b409c
docs: fix typos (#91)
stainless-app[bot] Jan 9, 2025
ac962fb
chore(internal): codegen related update (#92)
stainless-app[bot] Jan 9, 2025
b814470
release: 0.20.1
stainless-app[bot] Jan 9, 2025
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: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}

USER vscode

RUN curl -sSf https://rye-up.com/get | RYE_VERSION="0.24.0" RYE_INSTALL_OPTION="--yes" bash
RUN curl -sSf https://rye.astral.sh/get | RYE_VERSION="0.35.0" RYE_INSTALL_OPTION="--yes" bash
ENV PATH=/home/vscode/.rye/shims:$PATH

RUN echo "[[ -d .venv ]] && source .venv/bin/activate" >> /home/vscode/.bashrc
25 changes: 8 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request:
branches:
- main
- next

jobs:
lint:
Expand All @@ -18,27 +19,17 @@ jobs:

- name: Install Rye
run: |
curl -sSf https://rye-up.com/get | bash
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: 0.24.0
RYE_VERSION: '0.35.0'
RYE_INSTALL_OPTION: '--yes'

- name: Install dependencies
run: |
rye sync --all-features

- name: Run ruff
run: |
rye run check:ruff
run: rye sync --all-features

- name: Run type checking
run: |
rye run typecheck

- name: Ensure importable
run: |
rye run python -c 'import dataherald'
- name: Run lints
run: ./scripts/lint
test:
name: test
runs-on: ubuntu-latest
Expand All @@ -48,10 +39,10 @@ jobs:

- name: Install Rye
run: |
curl -sSf https://rye-up.com/get | bash
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: 0.24.0
RYE_VERSION: '0.35.0'
RYE_INSTALL_OPTION: '--yes'

- name: Bootstrap
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:

- name: Install Rye
run: |
curl -sSf https://rye-up.com/get | bash
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: 0.24.0
RYE_INSTALL_OPTION: "--yes"
RYE_VERSION: '0.35.0'
RYE_INSTALL_OPTION: '--yes'

- name: Publish to PyPI
run: |
Expand Down
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.prism.log
.vscode
_dev

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.20.0"
".": "0.20.1"
}
53 changes: 53 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,58 @@
# Changelog

## 0.20.1 (2025-01-09)

Full Changelog: [v0.20.0...v0.20.1](https://github.com/Dataherald/dataherald-python/compare/v0.20.0...v0.20.1)

### Bug Fixes

* **client:** compat with new httpx 0.28.0 release ([#65](https://github.com/Dataherald/dataherald-python/issues/65)) ([9ee84bd](https://github.com/Dataherald/dataherald-python/commit/9ee84bd044e4fd133b94e0346dff772ea62ec152))
* **client:** only call .close() when needed ([#90](https://github.com/Dataherald/dataherald-python/issues/90)) ([071db7c](https://github.com/Dataherald/dataherald-python/commit/071db7c123939fc97e425f143040b32c941f49a7))


### Chores

* add missing isclass check ([#88](https://github.com/Dataherald/dataherald-python/issues/88)) ([cc7a473](https://github.com/Dataherald/dataherald-python/commit/cc7a47330003f951306e3e313722c2a5020e8a3e))
* **internal:** add support for TypeAliasType ([#71](https://github.com/Dataherald/dataherald-python/issues/71)) ([911abd4](https://github.com/Dataherald/dataherald-python/commit/911abd4190cbc49d96fa291c0be303440fc651e7))
* **internal:** bump httpx dependency ([#89](https://github.com/Dataherald/dataherald-python/issues/89)) ([c37a99c](https://github.com/Dataherald/dataherald-python/commit/c37a99ced506fa058866003013a9a5410871d0c8))
* **internal:** bump pydantic dependency ([#68](https://github.com/Dataherald/dataherald-python/issues/68)) ([13d4ec2](https://github.com/Dataherald/dataherald-python/commit/13d4ec203e3b194ec38c33b8582288e344a16f19))
* **internal:** bump pyright ([#66](https://github.com/Dataherald/dataherald-python/issues/66)) ([9d5db21](https://github.com/Dataherald/dataherald-python/commit/9d5db21aae350d5eb3fa5a52cb72a8fcab17f0c2))
* **internal:** bump pyright ([#70](https://github.com/Dataherald/dataherald-python/issues/70)) ([2a732e0](https://github.com/Dataherald/dataherald-python/commit/2a732e03fafe75f1b0ab7812176259a9c311f2bc))
* **internal:** codegen related update ([#64](https://github.com/Dataherald/dataherald-python/issues/64)) ([5ba7000](https://github.com/Dataherald/dataherald-python/commit/5ba70006e6e4c0addb3461eaec8424d45d12c3c5))
* **internal:** codegen related update ([#72](https://github.com/Dataherald/dataherald-python/issues/72)) ([6ddf080](https://github.com/Dataherald/dataherald-python/commit/6ddf080b63f5fb373d1fd32ec4919baada704b64))
* **internal:** codegen related update ([#73](https://github.com/Dataherald/dataherald-python/issues/73)) ([d8c41ed](https://github.com/Dataherald/dataherald-python/commit/d8c41ed0a8cf93d7839a61ab572da71262f0c0db))
* **internal:** codegen related update ([#74](https://github.com/Dataherald/dataherald-python/issues/74)) ([b6bb66d](https://github.com/Dataherald/dataherald-python/commit/b6bb66d23275d077c6f2defcf076dc9b23c270bf))
* **internal:** codegen related update ([#75](https://github.com/Dataherald/dataherald-python/issues/75)) ([4b98a96](https://github.com/Dataherald/dataherald-python/commit/4b98a9631848d80f30c22aee9c3c0817770aee28))
* **internal:** codegen related update ([#76](https://github.com/Dataherald/dataherald-python/issues/76)) ([2ab6503](https://github.com/Dataherald/dataherald-python/commit/2ab650352fdc1f7a49f0bbd553b53ad47a81dce7))
* **internal:** codegen related update ([#77](https://github.com/Dataherald/dataherald-python/issues/77)) ([694418c](https://github.com/Dataherald/dataherald-python/commit/694418c48ff2842cb2c41699729baee90754488d))
* **internal:** codegen related update ([#78](https://github.com/Dataherald/dataherald-python/issues/78)) ([dcf8544](https://github.com/Dataherald/dataherald-python/commit/dcf8544e5f5edd785eb6cb6768106d44877a5c70))
* **internal:** codegen related update ([#79](https://github.com/Dataherald/dataherald-python/issues/79)) ([2dbb767](https://github.com/Dataherald/dataherald-python/commit/2dbb7674a7c3db79fec9ca141b4283c2f050c918))
* **internal:** codegen related update ([#80](https://github.com/Dataherald/dataherald-python/issues/80)) ([412f142](https://github.com/Dataherald/dataherald-python/commit/412f142303414a7fde0763aa72cdc74c31a8998d))
* **internal:** codegen related update ([#81](https://github.com/Dataherald/dataherald-python/issues/81)) ([031e5b8](https://github.com/Dataherald/dataherald-python/commit/031e5b84710ee455ce19eba2b8d5148134b4fe31))
* **internal:** codegen related update ([#83](https://github.com/Dataherald/dataherald-python/issues/83)) ([5bcb54b](https://github.com/Dataherald/dataherald-python/commit/5bcb54b4145ad3cbb0fa753f509db7838237e869))
* **internal:** codegen related update ([#84](https://github.com/Dataherald/dataherald-python/issues/84)) ([f9b8c6a](https://github.com/Dataherald/dataherald-python/commit/f9b8c6a812e0dc7607caccda8c45d7170d77af5e))
* **internal:** codegen related update ([#85](https://github.com/Dataherald/dataherald-python/issues/85)) ([f349307](https://github.com/Dataherald/dataherald-python/commit/f34930770a07b9553337b9a214883092035f442a))
* **internal:** codegen related update ([#86](https://github.com/Dataherald/dataherald-python/issues/86)) ([57946cb](https://github.com/Dataherald/dataherald-python/commit/57946cb1c1f04f1dc9b9bc64d9406267a29efb2f))
* **internal:** codegen related update ([#87](https://github.com/Dataherald/dataherald-python/issues/87)) ([7dbadda](https://github.com/Dataherald/dataherald-python/commit/7dbadda36b312ae2e93433aa2cbb0d41c4055705))
* **internal:** codegen related update ([#92](https://github.com/Dataherald/dataherald-python/issues/92)) ([ac962fb](https://github.com/Dataherald/dataherald-python/commit/ac962fb29ea9fbb91e308f580e726a3eb778fc6a))
* **internal:** fix compat model_dump method when warnings are passed ([#61](https://github.com/Dataherald/dataherald-python/issues/61)) ([6fedf36](https://github.com/Dataherald/dataherald-python/commit/6fedf36fd30a8a1ccbcb8633f85d999f0b38ec34))
* **internal:** fix some typos ([#82](https://github.com/Dataherald/dataherald-python/issues/82)) ([476ccee](https://github.com/Dataherald/dataherald-python/commit/476ccee978ece6c6e855f63e680f30aeaa4c3e18))
* **internal:** version bump ([#54](https://github.com/Dataherald/dataherald-python/issues/54)) ([762488e](https://github.com/Dataherald/dataherald-python/commit/762488ecc8e55fb18e05b90a7cb353bea9ee6a00))
* make the `Omit` type public ([#67](https://github.com/Dataherald/dataherald-python/issues/67)) ([3070bff](https://github.com/Dataherald/dataherald-python/commit/3070bff7d602bd234433ad802c92b9fba210a852))
* rebuild project due to codegen change ([#56](https://github.com/Dataherald/dataherald-python/issues/56)) ([3f06cb7](https://github.com/Dataherald/dataherald-python/commit/3f06cb70c1ef852ec71f9b4763f991ffcf3e1562))
* rebuild project due to codegen change ([#57](https://github.com/Dataherald/dataherald-python/issues/57)) ([eaf1330](https://github.com/Dataherald/dataherald-python/commit/eaf13302cfbaf6c7ed61717be1ce9359d716cbdf))
* rebuild project due to codegen change ([#58](https://github.com/Dataherald/dataherald-python/issues/58)) ([2e4560f](https://github.com/Dataherald/dataherald-python/commit/2e4560f29d5e27c88dbcfd80aaa84fca1e64133b))
* rebuild project due to codegen change ([#59](https://github.com/Dataherald/dataherald-python/issues/59)) ([7728427](https://github.com/Dataherald/dataherald-python/commit/7728427bca7e453c0897e599c2cb6e80b558e80e))
* rebuild project due to codegen change ([#60](https://github.com/Dataherald/dataherald-python/issues/60)) ([6742d13](https://github.com/Dataherald/dataherald-python/commit/6742d13cf6e40582d84e19aa085ef36f6359fb4c))
* remove now unused `cached-property` dep ([#63](https://github.com/Dataherald/dataherald-python/issues/63)) ([540b49a](https://github.com/Dataherald/dataherald-python/commit/540b49a21e53183ac7a5eb670b375e3ded2ecf34))


### Documentation

* add info log level to readme ([#62](https://github.com/Dataherald/dataherald-python/issues/62)) ([175f6b8](https://github.com/Dataherald/dataherald-python/commit/175f6b8f5e544c979425b1a4c37be9a04162ceb8))
* fix typos ([#91](https://github.com/Dataherald/dataherald-python/issues/91)) ([e3b409c](https://github.com/Dataherald/dataherald-python/commit/e3b409cb56dda58af9dca833b74a802682e5d9db))
* **readme:** fix http client proxies example ([#69](https://github.com/Dataherald/dataherald-python/issues/69)) ([f0129cf](https://github.com/Dataherald/dataherald-python/commit/f0129cf790bb9849d6c64bae68b912756006e9da))

## 0.20.0 (2024-05-06)

Full Changelog: [v0.19.0...v0.20.0](https://github.com/Dataherald/dataherald-python/compare/v0.19.0...v0.20.0)
Expand Down
52 changes: 28 additions & 24 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

### With Rye

We use [Rye](https://rye-up.com/) to manage dependencies so we highly recommend [installing it](https://rye-up.com/guide/installation/) as it will automatically provision a Python environment with the expected Python version.
We use [Rye](https://rye.astral.sh/) to manage dependencies because it will automatically provision a Python environment with the expected Python version. To set it up, run:

After installing Rye, you'll just have to run this command:
```sh
$ ./scripts/bootstrap
```

Or [install Rye manually](https://rye.astral.sh/guide/installation/) and run:

```sh
$ rye sync --all-features
Expand All @@ -31,25 +35,25 @@ $ pip install -r requirements-dev.lock

## Modifying/Adding code

Most of the SDK is generated code, and any modified code will be overridden on the next generation. The
`src/dataherald/lib/` and `examples/` directories are exceptions and will never be overridden.
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may
result in merge conflicts between manual patches and changes from the generator. The generator will never
modify the contents of the `src/dataherald/lib/` and `examples/` directories.

## Adding and running examples

All files in the `examples/` directory are not modified by the Stainless generator and can be freely edited or
added to.
All files in the `examples/` directory are not modified by the generator and can be freely edited or added to.

```bash
```py
# add an example to examples/<your-example>.py

#!/usr/bin/env -S rye run python
```

```
chmod +x examples/<your-example>.py
```sh
$ chmod +x examples/<your-example>.py
# run the example against your api
./examples/<your-example>.py
$ ./examples/<your-example>.py
```

## Using the repository from source
Expand All @@ -58,8 +62,8 @@ If you’d like to use the repository from source, you can either install from g

To install via git:

```bash
pip install git+ssh://[email protected]/Dataherald/dataherald-python.git
```sh
$ pip install git+ssh://[email protected]/Dataherald/dataherald-python#main.git
```

Alternatively, you can build from source and install the wheel file:
Expand All @@ -68,29 +72,29 @@ Building this package will create two files in the `dist/` directory, a `.tar.gz

To create a distributable version of the library, all you have to do is run this command:

```bash
rye build
```sh
$ rye build
# or
python -m build
$ python -m build
```

Then to install:

```sh
pip install ./path-to-wheel-file.whl
$ pip install ./path-to-wheel-file.whl
```

## Running tests

Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.

```bash
```sh
# you will need npm installed
npx prism mock path/to/your/openapi.yml
$ npx prism mock path/to/your/openapi.yml
```

```bash
rye run pytest
```sh
$ ./scripts/test
```

## Linting and formatting
Expand All @@ -100,14 +104,14 @@ This repository uses [ruff](https://github.com/astral-sh/ruff) and

To lint:

```bash
rye run lint
```sh
$ ./scripts/lint
```

To format and fix all ruff issues automatically:

```bash
rye run format
```sh
$ ./scripts/format
```

## Publishing and releases
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2024 Dataherald
Copyright 2025 Dataherald

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Loading
Loading