-
Notifications
You must be signed in to change notification settings - Fork 244
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
bug: 3.2 does not support python 2.7 anymore, indirectly #568
Comments
Hi, I'm having trouble reproducing this in the docker What commands did you run and did you see any errors during install? Thanks! » docker run -it python:2-slim /bin/bash
root@89000e286f23:/# pip --version
pip 20.0.2 from /usr/local/lib/python2.7/site-packages/pip (python 2.7)
root@89000e286f23:/# python --version
Python 2.7.18
root@89000e286f23:/# pip install bleach==3.2.1
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting bleach==3.2.1
Downloading bleach-3.2.1-py2.py3-none-any.whl (145 kB)
|████████████████████████████████| 145 kB 398 kB/s
Collecting six>=1.9.0
Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting webencodings
Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting packaging
Downloading packaging-20.8-py2.py3-none-any.whl (39 kB)
Collecting pyparsing>=2.0.2
Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
|████████████████████████████████| 67 kB 583 kB/s
Installing collected packages: six, webencodings, pyparsing, packaging, bleach
Successfully installed bleach-3.2.1 packaging-20.8 pyparsing-2.4.7 six-1.15.0 webencodings-0.5.1
WARNING: You are using pip version 20.0.2; however, version 20.3.3 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
root@89000e286f23:/# python
Python 2.7.18 (default, Apr 20 2020, 19:34:11)
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import bleach
>>> bleach.__version__
u'3.2.1'
>>> |
refs: #520 |
Hi @g-k, this is my requirements.txt, if it helps: And this is my dockerfile, where you can also see the commands that lead to the installation of the pip dependencies: Please let me know if you need more info, thanks! |
@siovene I can't get astrobin to build. When running
pip 21.0.1 dropped support for Python 2.7, so I suspect that's what's going on. Going back a step, I think the problem you're hitting is a problem in the packaging library or some other transitive dependency that's not listed in your requirements file. For example, packaging 20.8 released in 2020-12-11 has this note:
I think you should try rebasing your |
Thanks Will! Closing this since it looks specific to astrobin. |
Describe the bug
bleach is supposed to support python 2.7, as far as I understand, but version 2.7 requires setuptools > 45, and that requires python 3.
** python and bleach versions (please complete the following information):**
To Reproduce
Steps to reproduce the behavior:
Try to install bleach 3.2.1 with python 2.7 and setuptools 45.
Expected behavior
Everything works fine.
Additional context
The text was updated successfully, but these errors were encountered: