brettcannon / caniusepython3

Can I Use Python 3?
Apache License 2.0
412 stars 64 forks source link

Dependency reported as not compatible with Python 3 is reported compatible when checked directly #126

Closed lddubeau closed 8 years ago

lddubeau commented 8 years ago

Versions

caniusepython3: 3.3.0 Python: 2.7.11

Actual Output

$ caniusepython3 -p cmsplugin-filer
Finding and checking dependencies ...
[WARNING] Stale overrides: set([u'reportlab', u'extras', u'pyvirtualdisplay'])

You need 2 projects to transition to Python 3.
Of those 2 projects, 1 has no direct dependencies blocking its transition:

  easy_thumbnails (which is blocking cmsplugin-filer)

Ok, so there's one dependency that blocks cmsplugin-filer. When I saw that, I went to pypi page for easy-thumbnails and saw there that it supports Python 3. Let's see what happens if I run a check directly on it:

$ caniusepython3 -p easy-thumbnails
Finding and checking dependencies ...
[WARNING] Stale overrides: set([u'reportlab', u'extras', u'pyvirtualdisplay'])

🎉  You have 0 projects blocking you from using Python 3!

Using an underscore for the dash makes no difference:

$ caniusepython3 -p easy_thumbnails
Finding and checking dependencies ...
[WARNING] Stale overrides: set([u'reportlab', u'extras', u'pyvirtualdisplay'])

🎉  You have 0 projects blocking you from using Python 3!

Expected Output

I would expect that easy-thumbnails would not block cmsplugin-filer since it supports Python 3.

brettcannon commented 8 years ago

It's probably stale metadata. Can you try running the check against cmsplugin-filer again?

lddubeau commented 8 years ago

I'm getting the same results as originally. Are you not reproducing the problem at your end?

chhantyal commented 8 years ago

FYI: it's same issue it seems here https://caniusepython3.com/project/cmsplugin-filer

vsajip commented 8 years ago

Apparently not stale metadata, see https://www.red-dove.com/pypi/projects/E/easy-thumbnails/package-2.3.json which looks up-to-date.

brettcannon commented 8 years ago

Hrm. OK, I'll dig deeper then to try and see what's going on. Thanks for the infro, @vsajip and sorry about the false alarm.

brettcannon commented 8 years ago

With the fix applied:

 (easy_thumbnails *) > ./venv-cpython35/bin/python -m caniusepython3 -v -p cmsplugin-filer
[INFO] 1 top-level projects to check
Finding and checking dependencies ...
[INFO] Fetching project list for 'Programming Language :: Python :: 3'
[INFO] Fetching project list for 'Programming Language :: Python :: 3.0'
[INFO] Fetching project list for 'Programming Language :: Python :: 3.1'
[INFO] Fetching project list for 'Programming Language :: Python :: 3.2'
[INFO] Fetching project list for 'Programming Language :: Python :: 3.3'
[INFO] Fetching project list for 'Programming Language :: Python :: 3.4'
[INFO] Fetching project list for 'Programming Language :: Python :: 3.5'
[INFO] Fetching project list for 'Programming Language :: Python :: 3.6'
[INFO] Fetching project list for 'Programming Language :: Python :: 3 :: Only'
[INFO] Adding 31 overrides:
[INFO]     beautifulsoup (https://pypi.python.org/pypi/beautifulsoup4)
[INFO]     collective.recipe.template (https://pypi.python.org/pypi/collective.recipe.template)
[INFO]     django-social-auth (https://pypi.python.org/pypi/python-social-auth)
[INFO]     dnspython (https://pypi.python.org/pypi/dnspython3)
[INFO]     fabric (https://pypi.python.org/pypi/Fabric3)
[INFO]     filechunkio (https://bitbucket.org/fabian/filechunkio/commits/5a1d0b614e506e5198090a5201770e2524fa8720)
[INFO]     flask-debugtoolbar (https://pypi.python.org/pypi/Flask-DebugToolbar)
[INFO]     flask-mail (http://pythonhosted.org/Flask-Mail/changelog.html#version-0-9-0)
[INFO]     flask-principal (http://pythonhosted.org/Flask-Principal/changelog.html)
[INFO]     flask-security (http://pythonhosted.org/Flask-Security/changelog.html#version-1-7-3)
[INFO]     functools32 (https://pypi.python.org/pypi/functools32)
[INFO]     hashids (https://pypi.python.org/pypi/hashids)
[INFO]     jinja (http://jinja.pocoo.org/docs/switching/#jinja1)
[INFO]     mox (https://pypi.python.org/pypi/mox3)
[INFO]     multiprocessing (http://docs.python.org/3/library/multiprocessing.html)
[INFO]     mysql-python (https://pypi.python.org/pypi/mysqlclient)
[INFO]     ordereddict (http://docs.python.org/3/library/collections.html#collections.OrderedDict)
[INFO]     pil (https://pypi.python.org/pypi/Pillow)
[INFO]     py-bcrypt (https://code.google.com/p/py-bcrypt/)
[INFO]     pycountry (https://pypi.python.org/pypi/pycountry)
[INFO]     pypdf (https://pypi.python.org/pypi/PyPDF2)
[INFO]     pyrss2gen (https://pypi.python.org/pypi/PyRSS2Gen)
[INFO]     pysqlite (http://docs.python.org/3/library/sqlite3.html)
[INFO]     ssh (https://github.com/bitprophet/ssh/)
[INFO]     ssl (http://docs.python.org/3/library/ssl.html)
[INFO]     suds (https://pypi.python.org/pypi/suds-jurko)
[INFO]     trisdb-py (https://github.com/tiepologian/trisdb-py/blob/master/setup.cfg)
[INFO]     unittest2 (http://docs.python.org/3/library/unittest.html)
[INFO]     uuid (http://docs.python.org/3/library/uuid.html)
[INFO]     warlock (https://github.com/bcwaldon/warlock/blob/master/tox.ini)
[INFO]     wsgiref (http://docs.python.org/3/library/wsgiref.html)
[INFO] Checking top-level project: cmsplugin-filer ...
[INFO] Locating cmsplugin-filer
[INFO] Dependencies of cmsplugin-filer: ['django', 'django-sekizai', 'django-filer', 'django-appconf', 'easy-thumbnails', 'django-cms']
[INFO] Checking dependency: django ...
[INFO] Checking dependency: django-sekizai ...
[INFO] Checking dependency: django-filer ...
[INFO] Checking dependency: django-appconf ...
[INFO] Checking dependency: easy-thumbnails ...
[INFO] Checking dependency: django-cms ...

You need 1 project to transition to Python 3.
Of that 1 project, 1 has no direct dependencies blocking its transition:

  cmsplugin-filer