Is Python >=3.5 okay?

109 views
Skip to first unread message

Martin Blais

unread,
Oct 24, 2016, 11:26:20 PM10/24/16
to Beancount
Hi,

Yuchen Ying has started prototyping type annotations for Beancount:

I'm really excited with seeing types in Python and applied to Beancount.
I'm considering making changes to beancount.core that would make this work easier.
These changes would not have any user-visible impact, only internal changes.

However, this would coerce everyone up to Python 3.5.
I'm just curious to get the pulse of the group, is anyone still running Python < 3.5?
If so, is this a distribution issue?

Thanks,

yegle

unread,
Oct 24, 2016, 11:42:19 PM10/24/16
to Beancount
(copied from bitbucket issue tracker)

If you are fine with adding https://pypi.python.org/pypi/typing/3.5.2 as a dependency that should be okay to support all python3 versions.

--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhOpitj_A1sToXHTj5SJRo%2B3JRuGnmPuXgjrCGDRMjxJOw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--

Daniel Clemente

unread,
Oct 25, 2016, 8:15:49 AM10/25/16
to bean...@googlegroups.com

Devuan (and Debian) stable includes Python3.4, and that's what I'm using, but I enabled the „testing“ repository and could install python3.5 easily without dependency hell. Building the parser requires more libraries but they seem to be easy to install too.

I'm ok with keeping beancount on the latest exciting technologies. If problems arise I could keep today's version, which seems stable enough.


El Mon, 24 Oct 2016 23:25:56 -0400 Martin Blais va escriure:
>
> [1 <text/plain; UTF-8 (7bit)>]
> [2 <text/html; UTF-8 (quoted-printable)>]
> --
> You received this message because you are subscribed to the Google Groups "Beancount" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.

Jason Chu

unread,
Oct 25, 2016, 9:10:30 AM10/25/16
to bean...@googlegroups.com

The Ubuntu docker image that I use is Python 3.5, so I don't mind.


MaDhAt2r

unread,
Oct 25, 2016, 10:09:43 AM10/25/16
to Martin Blais, Beancount

I run bleeding edge Arch, so 3.5 is what I use now.

On Oct 24 at 10:25 PM, Martin Blais <bl...@furius.ca> said thus:

Alan Post

unread,
Oct 26, 2016, 12:10:58 AM10/26/16
to bean...@googlegroups.com
On Mon, Oct 24, 2016 at 11:25:56PM -0400, Martin Blais wrote:
> Hi,
>
> Yuchen Ying has started prototyping type annotations for Beancount:
> [1]https://github.com/yegle/beancount-type-stubs
>
> I'm really excited with seeing types in Python and applied to Beancount.
> I'm considering making changes to beancount.core that would make this work
> easier.
> These changes would not have any user-visible impact, only internal changes.
>
> However, this would coerce everyone up to Python 3.5.
> I'm just curious to get the pulse of the group, is anyone still running Python
> < 3.5?
> If so, is this a distribution issue?
>

I'm running Python 3.5.

-A

Stefan Monnier

unread,
Oct 26, 2016, 9:42:47 AM10/26/16
to bean...@googlegroups.com
> However, this would coerce everyone up to Python 3.5.

That's annoying on Debian stable (about half my machines, including the
one which I use most often with Beancount) which is still at 3.4.


Stefan

Martin Blais

unread,
Oct 27, 2016, 10:53:51 PM10/27/16
to Beancount
That's a huge lag.
I just realized Python 3.5.1 was released almost a year ago (12/7/2015).


--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.

To post to this group, send email to bean...@googlegroups.com.

Cheng Zhen

unread,
Oct 27, 2016, 11:26:52 PM10/27/16
to bean...@googlegroups.com
​Same here, but 3.5 is acceptable for me. I would add "test" repo for the newest Beancount.

Stefan Monnier

unread,
Oct 28, 2016, 10:13:45 AM10/28/16
to bean...@googlegroups.com
> I just realized Python 3.5.1 was released almost a year ago (12/7/2015).

According to https://www.debian.org/releases/

The current "stable" distribution of Debian is version 8, codenamed
jessie. It was initially released as version 8 on April 25th, 2015
and its latest update, version 8.6, was released on September
17th, 2016.

