Closed decfrr closed 5 months ago
Looks good to me. Can you apply the changes in #128 to fix CI failures?
Run actions/setup-python@v1
Error: Version 3.9 with arch x64 not found
Thanks for the confirmation. I have merged and imported the contents of the patch. Please confirm.
umm, looks like numpy 2.0.0 is installed on CI 🤔
Using cached numpy-2.0.0-cp39-cp39-macosx_14_0_arm64.whl (5.2 MB)
I guess when we try to build this package using non version 2.0 numpy, we need to remove the cache in advance.
Also, rather than specifying less than a specific version, I thought I should specify a version less than 2.0. I don't think this is a point to be particular about since it is a primary response, but I think it is better this way, so I changed it.
I guess when we try to build this package using non version 2.0 numpy, we need to remove the cache in advance.
I too had a problem with ci downloading numpy 2.0. I will investigate.
It seems not a package requirements problem, because if we try to install nnmnkwii from the git, like pip install git+https://github.com...
pip use numpy under version 2.0 and build succsessfully.
Umm...
I guess I found the reason: setup_requires
is deprecated
https://setuptools.pypa.io/en/latest/userguide/dependency_management.html
In previous versions of setuptools, this used to be accomplished with the setup_requires keyword but is now considered deprecated in favor of the PEP 517 style described above. To peek into how this legacy keyword is used, consult our guide on deprecated practice (WIP).
so, what about removing setup_requires
and instead add the numpy requirement in install_requires
?
By using install_requires
instead of setup_requires
, the problem of numpy version had been solved.
Also, some test problems had occured, I fixed them.
np.int
type has been deprecated
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecationslibrosa.effects.time_stretch
argumentAnd I found a error of deprecated field np.object
, I fixed it.
Thank you for the fixes! CI still fails on python 3.7 but I think it's OK to drop python 3.7 from CI. Shall we check all tests are passing except for python 3.7?
I see that the test fails in 3.7. I'd like you to run the test on other versions just to be sure.
it works fine with me locally with python 3.8, numpy 1.24.3, OSX. I needed https://github.com/r9y9/nnmnkwii/pull/128/commits/907162ed95aeaafeab2422d0cc9bd290c1ea9505 for tests on OSX but everything else was OK with this PR.
Testing other versions/platforms with github actions (https://github.com/r9y9/nnmnkwii/pull/128) and it is working OK too. I'll merge this PR after all CI gets green by either
I have merged the changes of including dropping python 3.7 from ci. It seems that all CI will complete jobs successfully.
Thank you for valuable opportunity. I appereciate your ongoing maintenance.
What
Fix #126
Why
The problem was due to an unset version limit for numpy. With the release of version 2.0.0 on the 16th of this month, which contained some destructive changes, the build of this package was failing. By setting the upper version limit, the build will succeed.
Tasks