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
Choose a base branch
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
Copy link
Member

@Carreau Carreau Aug 26, 2020

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

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

Maybe ?

Copy link
Collaborator Author

@mscuthbert mscuthbert Aug 27, 2020

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?

Copy link
Member

@Carreau Carreau Aug 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good updated suggestion.

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

## 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
Copy link
Contributor

@hugovk hugovk Aug 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/)
Copy link
Contributor

@hugovk hugovk Aug 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)
Copy link
Contributor

@hugovk hugovk Aug 26, 2020

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/

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.
Copy link
Contributor

@hugovk hugovk Aug 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Contributor

@hugovk hugovk Aug 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants