Skip to content
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

Relax Numpy constraints #1732

Merged
merged 3 commits into from Mar 26, 2022
Merged

Relax Numpy constraints #1732

merged 3 commits into from Mar 26, 2022

Conversation

erikgaas
Copy link
Contributor

@erikgaas erikgaas commented Mar 11, 2022

In a different repo we have been running into problems caused by moviepy's numpy version constraints. I suspected that these constraints were unnecessary so I cloned the repo and tested under different versions of numpy.

I have found that versions 1.17.3, 1.18.0, 1.20.0, 1.21.5, and 1.22.3 (latest version) all result in passing tests.

I also tested 1.17.0 which fails to install. Nevertheless it seems like all numpy versions going forward from 1.17.3 are compatible with moviepy. I would recommend that the <=1.20.0 constraint be removed and to allow numpy versions going forward to prevent against unnecessary version conflicts for other packages.

Another idea would be to add <2.0.0 for a potentially backwards incompatible major version jump, or a more conservative <1.23.0 for minor revision changes. Patches are very safe to assume will continue to work correctly.

Thanks!

PS I tested locally on a mac, I'll be checking to make sure CI here also works as expected for this change.

@coveralls
Copy link

coveralls commented Mar 13, 2022

Coverage Status

Coverage remained the same at 84.789% when pulling f9a33c0 on erikgaas:patch-1 into 0b63f47 on Zulko:master.

@keikoro keikoro added lib-misc Issues pertaining to misc. 3rd-party libraries. dependencies For issues and PRs concerning project dependencies. See lib- prefix for individual dependencies. labels Mar 13, 2022
@keikoro
Copy link
Collaborator

keikoro commented Mar 13, 2022

Only tangentially related note: the files which caused the Code format check to fail have meanwhile been fixed.

@erikgaas
Copy link
Contributor Author

Sounds good I have fetched upstream so if those were the only failing tests then this PR should work now.

@keikoro keikoro requested a review from mondeja March 23, 2022 18:12
@mondeja
Copy link
Collaborator

mondeja commented Mar 25, 2022

Hi @tburrows13! I'm not sure why you pinned Numpy to <=1.20.0 in #1455. Could you check it? Cheers!

@mondeja mondeja requested review from tburrows13 and removed request for mondeja March 25, 2022 10:08
@tburrows13
Copy link
Collaborator

Hi @tburrows13! I'm not sure why you pinned Numpy to <=1.20.0 in #1455. Could you check it? Cheers!

I think just because 1.19 was the current version when I created that PR and I didn't want to assume compatibility with unreleased versions. If they've been tested then I'm fine with increasing/removing the restriction.

@mondeja mondeja merged commit 7e3e8bb into Zulko:master Mar 26, 2022
@keikoro keikoro mentioned this pull request Dec 1, 2022
bzczb pushed a commit to bzczb/moviepy that referenced this pull request Jan 27, 2023
* bump numpy to 1.20

* relax numpy constraints

(cherry picked from commit 7e3e8bb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies For issues and PRs concerning project dependencies. See lib- prefix for individual dependencies. lib-misc Issues pertaining to misc. 3rd-party libraries.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants