Sign inSign up

yyolk/caniusepython3

By yyolk

•Updated about 8 years ago

caniusepython3 in a python:3-slim

Image
0

10K+

yyolk/caniusepython3 repository overview

⁠docker-caniusepython3

Utilizes brettcannon's caniusepython3⁠ ( pypi page⁠ )

When you want to know before py3readiness⁠ is updated.

⁠DockerHub yyolk/caniusepython3

Available on docker hub:

docker pull yyolk/caniusepython3

⁠Can I Use Python 3?

This script takes in a set of dependencies and then figures out which of them are holding you up from porting to Python 3.

⁠Command-line/Web Usage

Add this to your ~/.aliases:

alias dcaniusepython3='docker run --rm -v $(pwd):/ws:ro  -t yyolk/caniusepython3'

Then you can use dcaniusepython3 as normal:

You can specify your dependencies in multiple ways:

#a novel alias
alias dcaniusepython3='docker run --rm -v $(pwd):/ws:ro  -t yyolk/caniusepython3'
dcaniusepython3 -r requirements.txt test-requirement.txt
dcaniusepython3 -m PKG-INFO
dcaniusepython3 -p numpy scipy ipython
# If your project's setup.py uses setuptools
# (note that setup_requires can't be checked) ...
# not applicable
#python setup.py caniusepython3

The output of the script will tell you how many (implicit) dependencies you need to transition to Python 3 in order to allow you to make the same transition. It will also list what projects have no dependencies blocking their transition so you can ask them to start a port to Python 3.

If you prefer a web interface you can use https://caniusepython3.com⁠ by Jannis Leidel.

Tag summary

Content type

Image

Digest

Size

52.2 MB

Last updated

about 8 years ago

docker pull yyolk/caniusepython3