flask-sslify icon indicating copy to clipboard operation
flask-sslify copied to clipboard

Python 3 support

Open sandlerben opened this issue 8 years ago • 8 comments

Are there any plans to migrate to/support python 3?

sandlerben avatar Aug 26 '16 03:08 sandlerben

Out of curiousity, what are you seeing that doesn't support Python 3?

Cabalist avatar Aug 30 '16 20:08 Cabalist

$ pip install caniusepython3
$ caniusepython3 -r requirements.txt

You need 2 projects to transition to Python 3.
Of those 2 projects, 2 have no direct dependencies blocking their transition:

  flask-rq
  flask-sslify

sandlerben avatar Aug 30 '16 21:08 sandlerben

I believe that is just an issue with the values in setup.py and has nothing to do with the functionality of the package.

It is working fine for me in a python 3.5 environment.

Cabalist avatar Aug 30 '16 22:08 Cabalist

Which values?

sandlerben avatar Aug 31 '16 05:08 sandlerben

From caniusepython3's documentation:


How do you tell if a project has been ported to Python 3?

On PyPI each project can specify various trove classifiers (typically in a project's setup.py through a classifier argument to setup()). There are various classifiers related to what version of Python a project can run on. E.g.:

Programming Language :: Python :: 3
Programming Language :: Python :: 3.0
Programming Language :: Python :: 3.1
Programming Language :: Python :: 3.2
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4

As long as a trove classifier for some version of Python 3 is specified then the project is considered to support Python 3 (project owners: it is preferred you at least specify Programming Language :: Python :: 3 as that is how you end up listed on the Python 3 Packages list on PyPI; you can represent Python 2 support with Programming Language :: Python).


@kennethreitz just hasn't put those into the setup.py at all.

Cabalist avatar Aug 31 '16 13:08 Cabalist

Pull request! :)

kennethreitz avatar Aug 31 '16 14:08 kennethreitz

Derp. Of course. #48

Cabalist avatar Aug 31 '16 15:08 Cabalist

Ok great!

sandlerben avatar Sep 03 '16 22:09 sandlerben