forked from dawneye/beancount
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHANGES
4060 lines (2655 loc) · 154 KB
/
CHANGES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
========================
beancount: CHANGES
========================
Note: This file contains a list changes in the 'default' branch.
2020-03-22
- Added docstrings on some import code (while installing a new importer; my
stuff is sometimes poorly documented I'm afraid).
2020-02-23
- Added new features to the CSV importer:
* A new 'invert_sign' option to invert the sign of the amount.
* A new field, 'CATEGORY', which goes unrendered.
* Replace newlines from all narrations by semi-colons.
These were driven by recent changes to the Amex CSV format.
2019-12-29
- Added a CSV field for a unique reference number. If present, this is set as a
link on the transaction.
2019-12-25
- Applied patch from Daniele Nicolodi
(https://bitbucket.org/blais/beancount/pull-requests/139/parser-work-around-python38-bug-causing-a)
to work around typing constraints around signed size types introduced in
Python 3.8. See also https://bugs.python.org/issue38913.
- Fixed bug with running python3 as a subprocess during testing. Fixes an error
that occurs with the tutorial file generation.
2019-11-29
- Added 'encoding' option to CSV importer. Amex encodes as 'latin1', not
'utf-8' and this turned out to be necessary.
2019-11-10
- Added an option to upload-to-sheets script to apply a minimum to the number
of rows resized to. The problem was I had another sheet longer than the
auto-updated data sheet, and when new rows were being inserted, rows in the
referencing sheet were being incremented automatically to refer to the now
displaced previous rows in the updated data sheet (even if they used to refer
to rows after the last row in the data sheet). Avoid resizing in the number
of rows up or down sheet should avoid most of these problems (except when at
the boundary, but then the minimum number of rows could just be increased).
This is quick fix that should work in the medium term.
2019-10-20
- More changes to unittest while porting to Bazel build (for C++ support).
2019-10-11
- Added __main__ block to all tests because ongoing port to Bazel build
requires it.
2019-10-10
- Moved test data for b.utils.file_type for Bazel support. It otherwise assumes
file_type.py is a package.
2019-08-21
- Fixed bug in split_expenses plugin.
2019-06-01
- Upgraded Bison to 3.4 (built from source). Silenced warnings.
2019-05-01
- Fixed #389: Patch for b.p.forecast improvements.
- Added rolled back change to default value of flag used when using the 'txn'
syntax. See issue #295 for a discussion.
2019-03-16
- Had a very quick shot at implementing trade tracking, added the list of
matches positions from the booking methods. This doesn't work yet, I need to
make changes to b.c.Inventory in order to make this work. Partial
changelist.
2019-03-03
- Fixed #378: Rendering metadata with null values wasn't properly implemented.
In the process, I explicit parsing of None values by allowing "NULL".
- Fixed #309: Catch PermissionError to work around
https://bugs.python.org/issue25481.
2019-02-27
- Implemented a quick prototype of the current trading accounts method of
Peter Selinger in 'beancount.plugins.currency_accounts'. A few warts remain:
* FIXME: We need to handle these important cases (they're not frivolous,
this is a prototype), probably by inserting some exceptions with
collaborating code in the booking (e.g. insert some metadata that
disables price conversions on those postings).
* FIXME(2): Ouch! Some of the residual seeps through here, where there
are more than a single currency block. This needs fixing too. You can
easily mitigate some of this to some extent, by excluding transactions
which don't have any price conversion in them.
2019-02-26
- Fixed #376: Coerce implicit boolean to true boolean.
2019-02-10
- Fixed #374: Option --all treatment was broken in #210. Also catch and print
errors.
- Fixed rare failure of shutil.rmtree() in encryption cleanup test.
2019-02-03
- Fixed #372: Removed formatted string literal to keep compat with Python 3.5.
2019-01-29
- Fixed #362: Predicate matching a parent account was matching accounts with
word breaks but not at the boundary of an account name. This was causing
a rare (but important) failure in how Pad balances were calculated.
2019-01-28
- Released 2.2.1 for bug fixes.
2019-01-25
- Improve output of tags and links for bean-report ledger and hledger.
2019-01-22
- Fixed problem with invalid format strings with 0-width field when rendering
MISSING.
2019-01-05
- Merged pull request #85
(https://bitbucket.org/blais/beancount/pull-requests/85) from hardikar,
adding function grepn() to the shell.
- Merged pull request #86
(https://bitbucket.org/blais/beancount/pull-requests/86) from hardikar,
adding function subst() to the shell.
- Merged pull request #89
(https://bitbucket.org/blais/beancount/pull-requests/89) from hardikar,
adding functions date_diff(), date_add() to the shell.
- Implemented best compression for zipfile in bean-bake as per Justus
Pendleton's suggestion. For context, see this:
https://groups.google.com/d/msgid/beancount/de75671d-532a-4deb-bd0f-fd9377e63753%40googlegroups.com?utm_medium=email&utm_source=footer
2018-12-18
- Fixed #214: Add directory of current filename to sys.path with new option
"insert_pythonpath". When this option is encountered in a file, we prepend
the path of the file in which it is encountered at the front of the
PYTHONPATH for the rest of the duration of the problem (we could consider
resetting this after parsing and processing the plugins; not doing it now).
- Added detection of hitting the root if the search for the repository root
failed.
- Fixed #341: find_repository_root() fails on source tarball. Renamed PKGINFO
to PKG-INFO to match what pip sdist produces.
- Change version number from 2.2.0-devel to 2.2.0-dev which apparently is
recognized by pip (thanks Jakob Schnitzer).
https://bitbucket.org/blais/beancount/pull-requests/91/default/diff#comment-85707662
2018-12-12
- Suppressed almost all the Python 3.8 warnings.
2018-11-16
- Added more logging in loader (done while debugging something else).
2018-10-26
- Fixed #302: Fixed second bug with font-locking for account names (starting
with digit).
- Fixed bug ingest that would cause relative filenames to fail.
See this thread for details:
https://groups.google.com/d/msgid/beancount/709141d5-88a4-444a-acef-94bf43a9b388%40googlegroups.com?utm_medium=email&utm_source=footer
- Fixed bug in ingest whereby the custom duplicates detection function wasn't
being called.
2018-10-25
- Fixed unit test failure on BitBucket pipelines using a temp directory
context manager.
- Applied PR by Richard W to install the mixins package (install was broken).
- Fixed #302: beancount.el does not fontify account names with single letter
components (based on bug report by arianaut@).
2018-10-13
- Fixed #158: Missing MIME type for QFX files.
2018-10-04
- Merged new_ingest_mixins: Added new implementations of mixins for ingestion:
* beancount.ingest.importers.mixins.identifier which implements identify().
* beancount.ingest.importers.mixins.filing which implements file_account()
and file_name().
* beancount.ingest.importers.mixins.config which implement a simple schema
with a configuration.
These new mixins are intended to be more independent and more easily
composable than the older ones. The beancount.ingest.importers.regexp has
been removed. If you need it in interim, I made a copy under
experiments/ingest/regexp.py.
* Version: 2.1.3
2018-10-04
- Fixed #323: Escape strings in printer.
- Minor bug fix for beancount.prices.price on null result.
2018-09-19
- Removed TRUNCATE(), after realizing ROOT() can already do the same thing.
2018-09-18
- Added TRUNCATE() function to SQL shell for Vikas Rawal.
2018-09-03
- Added a parameter to the cmptest assertions to disable real booking and
allow a weak local form of booking conversion that allows interpolation.
(I'm using this in another project to assert some incomplete transactions.)
2018-08-30
- Made assertions on entries off of the TestCase class, as free functions (so
that they can be used in another project).
2018-08-26
- Fixed tests for pipeline running pytest (somehow the curses functions fail,
probably due to better environment isolation from pytest).
- Implementation of beancount.ingest.regression_pytest, a pytest replacement
for beancount.ingest.regression, which was for nose. This is simpler and
better and more straightforward (no conditionals; all regression files must
have all accompanying expect files and all must pass). See the module
docstring for new instructions on how to use this.
This should not break the older tests, as I haven't changed the older
support. It (beancount.ingest.regression) will be removed eventually.
(This completes porting Beancount to use pytest instead of nosetests.)
2018-08-25
- Today we're switching to pytest as the official test runner. All the tests
pass, and it even runs faster. It's about time!
- Removed all references and workaround to nose.
2018-08-23
- Oops... removing forgotten trace in bean-web.
- Fixed #325: Implemented support for including encrypted files (for Milind Kamble
and using some of this changes).
2018-08-17
- Added 'issuer' column to the export script. I'm going to use this to produce
a deaggregated list of exposure to individual stocks from a list of ETFs.
2018-08-25
- Upgrade requirement to bison-3.0.5 for development.
2018-08-12
- After many years of using something like it to track my investment portfolio
using a Google Sheets doc, I cleaned up, rewrote and move the asset list
exporting script to beancount.projects.export and deleted the old version
under experiments/upload.
2018-08-05
- Fixed #322: Adjustments to StopIteration treatment from within generators
were breaking bean-example generation code.
- Implemented a new plugin which asserts that on accounts with 'NONE' booking
method reducing postings' cost basis is within the vicinity of the average
cost basis in the account. This allows you to approximate the 'AVERAGE'
booking method avoid too much cost basis leakage until it's implemented
properly.
2018-08-02
- Created a new 'commodity_attr' plugin to asset the presence and validity
(in a set, like an enum) of metadata attributes on Commodity directives.
I export my holdings joined to a table of per-Commodity attributes and I've
made a mistake this week that ended up showing up as an overestimated
portfolio value on my portfolio tracking Google Sheets doc.
2018-07-31
- Fixed bug in new ingest() function found as I refactored my importers.
- Fixed bug with the pipeline making sure to set the CWD of the subprocess
when we run an import test.
- Fixed bug with previous commit containing stray 'string' reference. (My
environment has autoimports by default.)
- Implemented a beancount.ingest.scripts_utils.ingest() function that will act
as a main program, so you can write your own importer scripts from top to
bottom without having to rely on bean-identiy, bean-extract or bean-file.
The purpose of this change was to allow the user to insert an optional
argument 'detect_duplicates_func' in order to implement their own duplicates
detection. See discussion under
https://bitbucket.org/blais/beancount/pull-requests/75/. In order to install
your duplicates detector, just call ingest at the end of your importer
script, like this:
my_importers = [ ... ]
ingest(my_importers, my_duplicates_func)
I could have chosen to add a "hook" option and such to Beancount, but I
preferred moving the whole import framework one level closer to code. I also
like that it's not just an imported module; it's really just your script,
with three subcommands. You could add more custom import-level stuff in
there. The ingest() function is a main program, and commands like
bean-extract myimporters.py ~/Downloads --reverse -e myledger.beancount
are invoked similarly by calling the Python script directly, like this:
./myimporters.py -d ~/Downloads extract --reverse -e myledger.beancount
These two should be equivalent.
The older way of doing things--that is, calling bean-identify, bean-extract
and bean-file--are still supported regardless of whether you've inserted a
call to ingest() in your importers configuration or not. This is made to
work via a rather labyrinthine trampoline of functions calls (in particular,
getting the arguments setup right was surprisingly tricky).
I'm still debating whether this should be "the new way", or just for those
wishing to build their own duplicate detection heuristic. Feedback (on the
list) would be interesting.
2018-07-29
- Updated to flex-2.6.4.
2018-07-28
- Added a utility to import modules by dotted string name.
2018-07-19
* Fixed #319: Incorrect version number from 2.1.2-devel to 2.1.3-devel.
2018-07-28
- Added automated unit test for calling identify() from the importers test
suite, expecting True, always.
2018-05-31
- Created a new plugin: "fill_account" to automatically insert a posting with
a default account name where there's a single posting. Will use this while
traveling as a lot of the expenses come from cash; this should significantly
shorten such files.
- Changed template for version number from {date|short} to {date(date, "%s%)}
as per discussion on #304 (thanks to Jason Chu for looking up the detail for
this).
2018-05-29
- Refactored the call to find duplicates in imported files so that it can be
called only once with all the results from all the importers. This should
eventually allow a user-provided function that can merge entries between
importers. Existing behavior should be unaffected (though there may be a
small delay until everything gets printed out; all the importers are invoked
before any output is written). See #298.
2018-05-28
- Fixed bug with tempdir being a symlink on Mac, which was making one test
fail.
- Fixed unit tests which failed due to timestamps getting rendered with an
offset on a Mac while on a train in Japan.
- Render tags and links on Document directive.
- Minor bug fix: don't fail on rendering a MISSING instnace.
- In 'divert_expenses' plugin, allow limiting diversions to one posting only.
- Fixed unit test for git checkouts. This should fix the Travis-CI build.
* Version: 2.1.2
2018-05-12
- Fixed setup.py to catch exceptions in the absence of git as well.
* Version: 2.1.1
2018-05-12
- Fixed installation with missing version string.
* Version: 2.1.0
2018-05-12
- Added back lexer test from Adrian Medrano Calvo's UTF8 changes to head.
2018-05-08
- Fixed #287: In the price fetcher, store the datetime instances as
naive-in-UTC in order to avoid a serialization problem with older Python
versions.
2018-05-06
- Changes to support git versioning if hg versioning is not available.
2018-05-05
- Fixed #289: Add option to find beancount version. All scripts now support
--version.
- Amended PR64 to remove the need for __getitem__(). Clarified docstring.
- Merged PR64 from Jakob Schnitzer: Inventory: use dict instead of list as a
base.
2018-05-04
- Fixed #290: Validation of account name components was incorrectly swapped.
2018-05-03
- Amended PR74: Adding a new unit test, fail if tags / link appear after the
first posting. Performance amendment to tags/links and clarification to the
freezing of tags & links and their default values.
- Merged PR74 / Fixed #99: Allow tags and links to be spread over several
lines.
- Amended PR14: added simple unit testing for regexp, changes in parsing UTF-8
account type to match changes in Beancount head.
- Merged PR14 by Adrian Medrano Calvo: Support account names to consist of
Unicode letters and numbers.
2018-05-02
- Removed a few accidental __author__ metadatas from files, normalized to
__copyright__ as all other files.
2018-05-01
- Added patch for clean build for lexer. 2.6.1 results in a build warning.
- Merged PR73 (Ethan Glasser-Camp) - Cleanups to lexer and more restrictive
syntax for comments within a transaction's indented block.
- Fixed failing test re. new grammar.
- Merged PR29: Update grammar to allow comments in the middle of transactions
(Ethan Glasser-Camp).
- Merged PR71: Use enhanced extract method which passes existing entries
(Patrick Ruckstuhl).
2018-04-29
- Added polymorphic POSSIGN(_, account) function to the SQL shell in order to
support correcting for per-account sign.
- Implemented polymorphic NEG() function in the SQL shell, which works on
instances of Decimal, Amount, Position, Inventory.
- Changed the SQL shell's operators to dispatch to Python's default operator
selection instead of coercing to Decimal instances.
2018-04-28
- Added QUARTER() function to the SQL shell.
(See https://groups.google.com/d/msg/beancount/fTlSnQRPayo/1yN8zd76AAAJ.)
- Updated version of flex on Ubuntu (2.6.1) generates warnings. Fixed a few.
But Beancount now fails on account names with a dash in them; added a test
for those. (The lexer is not the issue; I suspect a bison update from 4/17.)
2018-04-18
- Fixed #157: Building a price map with zero prices should not fail,
especially when done accidentally.
- Fixed #264: Converted zip compression in bake from using an external zip
tool to using the 'zipfile' module packaged with Python. I'm doing this to
fix the CI build as well.
2018-04-17
- Fixed #265: Refined the timezone specification of the price sources. In
doing this, I documented it in the beancount.prices.source module and now
pass in a timezone-aware datetime instance instead of a date, and the source
is now required to also require a timezone-aware datetime instance. I fixed
all the tests, and added a utility to simulate running them from different
timezones.
- Implemented multi-file support for bean-doctor context command. Use it like
this:
bean-doctor context <toplevel.beancount> <file.beancount>:<lineno>
The previous syntax is still supported; like this:
bean-doctor context <toplevel.beancount> <lineno>
2018-04-05
- Since I added a dependency on 'requests', forgot to add to checkdeps. Done.
2018-04-04
- Handle error on an invalid implementation of a price source (e.g., in this
case an obsoleted price source string of 'google' imports something else and
referenceing .Source fails).
- Bubble up error from Yahoo price source.
- Fixed #267: Implemented a price source from the IEX exchange.
2018-04-03
- Implemented Quandl importer on its REST API. Another implementation, based
on the Quandl Python client API was proposed by Hugo Ideler (see PR34), but
I didn't want to add a dependency on the client library (nor on Pandas), and
after reading the description on Quandl API's website, I figured the library
was simple enough the output could be parsed directly. I wrote a new
implementation from scratch, parsing just the time-series datasets.
- Merged PR68 from Martin Michlmayr, added Travis Yaml support file.
- Fixed Emacs functionality to uncomment regions (change submitted by Stefan
Monnier on the list).
2018-04-02
- Fixed #193: Removed the broken Google Finance price source importer. Google
has removed this service in the favor of a special Search page and this has
been broken for the recent little while.
- Fixed #203: Updated the Yahoo price source implementation to use the
undocumented v7 and v8 APIs; moved away from the "ichart" and "download"
APIs. The Yahoo importer is back in function.
This introduced a new dependency on the awesome 'requests' library, which
really, was quite inevitable).
2018-04-01
- Merged PR65: Use parse_version to compare versions; then replicated
parse_version() locally to avoid the dependency on setuptools.
- Merged PR15 by Johannes Harms:
Added the following features to the forecasting plugin:
- Yearly repetition of recurring transactions (instead of just monthly)
- Users may optionally specify an end date
- Users may optionally specify the number of repetitions
"I used this code to calculate scenarios for a possible real estate purchase
and I contribute a cleaned-up version as an example file."
- Merged PR54 & Fixed #232: Align quoted commodities correctly in ledger price
statements (from Martin Michlmayr).
- Merged PR57: query_execute: Allow ordering by columns which may be None
(from Jakob Schnitzer). Made some adjustments to generalize on all
datatypes.
- Merged PR62: Also allow 0/0 in SAFEDIV() (from Jakob Schnitzer), with small
adjustments to catch only the specific invalid operations on Decimal.
- Merged PR64 from yagebu@ (Jakob Schnitzer), which makes the Inventory class
rely on the fact that Position is immutable in order to avoid unnecessary
copies. This yields an 18% speedup with no difference.
- Removed unused and invalid mutating method Position.set_units(). Amazing
obsolete stuff like this can still be found.
2018-03-31
- Fixed #10: "print from close_date" causes problems on account open. This was
stemming from a bug in the implementation of the FROM clause execution. I
changed the "entry" context functions to also accept a RowContext object, as
the simple functions may be called in either entry or posting context.
(The SQL shell remains the part of Beancount which is severely undertested
and wading into that code once again has convinced me I need to rewrite the
shell from scratch, it'll be simpler and better. The distinction between
entry and posting context will go away in the next version.)
- Fixed #120: Documents directive with a trailing slash fails.
2018-03-28
- Fixed failing test in amount_test probably due to some recent merges.
2018-03-27
- Completed PR #59 which adds support for globbing patterns in includes,
inserting a chdir() around glob.glob() to handle expansion of relative
filenames. (Credits to Martin Michlmayr for submitting the patch in the
first place.)
* Version: 2.0.0
2018-03-27
- Released 2.0.0. Today we're starting versioning Beancount. Many people have
been waiting for this in order to manage their dependencies (e.g. Fava
users).
We're loosely adopting semantic versioning (https://semver.org/) where bug
fixes will be posted as 0.0.x releases, and new features that don't break
existing functionality (nor change it too much) will be posted as 0.x.0
releases.
Note: There's nothing special about this particular point in time, other
than I haven't added much features in the last six months and have mainly
been fixing bugs and accepting bug reports in order to make sure things are
stable. There are plenty remaining bug reports and it's not perfect.
Addressing some of these will involve making changes that could break
existing functionality. For this reason, I prefer to release now and make
those changes as part of point releases later on.
2018-03-26
- Fixed #245: Synchronized the definition of a valid account regular
expression between the lexer and the later enhanced version (in Python)
which checks the configured prefixes. A valid subaccount name may start with
either a capital letter or a number.
2018-03-23
- Removed deprecated methods from beancount.core (position, inventory,
interpolation).
2018-03-22
- Fixed #249: Error messages involving postings should start counting at 1
instead of 0. (I agree.)
- Added aliases for COMMODITY_META() vs. CURRENCY_META() and CURRENCY() and
COMMODITY(). These terms are used interchangeably. In the next version of
the shell, only one of them will be available.
- Removed the ability to explicitly set a different price currency than a cost
currency. I'm stunned my test for this is gone, I must have removed this by
accident? No idea. It should not be allowed.
2018-03-19
- Fixed #218, added a SAFEDIV function to the shell language.
- Fixed #239, HELP command should tolerate semicolons and whitespace.
(Also, don't print shell commands in test (remove docstrings), we want the
name of the tests to list, not the input.)
2018-03-13
- Removed SIMPLE booking method and all traces of it, including the
'booking_algorithm' option. Only the later (I hesitate to say "newer"
because it's been around for years) FULL booking method is supported
onwards.
- Fixed #35: Implemented implicit group-by syntax. That is, if you omit the
GROUP BY clause, it is automatically inferred to be the non-aggregate
columns. This make writing the type of simple queries we do much more
convenient and allows you to be a little sloppy.
- Fixed bug with unit test util for docutil, which was stripping the first
empty line of the docstring (and failing).
2018-03-02
- Made the 'readline' library conditional, for Windows support.
See PR46.
2018-02-23
- Fixed #219: Restored sorting of the entries in the extractor. File order
will have to be maintained by extracting the line no, which is used as a
secondary key.
2018-02-19
- Added prototype for converting Google Docs doc from docx and rst
conversions, using the docx blocks to insert indented versions in the rst
file.
- Removed deprecated beancount.ops.prices module.
2018-02-17
- Added an option to the CSV importer for the string separating the narration
(default: "; ").
- Merged a change submitted by @droogmic to add options for the dateutils
parser, in order to disambiguate between day-first (DD-MM-YYYY) vs.
month-first (MM-DD-YYYY) date representations.
- Created a new plugin "check_closing" that automatically inserts a zero
balance check after postings which are known - and flagged, using metadata -
to be closing trades.
- Fixed bug in "sellgains" plugin whereby a price of zero units failed an
assertion. Added a test.
2018-02-12
- Added a side-effects local variable saver utility for writing importers.
- Fixed #212: Clarified error message for error in covering non-aggregate
targets.
- The Importer.extract() method now accepts a new parameters with the prior
entries (or None, if not specified) as 'existing_entries'. It's free to use
that as it pleases in order to flag entries as duplicates. The entries
returned by Importer.extract() will be checked for __duplicate__ metadata
and automatically inserted to that set if it is present. This allows the
importer to return some duplicate entries for context - which will be
rendered as such in the output, e.g. commented out - without having to
necessarily throw them away.
(The previous signature is still supported in order to avoid breaking
everyone's importers.)
2018-01-31
- Modified 'divert_expenses' plugin to store the original account name as
metadata of diverted postings, so that they can be picked up by the
extract_tagged script and brought back into the extract file.
2018-01-29
- Created a new 'divert_expenses' plugin to redirect Expenses postings from
transactions tagged with a particular tag to another account. See this
thread for details:
https://docs.google.com/drawings/d/18fTrrGlmz0jFbfcGGHTffbdRwbmST8r9_3O26Dd1Xww/edit?usp=sharing
- Added account_types.is_account_type() function, which should be used above
account_types.get_account_type().
2018-01-23
- Removed the insertion of 'balance' metadata from the importer. We use it for
inserting Balance entries, not attach as metadata.
- Disabled Balance insertion CSV test;
03d9a5c3b2784a6f6a05c12eaeb7776f0478a96d broke the insertion of Balance
entries without inserting 'balance' metadata. We'll probably have to revert the
sorting changes and that. For now, fix the test.
- Fixed #210: Changed the bean-price option --undeclared to accept a string
value, the name of the Python source module to use for fetching undeclared
commodities.
- Added an error on using explicit merge cost syntax (this one: {..., *}).
It's not supported yet, like AVERAGE cost booking (I probably should not
have enabled the syntax until it was done. I was hopeful and moving fast at
the time).
2018-01-16
- CSV importer: Added an option not to add balance metadata to output.
- CSV importer: Also, fixed a bug I introduced in the recent PR merge with
rendering the name of the importer.
- SQL importer: Made "location" field support transactions with metadata with
missing filename and line no. Some plugins might be doing that.
2018-01-08
- Fixed #209: Don't require 'ido. User will have to make sure that
beancount-use-ido is false.
2018-01-07
- Merged https://bitbucket.org/blais/beancount/pull-requests/28/allow-one-character-top-level-account,
allowing one character top-level account names in the syntax. This doesn't
mess with the flag token generateion because the account name is required to
have at least two components.
2017-12-09
- Fixed rendering of price directives to use the display context precision.
2017-11-24
- Silenced annoying warning about file_cache version incompatibility in
upload-to-sheets.
2017-10-28
- Fixed bug with identification based on the first line of a file.
- Fixed bug with 'context' on a directive that's not a transaction.
2017-09-30
- Fixed a bug in reduction booking that would fail when the units are omitted.
2017-09-17
- Fixed bug in Balance check, detect when an account does not exist and handle
it properly.
- Added bean-difference script, used to reconcile transactions in multiple
files after a long trip.
2017-09-06
- Added ABS() implementation to SQL shell for Position and Inventory types.
See https://groups.google.com/d/msg/beancount/0i4w98LmS6E/JJGOKSB8CQAJ
2017-08-08
- Accept account name components as numbers only. The grammar safely supports
this because of the leading semi-colon, all the tests pass, and everything
runs on my own very large input files.
- Fixed a failing test with MIME mis-categorization which occurred under
Ubuntu.
2017-07-25
- Fixed #181: Support underscores in Python module names for price sources
(thanks to Stephan Mueller for reporting).
2017-07-23
- Fixed #179: Scientific notation should never appear in rendered output.
2017-07-02
- Fixed minor bug with rendering postings with missing numbers.
2017-07-06
- More changes on #173: use a stringify two-level macro in order to place the
parser source hash as a string in the source file. Hopefully this should
also work under MSDEV.
2017-07-05
- Fixed #173: Added a potential fix for building under MSDEV. Thanks to Alan
Ray for pointing out a method to build with MSDEV under Windows.
2017-06-25
- Fixed a minor bug in the tolerance inference code that wouldn't accept a
posting with a missing number only, e.g. Assets:Checking USD @ 1.32 CAD.
- Added a "--no-colon" option to both bean-web and bean-bake in order to
support Windows filesystems which do not allow colons in filenames.
2017-06-22
- Added --numberify option to bean-query, which for CSV output will remove the
currencies of any Amount column. This is great for then uploading to a
spreadsheet.