-
Notifications
You must be signed in to change notification settings - Fork 19
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
Please switch to Python3 #15
Comments
Any news about this? It becomes even more urgent after the release of Debian 10. Now Python2 code is actively removed from Debian. |
I am working on this now along with an overhaul of parts of the program. I realize that you would probably prefer a smaller update that just adds Python 3 support, but that would not be efficient use of my time, as I would need to spend a lot of time testing and validating code that would then immediately be removed or rewritten following that release. |
That's fine. BTW, I realised an old code copy of pyyaml. Do you think you could simply use official pyyaml (which is at version 5.1 now)? This would be really helpful as well. |
I've already replaced that copy with a dependency on ruamel.yaml in the development branch, based on your previous suggestions (see 433a33d). Is there a specific reason why you recommend PyYAML now? |
On Wed, Sep 11, 2019 at 03:18:48AM -0700, Mikkel Schubert wrote:
I've already replaced that copy with a dependency on ruamel.yaml in the development branch, based on your previous suggestions (see 433a33d). Is there a specific reason why you recommend PyYAML now?
No, definitely not. I've just seen the existing PyYAML copy in the latest release. Sorry for the confusion. Andreas.
|
I wonder whether the just released version 1.2.14 should be that Python3 version you was talking about. At least 2to3 is marking quite some diff so probably not. Kind regards, Andreas. |
Python 3 development takes place in the py3x branch, but I've been too busy to work much on it recently. The releases I've made over the last few months have just been minor bug-fixes and such for the Python 2 branch. Best, |
Any news for the py3x branch. Is it somehow usable? We really want to get rid of all python2 pysam dependencies and Paleomix is one of the two remaining ones. |
looks like the |
Unfortunately there is no newer release than 1.2.14 (which is Python2). |
@tillea you can just generate a tarball for the current master HEAD and use it for updating the Debian package, it's common practice to do so. |
I would advice against generating a tarball from the current master HEAD.
The fact that the branch was merged into master does not mean that master
is in a release-worthy state; it is not. It simply reflects the fact that I
no longer intend to work on the py2x version and and that I needed to merge
a number of changes from master back into the py3x version anyway. But I
have not been able to put much time into it lately.
…On Mon, 6 Apr 2020 at 15:34, Sandro Tosi ***@***.***> wrote:
@tillea <https://github.com/tillea> you can just generate a tarball for
the current master HEAD and use it for updating the Debian package, it's
common practice to do so.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASMY24BN2UMCGR422JSPCDRLHK6VANCNFSM4E6DUC5A>
.
|
Please consider patching It would be also great to have a new paleomix release dedicated to Python3 migration as soon as possible. Best regards |
Hi Mikkel, |
Sorry for the lack of updates. My current goal is to have a python3 version of PALEOMIX ready before next month. Best regards, |
On Sun, Aug 16, 2020 at 12:49:31PM -0700, Mikkel Schubert wrote:
My current goal is to have a python3 version of PALEOMIX ready before next month.
The other, larger changes I had planned will have to wait until after that is done.
Thanks a lot for the helpful update, Andreas.
|
I've released the first Python 3 version of PALEOMIX, v1.3.0. Sorry for the many delays. Please let me know if there are any issues on your end. |
Thanks a lot. That's really great news. I nearly finished the Debian package. When doing so I changed shebang lines in all scripts. Feel free to download and apply the patch in our packaging code. |
there's absolutely no need to write a patch to change shebang, dh_pyhton3 does that already:
|
Hi Sandro
On Tue, Sep 01, 2020 at 07:07:22AM -0700, Sandro Tosi wrote:
there's absolutely no need to write a patch to change shebang, dh_pyhton3 does that already:
```
override_dh_python3:
dh_python3 --shebang /usr/bin/python3
```
I wrote the patch since the latter did not worked.
Kind regards
Andreas.
…
|
Thanks, Andreas. Best, |
On Tue, Sep 01, 2020 at 12:12:30PM -0700, Mikkel Schubert wrote:
I've applied the patch and will include it in the next release.
Great. Than I will be able to drop this in the packaging in the next
version. Its always nicer to have as less as possible patches in the
packaging.
Kind regards, Andreas.
|
Hi,
Debian is currently debating the support of Python2 which is marked end of life in 2020 (which is only one release cycle away. I'd recommend to switch to Python3 in the near future. I made some good experiences using 2to3 to port code from Python2 to Python3.
Kind regards, Andreas.
The text was updated successfully, but these errors were encountered: