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

Drop Python 2.6/3.2 #152

Closed
prologic opened this issue Jan 18, 2016 · 19 comments
Closed

Drop Python 2.6/3.2 #152

prologic opened this issue Jan 18, 2016 · 19 comments

Comments

@prologic
Copy link
Member

Should we drop Python 3.2?

AFAIK this was a broken version of Python where they removed Unicode literals u"foo" then added them back in again in 3.3? This obviously breaks a lot of things and CI tests for this version currently blow up before they even start because 3rd-party libraries can't cope:

https://travis-ci.org/circuits/circuits/jobs/103183932

@prologic
Copy link
Member Author

@spaceone Thoughts?

@prologic
Copy link
Member Author

For that matter should we also drop 2.6 while we're at it? AFAIK every major platform has upgraded to a 2.6 minimum and 2.6 AFAIK is also EOL (End Of Life).

@spaceone
Copy link
Contributor

I don't think 3.2 is still used, while I think that 2.6 is still in use (at least 2 years ago I had some systems with it). How much workarounds do we have due to 2.6? How much projects did drop 2.6 support?

@prologic
Copy link
Member Author

Two very good questions. In terms of work-arounds for continuing to support Python 2.6 i can think of:

  • Non support for dict comprehensions
  • Non support for unnumbered format specifiers. e.g: "{}{}".format91, 2)
  • Broken ssl support?

@prologic prologic modified the milestones: 3.2, 3.3 Jun 2, 2016
@eriol
Copy link
Member

eriol commented Jul 4, 2016

First many thanks @prologic to bring me to this team! 😄
I will check on distribution side to have an overview on the situation. We can already exclude Debian for Python 2.6: it was supported by Squeeze (oldoldstable) for whitch LTS support ended at 2016-02-29.

@spaceone
Copy link
Contributor

spaceone commented Jul 4, 2016

Nowerdays I think dropping python 2.6 is fine! I saw some projects doing this as well. e.g. pyca/tls.

@spaceone
Copy link
Contributor

spaceone commented Jul 4, 2016

@prologic
Copy link
Member Author

prologic commented Jul 4, 2016

Shall we rename this issue to "Drop Python 2.6/3.2" to reflect the conversation :)

I think if we do we should also remove any work-around code for these versions of CPython?

@prologic
Copy link
Member Author

prologic commented Jul 4, 2016

@eriol You're most welcome :) We appreciate your continued efforts!

@spaceone spaceone changed the title Drop Python 3.2 Drop Python 2.6/3.2 Jul 4, 2016
@eriol
Copy link
Member

eriol commented Jul 6, 2016

I did a bit of investigation: RHEL 6 has py2.6 and is supported till 2020[¹], but it has Python 3.4 available using Software Collections[²]. Gentoo supports only 2.7 and >=3.3[³]. Ubuntu has py3.2 in precise (the 12.04 LTS) but not support anymore py2.6. Arch switched to python3 years ago, I don't remember when, but it's a rolling release so I'm sure it will using py3.5 now.

So, also considering downstream support, I think it's safe to drop 2.6 and 3.2 in circuits 3.3.

I'm also +1 for removing work-around code for versions we not support.

[¹] https://access.redhat.com/support/policy/updates/errata#Life_Cycle_Dates
[²] https://www.softwarecollections.org/en/scls/rhscl/rh-python34/
[³] https://wiki.gentoo.org/wiki/Project:Python/Implementations

@prologic
Copy link
Member Author

prologic commented Jul 6, 2016

Nice work! I think it's settled then.

This Issue/Task should then be able dropping said CPython ersions
and removing any such work-around code.

cheers
James

James Mills / prologic

E: prologic@shortcircuit.net.au
W: prologic.shortcircuit.net.au

On Wed, Jul 6, 2016 at 10:22 AM, Daniele Tricoli notifications@github.com
wrote:

I did a bit of investigation: RHEL 6 has py2.6 and is supported till
2020[¹], but it has Python 3.4 available using Software Collections[²].
Gentoo supports only 2.7 and >=3.3[³]. Ubuntu has py3.2 in precise (the
12.04 LTS) but not support anymore py2.6. Arch switched to python3 years
ago, I don't remember when, but it's a rolling release so I'm sure it will
using py3.5 now.

So, also considering downstream support, I think it's safe to drop 2.6 and
3.2 in circuits 3.3.

I'm also +1 for removing work-around code for versions we not support.

[¹]
https://access.redhat.com/support/policy/updates/errata#Life_Cycle_Dates
[²] https://www.softwarecollections.org/en/scls/rhscl/rh-python34/
[³] https://wiki.gentoo.org/wiki/Project:Python/Implementations


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#152 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABOv-nR58T1fvdk0M-JpySM9iWq0B_Xrks5qS-Q5gaJpZM4HHMEU
.

spaceone added a commit to spaceone/circuits that referenced this issue Jul 6, 2016
@spaceone
Copy link
Contributor

spaceone commented Jul 6, 2016

I added a new branch https://github.com/circuits/circuits/tree/drop_python_support.
I commited the meta things accidently also to master (didn't see the milestone is 3.3). I could not force-push to the master branch - was prvevented by a hook. @prologic Can you remove the commit?

@hpyle
Copy link

hpyle commented Jul 6, 2016

Sorry I'm late to this issue - I just saw the commit. We have customers using Python 2.6 in some RHEL and CentOS environments, so would like to keep active support for that in the main branch if possible.

@spaceone
Copy link
Contributor

spaceone commented Jul 6, 2016

@hpyle Yes, sorry this was only an accident.

@hpyle
Copy link

hpyle commented Jul 6, 2016

Thanks @spaceone. Ping me by email if you want to discuss in more detail.

spaceone added a commit that referenced this issue Jul 10, 2016
@eriol
Copy link
Member

eriol commented Jul 10, 2016

@hpyle thanks for sharing your concerns.
Do you think you will be able to switch to Python 2.7 using Software Collections[¹], for circuits 3.3, or you would like to have more time? Consider that AFAIK there is no ETA yet for circuits 3.3.

[¹] https://www.softwarecollections.org/en/scls/rhscl/python27/

@hpyle
Copy link

hpyle commented Jul 11, 2016

The main use cases are stuck in Docker containers that will be hard to upgrade beyond python 2.6, at least in the short term. But as long as this change goes into a numbered release of Circuits, we will be able to fix dependencies at the earlier version.

@apollo13
Copy link
Contributor

I'll happily prepare a PR to drop 2.6/3.2 after #188 and #189 are merged.

Things (from a first glance) to do:

  • Update version specifiers in setup.py
  • Update tox.ini
  • Update .travis.yml
  • remove any 2.6 specific code (version checks mostly probably)

@apollo13
Copy link
Contributor

Master is now py2.7 only in preparation for 3.3, please use circuits 3.2 for 2.6 support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants