Skip to content

support newer python versions#11675

Merged
kodiakhq[bot] merged 6 commits intomainfrom
trek/zero-1940-asgi-implementation-in-vercelpython-is-incompatible-with
May 30, 2024
Merged

support newer python versions#11675
kodiakhq[bot] merged 6 commits intomainfrom
trek/zero-1940-asgi-implementation-in-vercelpython-is-incompatible-with

Conversation

@trek
Copy link
Contributor

@trek trek commented May 30, 2024

When we added the option of getting al2023 in addition to al2, this required a python version bump for those apps on al2023. Python 3.10 had a breaking minor change. #11541 mostly fixed it, with some comments.

OP hasn't replied to feedback on that PR, so I've take it over from them.

@changeset-bot
Copy link

changeset-bot bot commented May 30, 2024

🦋 Changeset detected

Latest commit: 68bdd55

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@vercel/python Minor
vercel Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@EndangeredMassa EndangeredMassa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know Python deeply, but this looks like it could work.

asgi_task = loop.create_task(asgi_instance)
loop.run_until_complete(asgi_task)
else:
asyncio.run(self.run_asgi_instance(asgi_instance))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've mentioned this in another PR fixing this issue: Since asgi_instance is a coroutine, I believe you don't have to wrap in a function

@kodiakhq kodiakhq bot merged commit 3eb9d8c into main May 30, 2024
@kodiakhq kodiakhq bot deleted the trek/zero-1940-asgi-implementation-in-vercelpython-is-incompatible-with branch May 30, 2024 18:46
trek pushed a commit that referenced this pull request May 30, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @vercel/python@4.3.0

### Minor Changes

- support newer python versions
([#11675](#11675))

## @vercel/build-utils@8.2.1

### Patch Changes

- [node] update node@16 deprecation day
([#11671](#11671))

## vercel@34.2.4

### Patch Changes

- Updated dependencies
\[[`3eb9d8c89`](3eb9d8c),
[`83741a0eb`](83741a0)]:
    -   @vercel/python@4.3.0
    -   @vercel/build-utils@8.2.1
    -   @vercel/node@3.1.6
    -   @vercel/static-build@2.5.10

## @vercel/client@13.2.8

### Patch Changes

- Updated dependencies
\[[`83741a0eb`](83741a0)]:
    -   @vercel/build-utils@8.2.1

## @vercel/gatsby-plugin-vercel-builder@2.0.32

### Patch Changes

- Updated dependencies
\[[`83741a0eb`](83741a0)]:
    -   @vercel/build-utils@8.2.1

## @vercel/node@3.1.6

### Patch Changes

- Updated dependencies
\[[`83741a0eb`](83741a0)]:
    -   @vercel/build-utils@8.2.1

## @vercel/static-build@2.5.10

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/gatsby-plugin-vercel-builder@2.0.32

## @vercel-internals/types@1.0.37

### Patch Changes

- Updated dependencies
\[[`83741a0eb`](83741a0)]:
    -   @vercel/build-utils@8.2.1

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants