Skip to content
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

Add information for lib3to6 to practicalities #287

Open
wants to merge 2 commits into
base: master
from

Conversation

@mscuthbert
Copy link
Collaborator

@mscuthbert mscuthbert commented Aug 26, 2020

Also update some prose for 2020; and for people like me who only skim headings, re-wrote the not-recommended mitigations in negative voice.

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

This comment has been minimized.

@Carreau

Carreau Aug 26, 2020
Member

I think this one is

Suggested change
## Don't depend on setuptools
## Don't depend on setuptools unless version >=24.3

Maybe ?

This comment has been minimized.

@mscuthbert

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?

This comment has been minimized.

@Carreau

Carreau Aug 27, 2020
Member

sounds good updated suggestion.

## 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

This comment has been minimized.

@hugovk

hugovk Aug 26, 2020
Contributor

Suggested change
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/)

This comment has been minimized.

@hugovk

hugovk Aug 26, 2020
Contributor

Suggested change
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)

This comment has been minimized.

@hugovk

hugovk Aug 26, 2020
Contributor

Looks like it's named simply Babel: https://babeljs.io/

Suggested change
(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.

This comment has been minimized.

@hugovk

hugovk Aug 26, 2020
Contributor

Suggested change
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

This comment has been minimized.

@hugovk

hugovk Aug 26, 2020
Contributor

Suggested change
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
@mbarkhau mbarkhau mentioned this pull request Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.