Skip to content

Commit 7e1a976

Browse files
Merge branch 'main' into fix-sqlalchemy-engine-from-config-monkeypatching
2 parents cbb0447 + c28f7c9 commit 7e1a976

File tree

6 files changed

+21
-17
lines changed

6 files changed

+21
-17
lines changed

.github/component_owners.yml

+1
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,4 @@ components:
7373
- lzchen
7474
- gyliu513
7575
- nirga
76+
- codefromthecrypt

.github/workflows/package-release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ jobs:
102102
- name: Publish to PyPI
103103
env:
104104
TWINE_USERNAME: '__token__'
105-
TWINE_PASSWORD: ${{ secrets.test_pypi_token }}
105+
TWINE_PASSWORD: ${{ secrets.pypi_password }}
106106
run: |
107-
twine upload --repository testpypi --skip-existing --verbose dist/*
107+
twine upload --skip-existing --verbose dist/*
108108
109109
- name: Generate release notes
110110
env:

.github/workflows/release.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,13 @@ jobs:
8181
# rejected by pypi (e.g "3 - Beta"). This would cause a failure during the
8282
# middle of the package upload causing the action to fail, and certain packages
8383
# might have already been updated, this would be bad.
84-
# EDIT: 5/31/2024 - TestPypi now requires a verified email. Commenting out as a temporary measure
85-
# until we found TestPypi credentials.
86-
# - name: Publish to TestPyPI
87-
# env:
88-
# TWINE_USERNAME: '__token__'
89-
# TWINE_PASSWORD: ${{ secrets.test_pypi_token }}
90-
# run: |
91-
# twine upload --repository testpypi --skip-existing --verbose dist/*
84+
85+
- name: Publish to TestPyPI
86+
env:
87+
TWINE_USERNAME: '__token__'
88+
TWINE_PASSWORD: ${{ secrets.test_pypi_token }}
89+
run: |
90+
twine upload --repository testpypi --skip-existing --verbose dist/*
9291
9392
- name: Publish to PyPI
9493
env:

CONTRIBUTING.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ You can run `tox` with the following arguments:
6868
Python version
6969
* `tox -e spellcheck` to run a spellcheck on all the code
7070
* `tox -e lint-some-package` to run lint checks on `some-package`
71+
* `tox -e generate-workflows` to run creation of new CI workflows if tox environments have been updated
7172
* `tox -e ruff` to run ruff linter and formatter checks against the entire codebase
7273

7374
`ruff check` and `ruff format` are executed when `tox -e ruff` is run. We strongly recommend you to configure [pre-commit](https://pre-commit.com/) locally to run `ruff` automatically before each commit by installing it as git hooks. You just need to [install pre-commit](https://pre-commit.com/#install) in your environment:
@@ -297,6 +298,7 @@ When updating the minimum supported Python version remember to:
297298

298299
- Remove the version in `pyproject.toml` trove classifiers
299300
- Remove the version from `tox.ini`
301+
- Update github workflows accordingly with `tox -e generate-workflows`
300302
- Search for `sys.version_info` usage and remove code for unsupported versions
301303
- Bump `py-version` in `.pylintrc` for Python version dependent checks
302304

@@ -306,6 +308,6 @@ When adding support for a new Python release remember to:
306308

307309
- Add the version in `tox.ini`
308310
- Add the version in `pyproject.toml` trove classifiers
309-
- Update github workflows accordingly; lint and benchmarks use the latest supported version
311+
- Update github workflows accordingly with `tox -e generate-workflows`; lint and benchmarks use the latest supported version
310312
- Update `.pre-commit-config.yaml`
311313
- Update tox examples in the documentation

instrumentation-genai/opentelemetry-instrumentation-openai-v2/tests/cassettes/test_chat_completion_404.yaml

+7-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interactions:
2424
host:
2525
- api.openai.com
2626
user-agent:
27-
- OpenAI/Python 1.26.0
27+
- OpenAI/Python 1.54.3
2828
x-stainless-arch:
2929
- arm64
3030
x-stainless-async:
@@ -34,7 +34,9 @@ interactions:
3434
x-stainless-os:
3535
- MacOS
3636
x-stainless-package-version:
37-
- 1.26.0
37+
- 1.54.3
38+
x-stainless-retry-count:
39+
- '0'
3840
x-stainless-runtime:
3941
- CPython
4042
x-stainless-runtime-version:
@@ -56,13 +58,13 @@ interactions:
5658
CF-Cache-Status:
5759
- DYNAMIC
5860
CF-RAY:
59-
- 8dd0709dffd19c8c-SIN
61+
- 8e0ca7056be15f93-SIN
6062
Connection:
6163
- keep-alive
6264
Content-Type:
6365
- application/json; charset=utf-8
6466
Date:
65-
- Mon, 04 Nov 2024 00:20:44 GMT
67+
- Mon, 11 Nov 2024 07:43:38 GMT
6668
Server:
6769
- cloudflare
6870
Set-Cookie: test_set_cookie
@@ -80,7 +82,7 @@ interactions:
8082
vary:
8183
- Origin
8284
x-request-id:
83-
- req_e08854c4f7d5104af6fdc755caed30fc
85+
- req_75175efff56c313161c136c479e082ac
8486
status:
8587
code: 404
8688
message: Not Found

instrumentation-genai/opentelemetry-instrumentation-openai-v2/tests/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def deserialize(cassette_string):
161161
return yaml.load(cassette_string, Loader=yaml.Loader)
162162

163163

164-
@pytest.fixture(scope="module")
164+
@pytest.fixture(scope="module", autouse=True)
165165
def fixture_vcr(vcr):
166166
vcr.register_serializer("yaml", PrettyPrintJSONBody)
167167
return vcr

0 commit comments

Comments
 (0)