-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
feat(binaries): improve platform and architecture support #233
Conversation
Thank you! This is a much needed improvement. Could you please add unit tests to ensure that all possible URLs that we generate will not result in a 404. You could base it off of this script (but should probably parallelise the requests with the import httpx
from prisma.binaries import ENGINES
url = ENGINES[0].url
print(url)
client = httpx.Client()
response = client.head(url)
response.raise_for_status()
client.close() |
needs cleaning up and tests
@RobertCraigie will do it later. Just pushed the basic implementation and now I'm going to sleep. It should be on par with the default TypeScript one. |
@HKGx No worries, thank you so much, it is much appreciated!
I hadn't even realised there was an OpenSSL 3.0 to be honest, is it worth making an issue in https://github.com/prisma/prisma-engines? |
@HKGx I've pushed some minor changes and small fixes. Some thoughts:
Regarding code style:
Great work so far! |
should simplify syntax and usage
TODO: add new tests
Codecov Report
@@ Coverage Diff @@
## main #233 +/- ##
===========================================
- Coverage 96.52% 38.81% -57.71%
===========================================
Files 113 102 -11
Lines 5637 5531 -106
Branches 324 330 +6
===========================================
- Hits 5441 2147 -3294
- Misses 147 3304 +3157
- Partials 49 80 +31
Continue to review full report at Codecov.
|
TODO: can't we use `ensureCached` like in 5dea8cf?
Change Summary
Resolves properly #195
Pretty much just porting https://github.com/prisma/engines-wrapper to Python.
Checklist
Agreement
By submitting this pull request, I confirm that you can use, modify, copy and redistribute this contribution, under the terms of your choice.