ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132k stars 10.01k forks source link

Drop Python 3.2 support #9751

Open yan12125 opened 8 years ago

yan12125 commented 8 years ago

The latest pip has dropped Python 3.2 support (pypa/pip#3156) . As a result, I can't install pip:

$ python3.2 ~/tmp/get-pip.py --user
/tmp/tmpyhlooe/pip.zip/pip/_vendor/pkg_resources/__init__.py:80: UserWarning: Support for Python 3.0-3.2 has been dropped. Future versions will fail here.
Traceback (most recent call last):
  File "/home/yen/tmp/get-pip.py", line 19177, in <module>
    main()
  File "/home/yen/tmp/get-pip.py", line 194, in main
    bootstrap(tmpdir=tmpdir)
  File "/home/yen/tmp/get-pip.py", line 82, in bootstrap
    import pip
  File "/tmp/tmpyhlooe/pip.zip/pip/__init__.py", line 16, in <module>
  File "/tmp/tmpyhlooe/pip.zip/pip/vcs/mercurial.py", line 9, in <module>
  File "/tmp/tmpyhlooe/pip.zip/pip/download.py", line 36, in <module>
  File "/tmp/tmpyhlooe/pip.zip/pip/utils/ui.py", line 15, in <module>
  File "/tmp/tmpyhlooe/pip.zip/pip/_vendor/progress/bar.py", line 48
    empty_fill = u'∙'
                      ^
SyntaxError: invalid syntax

Reasons for dropping:

A last bit: re on Python 3.2 is broken.

$ python3.2 test/test_all_urls.py  
..F.............
======================================================================
FAIL: test_no_duplicates (__main__.TestAllURLsMatching)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_all_urls.py", line 93, in test_no_duplicates
    self.assertTrue(ie.suitable(url), '%s should match URL %r' % (type(ie).__name__, url))
AssertionError: False is not true : UnicodeBOMIE should match URL '\ufeffhttp://www.youtube.com/watch?v=BaW_jenozKc'

----------------------------------------------------------------------
Ran 16 tests in 1.708s

FAILED (failures=1)

$ python3.2
Python 3.2.6 (default, May 23 2016, 01:08:02) 
[GCC 6.1.1 20160501] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> re.match(r'\ufeff', '\ufeff')
>>> 

UPDATE 2018/01/25: Blackberry 10 ships Python 3.2 and no 2.x, so 3.2 support should be kept until Blackberry 10 is dropped. Ref: https://appworld.blackberry.com/webstore/content/32880889

yan12125 commented 8 years ago

dstufft's statistics for pypi.org: https://caremad.io/2015/04/a-year-of-pypi-downloads/

And discussions on python-dev: https://groups.google.com/forum/#!topic/pypa-dev/Ef0PF2ZGAv0

hugovk commented 7 years ago

+1

More reasons for dropping 3.2:


(Related issue: Drop Python 2.6 support https://github.com/rg3/youtube-dl/issues/5697)

yan12125 commented 7 years ago

@hugovk Thanks for those info. I've opened #14515.