Setuptools version ceilings?
See original GitHub issueAfter the release of setuptools 60.0.3 yesterday, all the Python 3.7 and 3.8 tests started failing on Dask. This is because the versions of pandas and numpy in those envs hadn’t yet moved to using packaging.version
. This is the error:
py.test dask --runslow --cov=dask --cov-report=xml -n4
ImportError while loading conftest '/home/runner/work/dask/dask/conftest.py'.
conftest.py:28: in <module>
import pandas # noqa: F401
/usr/share/miniconda3/envs/test-environment/lib/python3.7/site-packages/pandas/__init__.py:22: in <module>
from pandas.compat.numpy import (
/usr/share/miniconda3/envs/test-environment/lib/python3.7/site-packages/pandas/compat/numpy/__init__.py:10: in <module>
_nlv = LooseVersion(_np_version)
/usr/share/miniconda3/envs/test-environment/lib/python3.7/site-packages/setuptools/_distutils/version.py:57: in __init__
stacklevel=2,
E DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
Error: Process completed with exit code 4.
It feels like this could be fixed on the conda-forge side, but I think the correct fix would be to update all the old recipes for all packages and explicitly add setuptools with a ceiling. But that seems impossible.
Here is the dask PR where I am setting a ceiling on setuptools for these older envs: https://github.com/dask/dask/pull/8509
Issue Analytics
- State:
- Created 2 years ago
- Comments:20 (20 by maintainers)
Top Results From Across the Web
Specifying Your Project's Version - Setuptools
Once you've decided on a version numbering scheme for your project, you can have setuptools automatically tag your in-development releases with various pre-...
Read more >python3 setuptools is not package error - Stack Overflow
Long story short, executable script cannot have the same name like the package. Lost 3 hours of my life.
Read more >Drop pbr version ceiling and add py39 testing · c69ead8b45 - tripleo ...
Ceiling of pbr version can create installation conflicts with pip. ... $OS_APPLY_CONFIG_VENV_DIR/bin/pip install -U 'setuptools>=1.0'.
Read more >Functions/Test-OSServerHardwareReqs.ps1 ... - PowerShell Gallery
Outsystems.SetupTools ... Specifies the platform major version. Accepted values: 10 or 11 .EXAMPLE Test-OSServerSoftwareReqs -MajorVersion "10.0"
Read more >Is there a ceiling equivalent of // operator in Python?(5solution)
Python :Is there a ceiling equivalent of // operator in ... can I get the version defined in setup.py ( setuptools ) in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The linter runs in our heroku server. Conda build is run in azure etc. So we’d need a secure way to report statuses back to github without putting keys into public forks etc. I think this is just too hard right now.
(conda plugins would be sooo useful here)