PythonCharmers/python-future

use pasteurize in setuptools, similarly to use_2to3

Open

#266 geöffnet am 24. Jan. 2017

Auf GitHub ansehen
 (1 Kommentar) (1 Reaktion) (0 zugewiesene Personen)Python (327 Forks)batch import
0.22enhancementhelp wanted

Repository-Metriken

Stars
 (1.172 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Would there be a way to use pasteurize in setuptools similarly to use_2to3? i.e., only commit Py3 code, but have a setup.py that contains something like

setup(..., use_pasteurize=True)

and have the code be pasteurized when installing (and testing) on Py2.

The idea is that pasteurized code can look quite "ugly" (e.g. keyword only arguments), so I'd rather not keep it committed, but with a good test suite, I can still make sure that the pasteurized version always works on Py2.

Contributor Guide