Skip to content

Commit

Permalink
Merge branch 'main' into fix-sqlalchemy-engine-from-config-monkeypatc…
Browse files Browse the repository at this point in the history
…hing
  • Loading branch information
tammy-baylis-swi authored Nov 12, 2024
2 parents cbb0447 + c28f7c9 commit 7e1a976
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 17 deletions.
1 change: 1 addition & 0 deletions .github/component_owners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,4 @@ components:
- lzchen
- gyliu513
- nirga
- codefromthecrypt
4 changes: 2 additions & 2 deletions .github/workflows/package-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ jobs:
- name: Publish to PyPI
env:
TWINE_USERNAME: '__token__'
TWINE_PASSWORD: ${{ secrets.test_pypi_token }}
TWINE_PASSWORD: ${{ secrets.pypi_password }}
run: |
twine upload --repository testpypi --skip-existing --verbose dist/*
twine upload --skip-existing --verbose dist/*
- name: Generate release notes
env:
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,13 @@ jobs:
# rejected by pypi (e.g "3 - Beta"). This would cause a failure during the
# middle of the package upload causing the action to fail, and certain packages
# might have already been updated, this would be bad.
# EDIT: 5/31/2024 - TestPypi now requires a verified email. Commenting out as a temporary measure
# until we found TestPypi credentials.
# - name: Publish to TestPyPI
# env:
# TWINE_USERNAME: '__token__'
# TWINE_PASSWORD: ${{ secrets.test_pypi_token }}
# run: |
# twine upload --repository testpypi --skip-existing --verbose dist/*

- name: Publish to TestPyPI
env:
TWINE_USERNAME: '__token__'
TWINE_PASSWORD: ${{ secrets.test_pypi_token }}
run: |
twine upload --repository testpypi --skip-existing --verbose dist/*
- name: Publish to PyPI
env:
Expand Down
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ You can run `tox` with the following arguments:
Python version
* `tox -e spellcheck` to run a spellcheck on all the code
* `tox -e lint-some-package` to run lint checks on `some-package`
* `tox -e generate-workflows` to run creation of new CI workflows if tox environments have been updated
* `tox -e ruff` to run ruff linter and formatter checks against the entire codebase

`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:
Expand Down Expand Up @@ -297,6 +298,7 @@ When updating the minimum supported Python version remember to:

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

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

- Add the version in `tox.ini`
- Add the version in `pyproject.toml` trove classifiers
- Update github workflows accordingly; lint and benchmarks use the latest supported version
- Update github workflows accordingly with `tox -e generate-workflows`; lint and benchmarks use the latest supported version
- Update `.pre-commit-config.yaml`
- Update tox examples in the documentation
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interactions:
host:
- api.openai.com
user-agent:
- OpenAI/Python 1.26.0
- OpenAI/Python 1.54.3
x-stainless-arch:
- arm64
x-stainless-async:
Expand All @@ -34,7 +34,9 @@ interactions:
x-stainless-os:
- MacOS
x-stainless-package-version:
- 1.26.0
- 1.54.3
x-stainless-retry-count:
- '0'
x-stainless-runtime:
- CPython
x-stainless-runtime-version:
Expand All @@ -56,13 +58,13 @@ interactions:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8dd0709dffd19c8c-SIN
- 8e0ca7056be15f93-SIN
Connection:
- keep-alive
Content-Type:
- application/json; charset=utf-8
Date:
- Mon, 04 Nov 2024 00:20:44 GMT
- Mon, 11 Nov 2024 07:43:38 GMT
Server:
- cloudflare
Set-Cookie: test_set_cookie
Expand All @@ -80,7 +82,7 @@ interactions:
vary:
- Origin
x-request-id:
- req_e08854c4f7d5104af6fdc755caed30fc
- req_75175efff56c313161c136c479e082ac
status:
code: 404
message: Not Found
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def deserialize(cassette_string):
return yaml.load(cassette_string, Loader=yaml.Loader)


@pytest.fixture(scope="module")
@pytest.fixture(scope="module", autouse=True)
def fixture_vcr(vcr):
vcr.register_serializer("yaml", PrettyPrintJSONBody)
return vcr
Expand Down

0 comments on commit 7e1a976

Please sign in to comment.