so it seems 3.5 didn't even exist when the last `stable` was released
(updates to a release focus mainly on security bugs). So "huge lag"
sounds a bit harsh.


Stefan


> On Wed, Oct 26, 2016 at 9:42 AM, Stefan Monnier <mon...@iro.umontreal.ca>
> wrote:

>> > However, this would coerce everyone up to Python 3.5.
>>
>> That's annoying on Debian stable (about half my machines, including the
>> one which I use most often with Beancount) which is still at 3.4.
>>
>>
>> Stefan
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Beancount" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to beancount+...@googlegroups.com.
>> To post to this group, send email to bean...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/beancount/jwveg33tehl.fsf-monnier%2Bgmane.comp.
>> finance.beancount%40gnu.org.
>> For more options, visit https://groups.google.com/d/optout.
>>

> --
> You received this message because you are subscribed to the Google Groups "Beancount" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
> To post to this group, send email to bean...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhOTLUJ9cgi5gxDbJvRBy6%2BXn_s-EMfhJUCRV_qajp4Akw%40mail.gmail.com.

Martin Blais

unread,
Oct 30, 2016, 1:33:33 PM10/30/16
to Beancount
Stefan,
Can you quickly test out if your 3.4 installation allows a pip install of "typing"?
Thanks,


On Fri, Oct 28, 2016 at 10:13 AM, Stefan Monnier <mon...@iro.umontreal.ca> wrote:
> I just realized Python 3.5.1 was released almost a year ago (12/7/2015).

According to https://www.debian.org/releases/

    The current "stable" distribution of Debian is version 8, codenamed
    jessie.  It was initially released as version 8 on April 25th, 2015
    and its latest update, version 8.6, was released on September
    17th, 2016.

so it seems 3.5 didn't even exist when the last `stable` was released
(updates to a release focus mainly on security bugs).  So "huge lag"
sounds a bit harsh.


        Stefan


> On Wed, Oct 26, 2016 at 9:42 AM, Stefan Monnier <mon...@iro.umontreal.ca>
> wrote:

>> > However, this would coerce everyone up to Python 3.5.
>>
>> That's annoying on Debian stable (about half my machines, including the
>> one which I use most often with Beancount) which is still at 3.4.
>>
>>
>> Stefan
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Beancount" group.
>> To unsubscribe from this group and stop receiving emails from it, send an

>> To post to this group, send email to bean...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/beancount/jwveg33tehl.fsf-monnier%2Bgmane.comp.
>> finance.beancount%40gnu.org.
>> For more options, visit https://groups.google.com/d/optout.
>>

> --
> You received this message because you are subscribed to the Google Groups "Beancount" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.

> To post to this group, send email to bean...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.

To post to this group, send email to bean...@googlegroups.com.

Martin Blais

unread,
Oct 30, 2016, 5:10:52 PM10/30/16
to Beancount
I just made a fresh install of Python 3.4, installed pip, and tested that a simple "pip3 install typing" works, and the symbols I'm going to introduce are present in it and import without error.



Martin Blais

unread,
Oct 30, 2016, 9:25:45 PM10/30/16
to Beancount
Alright, I've been staring at this too long.

I understand Debian is lagging behind a lot, but the source release is really old, and Ubuntu stable (16.04) is on 3.5.1. I really want the work with datatypes to kick off sooner than later, and I'm doing a big cleanup branch, along with some other cleanup changes that require 3.5.  And 3.6 is almost out.

I'm moving requirement to >=3.5. Installing Python from source is normally a trivial effort, you should have no problem. I also baked 2.0b13 in case you prefer to wait for a while -- you can stick with the latest release in the meantime.

Will send an update shortly.

Matthias Beyer

unread,
Nov 9, 2016, 9:31:52 AM11/9/16
to bean...@googlegroups.com
Late to the party, sorry.

I packaged beancount for NixOS, I have no issues with bumping the
python for it to 3.5!
> --
> You received this message because you are subscribed to the Google Groups "Beancount" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
> To post to this group, send email to bean...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhOpitj_A1sToXHTj5SJRo%2B3JRuGnmPuXgjrCGDRMjxJOw%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

--
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.
signature.asc
Reply all
Reply to author
Forward
0 new messages