-
Notifications
You must be signed in to change notification settings - Fork 39
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
Replace the use of numpy #19
Comments
Curious. I did wonder why there was a dependency on numpy in SDK v2 but never looked into it. This looks like an accidental import of long from numpy, leading to an accidental package dependency on numpy! In this case, can you just use opsgenie-python-sdk/opsgenie_sdk/rest.py Line 157 in 1d0a2d4
In this case, you simply do not need the import. In Python 3,
Judging by the (Unfortunately I don't see a |
I have drawn the same conclusion as you and have applied pretty much what you've said on a fork which I have deployed and running on Python 3. I have not yet had a chance to test it is compatible with Python 2 or indeed what test cases need to be hit. |
@jkinred is there any update on this? My company just started using OpsGenie and we'd like to log problems directly to it from our Python applications. Requiring numpy in those applications is definitely a non-option. |
Any updates here? |
I agree, removing the numpy dependency would be great! Right now it is very annoying to include the opsgenie-sdk dependency, for example in an alpine docker container, because it needs to compile numpy. Also it seems to be an easy fix? |
I've submitted a PR to fix this in #43 |
Is it necessary to import
numpy
to get access tolong
? There is along
built-in for Python 2.The import of
numpy
makes use of this project quite inefficient for deploying on Lambda (25MB bundle) as well as causing lockingissuesdelays with Pipenv.opsgenie-python-sdk/opsgenie_sdk/api_client.py
Line 25 in 1d0a2d4
opsgenie-python-sdk/opsgenie_sdk/rest.py
Line 157 in 1d0a2d4
The text was updated successfully, but these errors were encountered: