Preparing 0.24 release candidate 1.#18956
Conversation
|
We have and: |
|
I think this should be the way to do it: |
IIRC, I tried this solution before and I think that we cannot import Nevertheless, I have an alternative solution that would allow to do that dynamically. PR welcome? |
|
Thanks @ogrisel and @alfaro96 but the Windows wheel is failing with Do you mind letting me some time to debug? Thanks! |
Indeed. It's possible but it's hackish to do it this way: Alternatively we could open +1 for doing this as a PR on master. |
My solution is just to use I will open a PR in a few minutes. |
I wrote differently the sklearn version in |
|
I have opened a sister PR to master to update the version number: #18958. |
|
The test pypi upload was successful: https://test.pypi.org/project/scikit-learn/0.24.0rc1/#files |
|
Apparently there is a way to package release candidates on conda-forge but it involves manual operations as described in: https://github.com/conda-forge/cfep/blob/master/cfep-05.md However I am not sure how we are supposed to create this Maybe we can skip conda-forge packaging for the RC. |
|
Maybe you could use a similar approach than the |
|
I gave it a try here: |
|
The 0.24 documentation is now online: https://scikit-learn.org/0.24/ It's a good time to review to spot possible problems it before we make the |
Perhaps someone could merge #18899? Easy and already approved simplification of the current css. |
|
Hi guys, Flair team here 😅 When using the current 0.24.0rc1 version, our builds are currently failing with: Partial import of sklearn during the build process.
Traceback (most recent call last):
File "/tmp/easy_install-s6byaeqi/scikit-learn-0.24.0rc1/setup.py", line 201, in check_package_status
module = importlib.import_module(package)
File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'numpy'
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules
yield saved
File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-s6byaeqi/scikit-learn-0.24.0rc1/setup.py", line 305, in <module>
File "/tmp/easy_install-s6byaeqi/scikit-learn-0.24.0rc1/setup.py", line 291, in setup_package
File "/tmp/easy_install-s6byaeqi/scikit-learn-0.24.0rc1/setup.py", line 227, in check_package_status
ImportError: numpy is not installed.
scikit-learn requires numpy >= 1.13.3.
Installation instructions are available on the scikit-learn website: http://scikit-learn.org/stable/install.htmlSee build log here. Our requirements file is specified here. Do we need to explict. specify Thanks many in advance 🤗 |
|
Hi @stefan-it, thanks for your feedback. I've reproduced the error locally ... almost: my install fails installing numpy as scikit-learn dependence ... The problem is that building with python 3.6 the last version of numpy complains with Probably @ogrisel or @alfaro96 know better what needs to be fixed here... |
Can you reproduce the error locally using
Python 3.6 is no longer supported by |
If I force numpy<1.20.0 in the |
That makes sense because Python 3.6 is no longer supported by Thank you @cmarmo for testing this :) |
|
Thanks for your help ❤️ I can confirm that with Python 3.6, the build error can be fixed by using With Python 3.7 it is not necessary to specify As we have a large user base that is using Python 3.6, we'll use |
|
Update: I was using a local environment with However, with Ubuntu 18.04 (that GitHub Actions is using), the build will fail again - I was also able to reproduce it with an Do you have any idea, why the Many thanks! |
|
Thanks for the investigation, we can probably try to add a conditional constraint to numpy<1.20.0 for Python 3.6 in our runtime dependency declaration in our |
|
@stefan-it in your case I do not understand why your CI build does not install the scikit-learn wheel. Here it seems to be trying to install run the setup.py of scikit-learn from source (probably to introspect the dependencies of gdown). Which command is run by your CI to get this log? |
|
Ok I get it: your project dependencies are set using: https://github.com/flairNLP/flair/blob/master/setup.py#L3 and then you run I think you should use pip explicitly to install everything, either: or: |
|
But this reveals that scikit-learn |
|
Hi @ogrisel , thanks for your help! We decided to use the |
What does this implement/fix? Explain your changes.
Update doc and version following the maintainer instructions.
sklearn.__version__in master branch: Switch master to 1.0.dev0 (or 0.25.dev0) #18958[cd build]commit message to upload wheels to the staging repohttps://github.com/conda-forge/scikit-learn-feedstock and wait for merge
.binder/requirement.txt(see[MRG] More explicit binder requirements for 0.22 #15847)