-
Notifications
You must be signed in to change notification settings - Fork 121
Add information for lib3to6 to practicalities #287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
_practicalities/intro.md
Outdated
|
||
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this one is
## Don't depend on setuptools | |
## Don't depend on setuptools unless version >=24.3 |
Maybe ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about Don't depend on setuptools unless version >=24.3
So that it's all a list of not to dos?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good updated suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
buildscript {
repositories {
// Gradle 4.1 and higher include support for Google's Maven repo using
// the google() method. And you need to include this repo to download
//
_practicalities/intro.md
Outdated
## 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
_practicalities/intro.md
Outdated
|
||
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/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hrough automatic conversion using [lib3to6](https://pypi.org/project/lib3to6/) | |
Through automatic conversion using [lib3to6](https://pypi.org/project/lib3to6/) |
_practicalities/intro.md
Outdated
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it's named simply Babel: https://babeljs.io/
(similar to BabelJS for JavaScript) | |
(similar to Babel for JavaScript) |
_practicalities/intro.md
Outdated
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
_practicalities/intro.md
Outdated
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -11,7 +11,6 @@ is mostly written with the assumption that software are going to stop Python 2 | |||
support, it does perfectly apply to a package that wishes to not support Python 3, | |||
or is stopping support for any minor version. | |||
|
|||
|
|||
This page gathers information and links to resources allowing a library | |||
to stop supporting an older version of Python without causing too | |||
much disruption for users who haven't upgraded to this new version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
~~~~
(I've reported @myself001695 to GitHub for disruptive behaviour.) |
Also update some prose for 2020; and for people like me who only skim headings, re-wrote the not-recommended mitigations in negative voice.