Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Add information for lib3to6 to practicalities #287
Conversation
Also update some prose for 2020; and for people like me who only skim headings, re-wrote the not-recommended mitigations in negative voice.
|
|
||
| It is possible to release a meta-package that has _virtually_ no code and relies | ||
| on a conditional dependency to install its actual core code on the user system. | ||
| For example, Frob-6.0 could be a meta-package which depends on | ||
| Frob-real-py2 on Python < 3.0, and Frob-real-py3 on Python ≥ 3.4. While | ||
| this approach is _doable_ this can make imports confusing. | ||
|
|
||
| ## Depend on setuptools | ||
| ## Don't depend on setuptools |
Carreau
Aug 26, 2020
•
Member
I think this one is
| ## Don't depend on setuptools | |
| ## Don't depend on setuptools unless version >=24.3 |
Maybe ?
mscuthbert
Aug 27, 2020
Author
Collaborator
How about Don't depend on setuptools unless version >=24.3
So that it's all a list of not to dos?
| ## If your users absolutely need Py2.7 but you want to move on | ||
|
|
||
| If you have users that still depend on Python 2.7 and you cannot drop support yet, | ||
| it may nonetheless be possible to start using Python 3 in your codebase. T |
hugovk
Aug 26, 2020
Contributor
| it may nonetheless be possible to start using Python 3 in your codebase. T | |
| it may nonetheless be possible to start using Python 3 in your codebase. |
|
|
||
| If you have users that still depend on Python 2.7 and you cannot drop support yet, | ||
| it may nonetheless be possible to start using Python 3 in your codebase. T | ||
| hrough automatic conversion using [lib3to6](https://pypi.org/project/lib3to6/) |
hugovk
Aug 26, 2020
Contributor
| hrough automatic conversion using [lib3to6](https://pypi.org/project/lib3to6/) | |
| Through automatic conversion using [lib3to6](https://pypi.org/project/lib3to6/) |
| If you have users that still depend on Python 2.7 and you cannot drop support yet, | ||
| it may nonetheless be possible to start using Python 3 in your codebase. T | ||
| hrough automatic conversion using [lib3to6](https://pypi.org/project/lib3to6/) | ||
| (similar to BabelJS for JavaScript) |
hugovk
Aug 26, 2020
Contributor
Looks like it's named simply Babel: https://babeljs.io/
| (similar to BabelJS for JavaScript) | |
| (similar to Babel for JavaScript) |
| it may nonetheless be possible to start using Python 3 in your codebase. T | ||
| hrough automatic conversion using [lib3to6](https://pypi.org/project/lib3to6/) | ||
| (similar to BabelJS for JavaScript) | ||
| you can generate distribution files that will work on both Python2 and Python3. |
hugovk
Aug 26, 2020
Contributor
| you can generate distribution files that will work on both Python2 and Python3. | |
| you can generate distribution files that will work on both Python 2 and Python 3. |
| hrough automatic conversion using [lib3to6](https://pypi.org/project/lib3to6/) | ||
| (similar to BabelJS for JavaScript) | ||
| you can generate distribution files that will work on both Python2 and Python3. | ||
| Lib3to6 is also useful if your project needs to support older versions of Python3 |
hugovk
Aug 26, 2020
Contributor
| Lib3to6 is also useful if your project needs to support older versions of Python3 | |
| Lib3to6 is also useful if your project needs to support older versions of Python 3 |
Also update some prose for 2020; and for people like me who only skim headings, re-wrote the not-recommended mitigations in negative voice.