-
Notifications
You must be signed in to change notification settings - Fork 241
[WIP/untested] Add py2-compatibility guard #528
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
base: master
Are you sure you want to change the base?
Conversation
|
Please rebase |
|
Python 2 died 2,043 days ago on 1/1/2020. It is beyond time to support Python 2. Instead of doing this, we should tell users to install an older release. |
we cann add just |
|
@cclauss wrote:
I agree, which is why I've created this PR to implement the py2 deprecation path outlined in this comment a couple of years ago.
This is effectively what this PR does, just with the added benefit of preventing users from shooting themselves in the foot by accidentally updating to an incompatible version. At the mere cost of maintaining py2 compatibility in
This may sound like a good idea at a first glance, but is unfortunately a horrible idea due to some details of the update system. Basically, Another possible way would be to make |
|
Note: Moving from |
As I know we will support >=3.10 starting from the #524 PR, and also if package have wheel - the wheel in general not contain |
I don't think so. Please keep in mind that we have two install methods: via setup (now We could, of course, simply raise a simple Exception when installing/updating under py2, but that's just a tiny bit less effort than simply forcing the target branch on py2, which has the adadded benefits outlined before. |
about uv sync
.venv/bin/activate
uv buildIt should work, It can be used instead of installing from zip. It have to be possible if I adjust the installation process by using |
I haven't yet had the chance to test this out (need to get a working pythonista app again first), but these changes should add a guard to prevent py2 users from updating to an incompatible branch.
I've created the
py2branch as a legacy branch that will hold the last/latest py2 compatible version. This PR ensures that bothselfupdate.pyandgetstash.pywill only update to this branch when running StaSh via py2.TODO:
masterbranch.py2branch.