summaryrefslogtreecommitdiff
path: root/python-cl-sii.spec
blob: 9baf01004a010d607612c6b242875e5dab435ede (plain)
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
%global _empty_manifest_terminate_build 0
Name:		python-cl-sii
Version:	0.23.0
Release:	1
Summary:	Python library for Servicio de Impuestos Internos (SII) of Chile.
License:	MIT
URL:		https://github.com/fyntex/lib-cl-sii-python
Source0:	https://mirrors.nju.edu.cn/pypi/web/packages/26/95/6ffb90d0ef5c3d56571bcf39d46ae2569bf8a305330cc24d840ff4c307ec/cl-sii-0.23.0.tar.gz
BuildArch:	noarch

Requires:	python3-cryptography
Requires:	python3-defusedxml
Requires:	python3-jsonschema
Requires:	python3-lxml
Requires:	python3-marshmallow
Requires:	python3-pydantic
Requires:	python3-pyOpenSSL
Requires:	python3-pytz
Requires:	python3-signxml
Requires:	python3-Django
Requires:	python3-djangorestframework

%description
# cl-sii Python lib

[![PyPI Package Version](https://img.shields.io/pypi/v/cl-sii)](https://pypi.org/project/cl-sii/)
[![Python Versions](https://img.shields.io/pypi/pyversions/cl-sii)](https://pypi.org/project/cl-sii/)
[![License](https://img.shields.io/pypi/l/cl-sii)](https://pypi.org/project/cl-sii/)

Python library for Servicio de Impuestos Internos (SII) of Chile.

## Documentation

The full documentation is at <https://lib-cl-sii-python.readthedocs.io>.

## Dashboard

### Development

| VCS Branch | Deployment Environment | VCS Repository | CI/CD Status |
| ---------- | ---------------------- | -------------- | ------------ |
| `develop` | Staging | [GitHub](https://github.com/fyntex/lib-cl-sii-python/tree/develop) | [![GitHub Actions](https://github.com/fyntex/lib-cl-sii-python/actions/workflows/ci-cd.yaml/badge.svg?branch=develop)](https://github.com/fyntex/lib-cl-sii-python/actions/workflows/ci-cd.yaml?query=branch:develop) |
| `master` | Production | [GitHub](https://github.com/fyntex/lib-cl-sii-python/tree/master) | [![GitHub Actions](https://github.com/fyntex/lib-cl-sii-python/actions/workflows/ci-cd.yaml/badge.svg?branch=master)](https://github.com/fyntex/lib-cl-sii-python/actions/workflows/ci-cd.yaml?query=branch:master) |

| Code Coverage | Code Climate | Documentation | Project Analysis |
| ------------- | ------------ | ------------- | ---------------- |
| [![Codecov](https://codecov.io/gh/fyntex/lib-cl-sii-python/branch/develop/graph/badge.svg?token=VdwPUEUzzQ)](https://codecov.io/gh/fyntex/lib-cl-sii-python) | [![Maintainability](https://api.codeclimate.com/v1/badges/c4e8a9b023310ff8c276/maintainability)](https://codeclimate.com/github/fyntex/lib-cl-sii-python/maintainability) | [![Read the Docs](https://readthedocs.org/projects/lib-cl-sii-python/badge/)](https://readthedocs.org/projects/lib-cl-sii-python/) | [Open Source Insights](https://deps.dev/pypi/cl-sii) |

### Hosting

| Deployment Environment | Python Package Registry |
| ---------------------- | ----------------------- |
| Production | [PyPI](https://pypi.org/project/cl-sii/) |

## Supported Python versions

Only Python 3.8, 3.9 and 3.10. Python 3.7 and below will not work because we use some features
introduced in Python 3.8.

## Quickstart

Install package::

```sh
pip install cl-sii
```

And TODO

## Features

- TODO

### Tests

Requirements::

```sh
make install-dev
```

Run test suite for all supported Python versions and run tools for
code style analysis, static type check, etc::

```sh
make test-all
make lint
```

Check code coverage of tests::

```sh
make test-coverage
make test-coverage-report-console
```


# History

## 0.23.0 (2023-04-05)

- (PR #443, 2023-03-13) chore(deps-dev): Bump types-pytz from 2022.7.1.0 to 2022.7.1.2
- (PR #445, 2023-03-13) chore(deps-dev): Bump types-jsonschema from 4.17.0.3 to 4.17.0.6
- (PR #428, 2023-03-13) chore(deps): Bump signxml from 2.10.1 to 3.1.0
- (PR #444, 2023-03-13) chore(deps-dev): Bump types-pyopenssl from 23.0.0.2 to 23.0.0.4
- (PR #462, 2023-03-14) Update minimum version of `signxml` to `3.1.0`
- (PR #429, 2023-03-14) chore(deps): Bump importlib-metadata from 1.6.0 to 6.0.0
- (PR #463, 2023-03-29) Decrease Dependabot's open pull request limit to 5
- (PR #475, 2023-04-03) Update Editor Configuration
- (PR #474, 2023-04-04) Update Super-Linter configuration
- (PR #218, 2023-04-04)  Add data model for DTE Referencia
- (PR #461, 2023-04-04) Add contributing guidelines

## 0.22.3 (2023-03-13)

- (PR #432, 2023-03-13) chore(deps-dev): Bump isort from 5.10.1 to 5.12.0
- (PR #430, 2023-03-13) chore(deps-dev): Bump flake8 from 4.0.1 to 6.0.0
- (PR #458, 2023-03-13) fix(data.cte): Add missing code `8020` to file used by schema validator

## 0.22.2 (2023-03-10)

- (PR #427, 2023-03-10) chore(deps-dev): Bump black from 22.12.0 to 23.1.0
- (PR #455, 2023-03-10) fix(data.cte): Add missing codes to files used by schema validator

## 0.22.1 (2023-03-09)

- (PR #452, 2023-03-09) fix(data.cte): Add JSON files to MANIFEST.in

## 0.22.0 (2023-03-09)

- (PR #446, 2023-03-07) chore(deps-dev): Bump mypy from 0.991 to 1.0.1
- (PR #449, 2023-03-08) Drop support for Python 3.7
- (PR #442, 2023-03-09) chore: Bump actions/cache from 3.2.5 to 3.2.6
- (PR #440, 2023-03-09) fix(cte): Add default values for known missing codes in SII CTE Form 29

## 0.21.0 (2023-02-28)

- (PR #441, 2023-03-01) Switch CI/CD from CircleCI to GitHub Actions

## 0.20.0 (2023-02-10)

- (PR #403, 2023-01-05) chore(deps): Bump pyopenssl from 22.0.0 to 22.1.0
- (PR #406, 2023-01-05) chore(deps-dev): Bump mypy from 0.982 to 0.991
- (PR #405, 2023-01-23) chore(deps): Bump jsonschema from 4.16.0 to 4.17.3
- (PR #422, 2023-01-26) Add GitHub Dependency Review
- (PR #423, 2023-01-26) Improve GitHub Dependency Review
- (PR #411, 2023-01-26) chore(deps-dev): Bump black from 22.10.0 to 22.12.0
- (PR #425, 2023-01-27) Update Markdownlint configuration
- (PR #410, 2023-02-03) chore(deps): Bump pydantic from 1.10.2 to 1.10.4
- (PR #433, 2023-02-03) Improve type checking
- (PR #434, 2023-02-03) Improve type checking
- (PR #424, 2023-02-06) chore(deps-dev): Bump coverage from 6.5.0 to 7.1.0
- (PR #414, 2023-02-06) chore(deps): Bump lxml from 4.9.1 to 4.9.2
- (PR #420, 2023-02-06) chore(deps): Bump pytz from 2022.6 to 2022.7.1
- (PR #431, 2023-02-06) chore(deps): Bump pyopenssl from 22.1.0 to 23.0.0
- (PR #436, 2023-02-08) chore(deps): Bump cryptography from 38.0.4 to 39.0.1
- (PR #435, 2023-02-08) chore(deps): Bump django from 3.2.16 to 3.2.17
- (PR #426, 2023-02-08) chore(deps): Bump marshmallow from 2.21.0 to 3.19.0

## 0.19.0 (2023-01-05)

- (PR #398, 2022-11-23) fix: Fix Dependabot error pip.….Error: Constraints cannot have extras
- (PR #399, 2022-11-23) chore(deps): Bump cryptography from 38.0.1 to 38.0.3
- (PR #400, 2022-12-05) chore(deps-dev): Bump wheel from 0.37.1 to 0.38.4
- (PR #407, 2022-12-05) chore(deps): Bump cryptography from 38.0.3 to 38.0.4
- (PR #408, 2022-12-06) Enable Python dependency sync check for Python 3.7
- (PR #409, 2022-12-29) chore: Add support for Python 3.10

## 0.18.3 (2022-11-07)

- (PR #346, 2022-09-28) chore(deps-dev): bump mypy from 0.790 to 0.971
- (PR #385, 2022-10-14) chore(deps-dev): Bump mypy from 0.971 to 0.981
- (PR #389, 2022-10-14) chore(deps-dev): Bump coverage from 6.4.4 to 6.5.0
- (PR #386, 2022-10-19) chore(deps): Bump djangorestframework from 3.13.1 to 3.14.0
- (PR #391, 2022-10-19) chore(deps): Bump django from 3.2.15 to 3.2.16
- (PR #394, 2022-11-03) chore(deps-dev): Bump mypy from 0.981 to 0.982
- (PR #395, 2022-11-07) chore(deps): Bump pytz from 2022.2.1 to 2022.6
- (PR #396, 2022-11-07) chore(deps-dev): Bump black from 22.8.0 to 22.10.0
- (PR #375, 2022-11-07) chore(deps): Bump signxml from 2.9.0 to 2.10.1
- (PR #376, 2022-11-07) chore(deps): Bump cryptography from 37.0.4 to 38.0.1

## 0.18.2 (2022-09-26)

- (PR #370, 2022-09-14) chore(deps): Bump pyopenssl from 18.0.0 to 20.0.1
- (PR #373, 2022-09-14) Manage Python dependencies with Pip Tools
- (PR #381, 2022-09-14) fix(deps): Remove Python version constraint for `importlib-metadata`
- (PR #382, 2022-09-14) fix(deps): Workaround for CI issues related to `python-deps-sync-check`
- (PR #380, 2022-09-14) chore(deps): Bump pydantic from 1.10.1 to 1.10.2
- (PR #371, 2022-09-23) chore(deps): Bump jsonschema from 3.2.0 to 4.16.0
- (PR #374, 2022-09-23) chore(deps): Bump defusedxml from 0.6.0 to 0.7.1
- (PR #377, 2022-09-23) chore(deps-dev): Bump codecov from 2.1.11 to 2.1.12
- (PR #378, 2022-09-23) chore(deps-dev): Bump black from 22.1.0 to 22.8.0
- (PR #379, 2022-09-23) chore(deps-dev): Bump coverage from 5.3 to 6.4.4

## 0.18.1 (2022-09-01)

- (PR #362, 2022-08-29) Add information dashboard to readme
- (PR #358, 2022-08-29) chore(deps): bump pytz from 2019.3 to 2022.2.1
- (PR #364, 2022-08-31) chore(deps): bump typing-extensions from 4.0.1 to 4.3.0
- (PR #367, 2022-08-31) chore(deps): Update 'pydantic' from version 1.6.2 to 1.10.1
- (PR #368, 2022-09-01) Add Super-Linter

## 0.18.0 (2022-08-26)

- (PR #343, 2022-07-08) chore: Update Dependabot configuration
- (PR #281, 2022-07-21) build(deps): bump six from 1.15.0 to 1.16.0
- (PR #340, 2022-07-21) build(deps): bump lxml from 4.6.5 to 4.9.1
- (PR #334, 2022-07-22) build(deps): bump certifi from 2020.12.5 to 2022.6.15
- (PR #350, 2022-08-11) chore: Add code owners
- (PR #352, 2022-08-18) chore: Change Dependabot schedule interval from `weekly` to `monthly`
- (PR #338, 2022-08-22) build(deps-dev): bump tox from 3.20.1 to 3.25.1
- (PR #342, 2022-08-22) chore(deps): Bump cryptography from 3.3.2 to 37.0.4
- (PR #286, 2022-08-24) build(deps): bump eight from 1.0.0 to 1.0.1
- (PR #355, 2022-08-24) chore: Add Make tasks for installation
- (PR #332, 2022-08-24) build(deps-dev): bump pkginfo from 1.7.0 to 1.8.3
- (PR #288, 2022-08-24) build(deps): bump pluggy from 0.13.1 to 1.0.0
- (PR #287, 2022-08-25) build(deps): bump wheel from 0.35.1 to 0.37.1
- (PR #356, 2022-08-25) chore(deps): bump marshmallow from 2.19.5 to 2.21.0
- (PR #339, 2022-08-25) build(deps): bump cffi from 1.14.0 to 1.15.1
- (PR #312, 2022-08-25) build(deps-dev): bump tqdm from 4.45.0 to 4.64.0
- (PR #359, 2022-08-25) chore: Add Git commit linter
- (PR #360, 2022-08-26) Update files for Git commit linter

## 0.17.3 (2022-07-04)

- (PR #326, 2022-05-25) chore(requirements-dev): Update package `readme-renderer` to 35.0
- (PR #325, 2022-05-25) chore: Update Python to version 3.8.13

## 0.17.2 (2022-03-31)

- (PR #309, 2022-03-31) fix(rut): `AttributeError` for `GeneralName` object without `type_id`

## 0.17.1 (2022-02-16)

- (PR #269, 2022-02-03) chore: Add tool to automatically sort Python imports
- (PR #274, 2022-02-08) chore: Increase Dependabot's open pull request limit for `pip`
- (PR #273, 2022-02-08) requirements: Update 'Flake8'
- (PR #292, 2022-02-08) chore: Increase Django REST Framework required maximum version to 3.13.x
- (PR #294, 2022-02-09) chore: Simplify organization of Python dependency manifests
- (PR #272, 2022-02-10) Add 'Black' Python code formatter

## 0.17.0 (2022-01-27)

- (PR #251, 2022-01-14) rcv: Convert stdlib dataclasses into pydantic dataclasses
- (PR #267, 2022-01-27) cl_sii.rut: Add method to get the RUT of the certificate holder

## 0.16.1 (2022-01-13)

- (PR #264, 2022-01-13) rtc.xml_utils: Add method to verify signature of AEC XML document

## 0.16.0 (2021-12-24)

- (PR #261, 2021-12-24) chore(rtc.parse): Disable validation that AEC signature cert is loadable
- (PR #253, 2021-12-24) Rename of the enum class for `TipoDte` object

## 0.15.2 (2021-12-23)

- (PR #258, 2021-12-22) chore: Increase lxml lower bound constraint
- (PR #259, 2021-12-23) requirements: Update 'signxml'

## 0.15.1 (2021-12-21)

- (PR #255, 2021-12-21) build(deps): bump lxml from 4.6.3 to 4.6.5

## 0.15.0 (2021-10-20)

- (PR #242, 2021-10-12) rtc: Verify outermost XML signature of SII AECs
- (PR #247, 2021-10-19) config: Update Python version used in CI jobs to 3.8.12
- (PR #245, 2021-10-20) rtc.parse_aec: Convert to `None` the empty optional values in the Caratula

## 0.14.1 (2021-10-12)

- (PR #238, 2021-09-08) rut: Fix RUT clean method to accept '0-0' value
- (PR #241, 2021-09-16) rtc: Make AEC field 'nombre persona autorizada cedente' optional

## 0.14.0 (2021-08-17)

- (PR #234, 2021-08-09) dte: Convert stdlib dataclasses into pydantic dataclasses
- (PR #236, 2021-08-09) DteXmlData: Restore mistakenly deleted regression tests

## 0.13.0 (2021-07-14)

- (PR #228, 2021-06-29) config: Update Python version used in CI jobs to 3.8.10
- (PR #230, 2021-07-09) dte: Convert stdlib dataclass `DteXmlData` into pydantic dataclass

## 0.12.5 (2021-06-15)

- (PR #226, 2021-06-15) requirements: Remove Django upper bound constraint
- (PR #224, 2021-06-15) requirements: Upgrade 'Django'
- (PR #223, 2021-06-08) requirements: Upgrade 'Django'
- (PR #221, 2021-05-14) requirements: Upgrade Pydantic
- (PR #216, 2021-04-22) docs: Add creation of release branch to instructions for new releases
- (PR #213, 2021-04-21) build(deps): bump toml from 0.10.1 to 0.10.2

## 0.12.4 (2021-04-15)

- (PR #195, 2021-04-15) build(deps): bump requests from 2.23.0 to 2.25.1
- (PR #212, 2021-04-14) config: Update Python version used in CI jobs to 3.8.9
- (PR #210, 2021-04-13) rtc.data_models_aec: remove validation for the progression of
  'monto_cesion' across the 'cesiones'
- (PR #207, 2021-04-08) build(deps): bump virtualenv from 20.0.31 to 20.4.3
- (PR #208, 2021-04-08) rtc.data_models_aec: remove match validation for 'fecha_firma_dt' and
  'fecha_cesion_dt'
- (PR #205, 2021-03-26) build(deps): bump lxml from 4.6.2 to 4.6.3
- (PR #204, 2021-03-24) requirements: Upgrade 'Django'

## 0.12.3 (2021-02-26)

- (PR #193, 2021-02-16) requirements: Update dependency graph of base requirements
- (PR #197, 2021-02-26) extras: add 'RutField' for Django forms

## 0.12.2 (2021-02-16)

- (PR #177, 2021-02-16) build(deps): bump lxml from 4.5.0 to 4.6.2
- (PR #188, 2021-02-16) build(deps): bump cryptography from 3.3.1 to 3.3.2
- (PR #176, 2021-02-16) build(deps): bump zipp from 3.1.0 to 3.4.0
- (PR #167, 2021-02-16) build(deps): bump py from 1.8.1 to 1.10.0
- (PR #189, 2021-02-16) build(deps): bump certifi from 2020.4.5.1 to 2020.12.5
- (PR #185, 2021-02-16) build(deps): bump pkginfo from 1.5.0.1 to 1.7.0
- (PR #191, 2021-02-16) build(deps): bump pyrsistent from 0.16.0 to 0.17.3
- (PR #190, 2021-02-16) build(deps): bump typed-ast from 1.4.1 to 1.4.2

## 0.12.1 (2021-02-09)

- (PR #186, 2021-02-09) rtc: Add methods to build CesionL2, CesionL1, and CesionL0 from other data
  models

## 0.12.0 (2021-01-17)

- (PR #179, 2021-01-13) rtc: Add data models for "cesión"
- (PR #181, 2021-01-14) rtc.data_models: Clean up configuration leftovers from tests
- (PR #180, 2021-01-15) rtc: Add data models and parser for AECs

## 0.11.2 (2021-01-11)

- (PR #166, 2020-12-15) requirements: Update 'cryptography'
- (PR #169, 2020-12-16) build(deps): bump coverage from 4.5.3 to 5.3
- (PR #172, 2020-12-22) rtc: Add data model for "Cesiones Periodo" entries
- (PR #173, 2021-01-05) requirements: Add 'pydantic'
- (PR #175, 2021-01-06) libs.tz_utils: Add checks to validate_dt_tz
- (PR #174, 2021-01-07) rtc: Add constants and "cesión" natural keys
- (PR #171, 2021-01-07) build(deps): bump codecov from 2.1.9 to 2.1.11

## 0.11.1 (2020-12-15)

- (PR #140, 2020-09-15) config: Make CI 'dist' job depend on 'test' jobs
- (PR #141, 2020-09-15) config: Update Python version used in CI jobs to 3.8.5
- (PR #137, 2020-09-15) build(deps): bump keyring from 21.2.0 to 21.4.0
- (PR #142, 2020-09-16) build(deps): bump mypy from 0.770 to 0.782
- (PR #145, 2020-09-21) build(deps): bump setuptools from 46.1.3 to 50.3.0
- (PR #146, 2020-09-23) build(deps): bump wheel from 0.34.2 to 0.35.1
- (PR #147, 2020-09-23) requirements: update 'eight' (dependency of 'signxml')
- (PR #149, 2020-09-24) build(deps): bump packaging from 20.3 to 20.4
- (PR #150, 2020-09-28) build(deps): bump virtualenv from 20.0.26 to 20.0.31
- (PR #157, 2020-11-12) requirements: Update 'flake8'
- (PR #158, 2020-11-12) requirements: Update 'signxml'
- (PR #161, 2020-12-15) Add support for Python 3.9
- (PR #160, 2020-12-15) build(deps): bump cryptography from 2.9 to 3.3.1
- (PR #162, 2020-12-15) config: Update Python 3.7 version to 3.7.9
- (PR #156, 2020-12-15) build(deps): bump attrs from 19.3.0 to 20.3.0
- (PR #151, 2020-12-15) build(deps): update djangorestframework requirement
  from <3.11,>=3.10.3 to >=3.10.3,<3.13
- (PR #163, 2020-12-15) requirements: update 'mypy' (test)
- (PR #164, 2020-12-15) requirements: update 'tox' (test)

## 0.11.0 (2020-09-15)

- (PR #138, 2020-09-15) config: Add PyPI package uploading to CI
- (PR #135, 2020-09-15) rtc: Add constants
- (PR #129, 2020-09-14) build(deps): bump toml from 0.10.0 to 0.10.1
- (PR #133, 2020-09-14) build(deps): bump codecov from 2.0.22 to 2.1.9
- (PR #134, 2020-09-10) Add sub-package `rtc`
- (PR #131, 2020-07-22) requirements: update 'signxml'
- (PR #123, 2020-07-13) build(deps): bump six from 1.14.0 to 1.15.0
- (PR #126, 2020-07-10) build(deps): bump virtualenv from 20.0.16 to 20.0.26
- (PR #127, 2020-07-09) config: Verify Python dependency compatibility in CI
- (PR #124, 2020-07-07) build(deps): bump tox from 3.14.6 to 3.16.1
- (PR #122, 2020-07-07) config: Add configuration for GitHub Dependabot

## 0.10.1 (2020-06-08)

- (PR #119, 2020-06-08) Add support for Python 3.8

## 0.10.0 (2020-04-14)

### 0.10.0.a3

- (PR #116, 2020-04-14) rcv.data_models: remove unnecessary fields
- (PR #114, 2020-04-14) rcv.parse_csv: remove param `razon_social` from parse functions

### 0.10.0.a2

- (PR #112, 2020-04-14) data_models: make some fields optional

### 0.10.0.a1

- (PR #110, 2020-04-13) rcv.data_models: move some fields to subclasses
- (PR #109, 2020-04-13) rcv.parse_csv: move code from 'fd-cl-data' in here
- (PR #108, 2020-04-13) dte.data_models: add 'DteXmlData'
- (PR #107, 2020-04-10) requirements: several updates

## 0.9.1 (2020-03-20)

- Fix incorrect version used in the previous release's changelog.

## 0.9.0 (2020-03-20)

- (PR #104, 2020-02-27) cte.f29.parser: Rename custom validator and deserializer parameters
- (PR #97, 2020-02-25) cte: Allow four digit Form 29 codes
- (PR #103, 2020-02-24) cte: Add custom validators and deserializers to parser

## 0.8.4 (2020-02-06)

- (PR #100, 2020-02-06) Update everything for Fyntex, the new owner

## 0.8.3 (2020-02-06)

- (PR #98, 2020-02-05) requirements: several updates (`cryptography`,
  `lxml`, `Django`, `djangorestframework`)
- (PR #91, 2019-10-28) extras.mm_fields: add `RcvPeriodoTributarioField`

## 0.8.2 (2019-10-28)

- (PR #89, 2019-10-28) cte: Move JSON Schema of F29 'datos' object to 'data'
  directory and include it in the distribution packages
- (PR #87, 2019-10-25) cte: add data model, parser and more
- (PR #88, 2019-10-23) update config file for "deepsource"
- (PR #86, 2019-10-08) add config file for "deepsource"

## 0.8.1 (2019-09-25)

- (PR #83, 2019-09-12) rcv.parse_csv: remove whitespace from "razon social"

## 0.8.0 (2019-09-03)

- (PR #80, 2019-09-03) dte: Allow negative "monto total" when DTE type is "liquidación-factura
  electrónica"

## 0.7.4 (2019-08-08)

- (PR #76, 2019-08-01) dte: misc data models and enum improvements

## 0.7.3 (2019-07-09)

- (PR #74, 2019-07-09) requirements: update main packages

## 0.7.2 (2019-07-08)

- (PR #72, 2019-07-08) extras: Handle `str`-typed RUTs in Django `RutField.get_prep_value()`
- (PR #70, 2019-07-05) rut: Add less-than and greater-than methods
- (PR #71, 2019-07-05) rut: Strip leading zeros from RUTs
- (PR #69, 2019-07-02) libs.tz_utils: Fix setting of time zone information in datetimes
- (PR #68, 2019-06-27) requirements: update all those for 'release' and 'test'

## 0.7.1 (2019-06-20)

- (PR #66, 2019-06-20) rcv.parse_csv: detect invalid value of "razon social"

## 0.7.0 (2019-06-13)

- (PR #63, 2019-06-13) rcv.parse_csv: significant changes to parse functions
- (PR #62, 2019-06-13) libs: add module `io_utils`
- (PR #61, 2019-06-12) rcv: add data models, constants and more
- (PR #60, 2019-06-12) libs.tz_utils: misc
- (PR #59, 2019-05-31) rcv.parse_csv: add `parse_rcv_compra_X_csv_file`

## 0.6.5 (2019-05-29)

- (PR #57, 2019-05-29) libs.xml_utils: minor fix to `verify_xml_signature`

## 0.6.4 (2019-05-29)

- (PR #55, 2019-05-29) libs.xml_utils: add `verify_xml_signature`
- (PR #54, 2019-05-28) libs: add module `dataclass_utils`

## 0.6.3 (2019-05-24)

- (PR #52, 2019-05-24) rcv: add module `parse_csv`
- (PR #51, 2019-05-24) libs: add module `rows_processing`
- (PR #50, 2019-05-24) libs: add module `csv_utils`
- (PR #49, 2019-05-24) libs.mm_utils: add `validate_no_unexpected_input_fields`
- (PR #48, 2019-05-24) dte.data_models: add `DteDataL2.as_dte_data_l1`

## 0.6.2 (2019-05-15)

- (PR #45, 2019-05-15) libs.encoding_utils: improve `clean_base64`
- (PR #44, 2019-05-15) dte.parse: fix edge case in `parse_dte_xml`

## 0.6.1 (2019-05-08)

- (PR #40, 2019-05-08) dte.data_models: fix bug in `DteDataL2`

## 0.6.0 (2019-05-08)

Includes backwards-incompatible changes to data model `DteDataL2`.

- (PR #38, 2019-05-08) dte.data_models: alter field `DteDataL2.signature_x509_cert_pem`
- (PR #37, 2019-05-08) dte.data_models: alter field `DteDataL2.firma_documento_dt_naive`
- (PR #36, 2019-05-08) libs.crypto_utils: add functions
- (PR #35, 2019-05-07) libs.tz_utils: minor improvements
- (PR #34, 2019-05-06) docs: Fix `bumpversion` command

## 0.5.1 (2019-05-03)

- (PR #32, 2019-05-03) Requirements: updates and package upper-bounds

## 0.5.0 (2019-04-25)

- (PR #29, 2019-04-25) dte.data_models: modify new fields of `DteDataL2`
- (PR #28, 2019-04-25) libs: add module `crypto_utils`
- (PR #27, 2019-04-25) libs: add module `encoding_utils`
- (PR #26, 2019-04-25) test_data: add files
- (PR #25, 2019-04-25) libs.xml_utils: fix class alias `XmlElementTree`
- (PR #24, 2019-04-25) requirements: add and update packages
- (PR #22, 2019-04-24) test_data: add files
- (PR #21, 2019-04-22) dte: many improvements
- (PR #20, 2019-04-22) libs.xml_utils: misc improvements
- (PR #19, 2019-04-22) test_data: fix and add real SII DTE & AEC XML files
- (PR #18, 2019-04-22) data.ref: add XML schemas for "Cesion" (RTC)

## 0.4.0 (2019-04-16)

- (PR #16, 2019-04-16) dte.parse: change and improve `clean_dte_xml`
- (PR #14, 2019-04-09) data.ref: merge XML schemas dirs
- (PR #13, 2019-04-09) extras: add Marshmallow field for a DTE's "tipo DTE"

## 0.3.0 (2019-04-05)

- (PR #11, 2019-04-05) dte: add module `parse`
- (PR #10, 2019-04-05) dte: add module `data_models`
- (PR #9, 2019-04-05) libs: add module `xml_utils`
- (PR #8, 2019-04-05) add sub-package `rcv`

## 0.2.0 (2019-04-04)

- (PR #6, 2019-04-04) data.ref: add XML schemas of "factura electrónica"
- (PR #5, 2019-04-04) extras: add 'RutField' for Django models, DRF and MM
- (PR #4, 2019-04-04) Config CircleCI

## 0.1.0 (2019-04-04)

- (PR #2, 2019-04-04) Add class and constants for RUT
- (PR #1, 2019-04-04) Whole setup for a Python package/library




%package -n python3-cl-sii
Summary:	Python library for Servicio de Impuestos Internos (SII) of Chile.
Provides:	python-cl-sii
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-pip
%description -n python3-cl-sii
# cl-sii Python lib

[![PyPI Package Version](https://img.shields.io/pypi/v/cl-sii)](https://pypi.org/project/cl-sii/)
[![Python Versions](https://img.shields.io/pypi/pyversions/cl-sii)](https://pypi.org/project/cl-sii/)
[![License](https://img.shields.io/pypi/l/cl-sii)](https://pypi.org/project/cl-sii/)

Python library for Servicio de Impuestos Internos (SII) of Chile.

## Documentation

The full documentation is at <https://lib-cl-sii-python.readthedocs.io>.

## Dashboard

### Development

| VCS Branch | Deployment Environment | VCS Repository | CI/CD Status |
| ---------- | ---------------------- | -------------- | ------------ |
| `develop` | Staging | [GitHub](https://github.com/fyntex/lib-cl-sii-python/tree/develop) | [![GitHub Actions](https://github.com/fyntex/lib-cl-sii-python/actions/workflows/ci-cd.yaml/badge.svg?branch=develop)](https://github.com/fyntex/lib-cl-sii-python/actions/workflows/ci-cd.yaml?query=branch:develop) |
| `master` | Production | [GitHub](https://github.com/fyntex/lib-cl-sii-python/tree/master) | [![GitHub Actions](https://github.com/fyntex/lib-cl-sii-python/actions/workflows/ci-cd.yaml/badge.svg?branch=master)](https://github.com/fyntex/lib-cl-sii-python/actions/workflows/ci-cd.yaml?query=branch:master) |

| Code Coverage | Code Climate | Documentation | Project Analysis |
| ------------- | ------------ | ------------- | ---------------- |
| [![Codecov](https://codecov.io/gh/fyntex/lib-cl-sii-python/branch/develop/graph/badge.svg?token=VdwPUEUzzQ)](https://codecov.io/gh/fyntex/lib-cl-sii-python) | [![Maintainability](https://api.codeclimate.com/v1/badges/c4e8a9b023310ff8c276/maintainability)](https://codeclimate.com/github/fyntex/lib-cl-sii-python/maintainability) | [![Read the Docs](https://readthedocs.org/projects/lib-cl-sii-python/badge/)](https://readthedocs.org/projects/lib-cl-sii-python/) | [Open Source Insights](https://deps.dev/pypi/cl-sii) |

### Hosting

| Deployment Environment | Python Package Registry |
| ---------------------- | ----------------------- |
| Production | [PyPI](https://pypi.org/project/cl-sii/) |

## Supported Python versions

Only Python 3.8, 3.9 and 3.10. Python 3.7 and below will not work because we use some features
introduced in Python 3.8.

## Quickstart

Install package::

```sh
pip install cl-sii
```

And TODO

## Features

- TODO

### Tests

Requirements::

```sh
make install-dev
```

Run test suite for all supported Python versions and run tools for
code style analysis, static type check, etc::

```sh
make test-all
make lint
```

Check code coverage of tests::

```sh
make test-coverage
make test-coverage-report-console
```


# History

## 0.23.0 (2023-04-05)

- (PR #443, 2023-03-13) chore(deps-dev): Bump types-pytz from 2022.7.1.0 to 2022.7.1.2
- (PR #445, 2023-03-13) chore(deps-dev): Bump types-jsonschema from 4.17.0.3 to 4.17.0.6
- (PR #428, 2023-03-13) chore(deps): Bump signxml from 2.10.1 to 3.1.0
- (PR #444, 2023-03-13) chore(deps-dev): Bump types-pyopenssl from 23.0.0.2 to 23.0.0.4
- (PR #462, 2023-03-14) Update minimum version of `signxml` to `3.1.0`
- (PR #429, 2023-03-14) chore(deps): Bump importlib-metadata from 1.6.0 to 6.0.0
- (PR #463, 2023-03-29) Decrease Dependabot's open pull request limit to 5
- (PR #475, 2023-04-03) Update Editor Configuration
- (PR #474, 2023-04-04) Update Super-Linter configuration
- (PR #218, 2023-04-04)  Add data model for DTE Referencia
- (PR #461, 2023-04-04) Add contributing guidelines

## 0.22.3 (2023-03-13)

- (PR #432, 2023-03-13) chore(deps-dev): Bump isort from 5.10.1 to 5.12.0
- (PR #430, 2023-03-13) chore(deps-dev): Bump flake8 from 4.0.1 to 6.0.0
- (PR #458, 2023-03-13) fix(data.cte): Add missing code `8020` to file used by schema validator

## 0.22.2 (2023-03-10)

- (PR #427, 2023-03-10) chore(deps-dev): Bump black from 22.12.0 to 23.1.0
- (PR #455, 2023-03-10) fix(data.cte): Add missing codes to files used by schema validator

## 0.22.1 (2023-03-09)

- (PR #452, 2023-03-09) fix(data.cte): Add JSON files to MANIFEST.in

## 0.22.0 (2023-03-09)

- (PR #446, 2023-03-07) chore(deps-dev): Bump mypy from 0.991 to 1.0.1
- (PR #449, 2023-03-08) Drop support for Python 3.7
- (PR #442, 2023-03-09) chore: Bump actions/cache from 3.2.5 to 3.2.6
- (PR #440, 2023-03-09) fix(cte): Add default values for known missing codes in SII CTE Form 29

## 0.21.0 (2023-02-28)

- (PR #441, 2023-03-01) Switch CI/CD from CircleCI to GitHub Actions

## 0.20.0 (2023-02-10)

- (PR #403, 2023-01-05) chore(deps): Bump pyopenssl from 22.0.0 to 22.1.0
- (PR #406, 2023-01-05) chore(deps-dev): Bump mypy from 0.982 to 0.991
- (PR #405, 2023-01-23) chore(deps): Bump jsonschema from 4.16.0 to 4.17.3
- (PR #422, 2023-01-26) Add GitHub Dependency Review
- (PR #423, 2023-01-26) Improve GitHub Dependency Review
- (PR #411, 2023-01-26) chore(deps-dev): Bump black from 22.10.0 to 22.12.0
- (PR #425, 2023-01-27) Update Markdownlint configuration
- (PR #410, 2023-02-03) chore(deps): Bump pydantic from 1.10.2 to 1.10.4
- (PR #433, 2023-02-03) Improve type checking
- (PR #434, 2023-02-03) Improve type checking
- (PR #424, 2023-02-06) chore(deps-dev): Bump coverage from 6.5.0 to 7.1.0
- (PR #414, 2023-02-06) chore(deps): Bump lxml from 4.9.1 to 4.9.2
- (PR #420, 2023-02-06) chore(deps): Bump pytz from 2022.6 to 2022.7.1
- (PR #431, 2023-02-06) chore(deps): Bump pyopenssl from 22.1.0 to 23.0.0
- (PR #436, 2023-02-08) chore(deps): Bump cryptography from 38.0.4 to 39.0.1
- (PR #435, 2023-02-08) chore(deps): Bump django from 3.2.16 to 3.2.17
- (PR #426, 2023-02-08) chore(deps): Bump marshmallow from 2.21.0 to 3.19.0

## 0.19.0 (2023-01-05)

- (PR #398, 2022-11-23) fix: Fix Dependabot error pip.….Error: Constraints cannot have extras
- (PR #399, 2022-11-23) chore(deps): Bump cryptography from 38.0.1 to 38.0.3
- (PR #400, 2022-12-05) chore(deps-dev): Bump wheel from 0.37.1 to 0.38.4
- (PR #407, 2022-12-05) chore(deps): Bump cryptography from 38.0.3 to 38.0.4
- (PR #408, 2022-12-06) Enable Python dependency sync check for Python 3.7
- (PR #409, 2022-12-29) chore: Add support for Python 3.10

## 0.18.3 (2022-11-07)

- (PR #346, 2022-09-28) chore(deps-dev): bump mypy from 0.790 to 0.971
- (PR #385, 2022-10-14) chore(deps-dev): Bump mypy from 0.971 to 0.981
- (PR #389, 2022-10-14) chore(deps-dev): Bump coverage from 6.4.4 to 6.5.0
- (PR #386, 2022-10-19) chore(deps): Bump djangorestframework from 3.13.1 to 3.14.0
- (PR #391, 2022-10-19) chore(deps): Bump django from 3.2.15 to 3.2.16
- (PR #394, 2022-11-03) chore(deps-dev): Bump mypy from 0.981 to 0.982
- (PR #395, 2022-11-07) chore(deps): Bump pytz from 2022.2.1 to 2022.6
- (PR #396, 2022-11-07) chore(deps-dev): Bump black from 22.8.0 to 22.10.0
- (PR #375, 2022-11-07) chore(deps): Bump signxml from 2.9.0 to 2.10.1
- (PR #376, 2022-11-07) chore(deps): Bump cryptography from 37.0.4 to 38.0.1

## 0.18.2 (2022-09-26)

- (PR #370, 2022-09-14) chore(deps): Bump pyopenssl from 18.0.0 to 20.0.1
- (PR #373, 2022-09-14) Manage Python dependencies with Pip Tools
- (PR #381, 2022-09-14) fix(deps): Remove Python version constraint for `importlib-metadata`
- (PR #382, 2022-09-14) fix(deps): Workaround for CI issues related to `python-deps-sync-check`
- (PR #380, 2022-09-14) chore(deps): Bump pydantic from 1.10.1 to 1.10.2
- (PR #371, 2022-09-23) chore(deps): Bump jsonschema from 3.2.0 to 4.16.0
- (PR #374, 2022-09-23) chore(deps): Bump defusedxml from 0.6.0 to 0.7.1
- (PR #377, 2022-09-23) chore(deps-dev): Bump codecov from 2.1.11 to 2.1.12
- (PR #378, 2022-09-23) chore(deps-dev): Bump black from 22.1.0 to 22.8.0
- (PR #379, 2022-09-23) chore(deps-dev): Bump coverage from 5.3 to 6.4.4

## 0.18.1 (2022-09-01)

- (PR #362, 2022-08-29) Add information dashboard to readme
- (PR #358, 2022-08-29) chore(deps): bump pytz from 2019.3 to 2022.2.1
- (PR #364, 2022-08-31) chore(deps): bump typing-extensions from 4.0.1 to 4.3.0
- (PR #367, 2022-08-31) chore(deps): Update 'pydantic' from version 1.6.2 to 1.10.1
- (PR #368, 2022-09-01) Add Super-Linter

## 0.18.0 (2022-08-26)

- (PR #343, 2022-07-08) chore: Update Dependabot configuration
- (PR #281, 2022-07-21) build(deps): bump six from 1.15.0 to 1.16.0
- (PR #340, 2022-07-21) build(deps): bump lxml from 4.6.5 to 4.9.1
- (PR #334, 2022-07-22) build(deps): bump certifi from 2020.12.5 to 2022.6.15
- (PR #350, 2022-08-11) chore: Add code owners
- (PR #352, 2022-08-18) chore: Change Dependabot schedule interval from `weekly` to `monthly`
- (PR #338, 2022-08-22) build(deps-dev): bump tox from 3.20.1 to 3.25.1
- (PR #342, 2022-08-22) chore(deps): Bump cryptography from 3.3.2 to 37.0.4
- (PR #286, 2022-08-24) build(deps): bump eight from 1.0.0 to 1.0.1
- (PR #355, 2022-08-24) chore: Add Make tasks for installation
- (PR #332, 2022-08-24) build(deps-dev): bump pkginfo from 1.7.0 to 1.8.3
- (PR #288, 2022-08-24) build(deps): bump pluggy from 0.13.1 to 1.0.0
- (PR #287, 2022-08-25) build(deps): bump wheel from 0.35.1 to 0.37.1
- (PR #356, 2022-08-25) chore(deps): bump marshmallow from 2.19.5 to 2.21.0
- (PR #339, 2022-08-25) build(deps): bump cffi from 1.14.0 to 1.15.1
- (PR #312, 2022-08-25) build(deps-dev): bump tqdm from 4.45.0 to 4.64.0
- (PR #359, 2022-08-25) chore: Add Git commit linter
- (PR #360, 2022-08-26) Update files for Git commit linter

## 0.17.3 (2022-07-04)

- (PR #326, 2022-05-25) chore(requirements-dev): Update package `readme-renderer` to 35.0
- (PR #325, 2022-05-25) chore: Update Python to version 3.8.13

## 0.17.2 (2022-03-31)

- (PR #309, 2022-03-31) fix(rut): `AttributeError` for `GeneralName` object without `type_id`

## 0.17.1 (2022-02-16)

- (PR #269, 2022-02-03) chore: Add tool to automatically sort Python imports
- (PR #274, 2022-02-08) chore: Increase Dependabot's open pull request limit for `pip`
- (PR #273, 2022-02-08) requirements: Update 'Flake8'
- (PR #292, 2022-02-08) chore: Increase Django REST Framework required maximum version to 3.13.x
- (PR #294, 2022-02-09) chore: Simplify organization of Python dependency manifests
- (PR #272, 2022-02-10) Add 'Black' Python code formatter

## 0.17.0 (2022-01-27)

- (PR #251, 2022-01-14) rcv: Convert stdlib dataclasses into pydantic dataclasses
- (PR #267, 2022-01-27) cl_sii.rut: Add method to get the RUT of the certificate holder

## 0.16.1 (2022-01-13)

- (PR #264, 2022-01-13) rtc.xml_utils: Add method to verify signature of AEC XML document

## 0.16.0 (2021-12-24)

- (PR #261, 2021-12-24) chore(rtc.parse): Disable validation that AEC signature cert is loadable
- (PR #253, 2021-12-24) Rename of the enum class for `TipoDte` object

## 0.15.2 (2021-12-23)

- (PR #258, 2021-12-22) chore: Increase lxml lower bound constraint
- (PR #259, 2021-12-23) requirements: Update 'signxml'

## 0.15.1 (2021-12-21)

- (PR #255, 2021-12-21) build(deps): bump lxml from 4.6.3 to 4.6.5

## 0.15.0 (2021-10-20)

- (PR #242, 2021-10-12) rtc: Verify outermost XML signature of SII AECs
- (PR #247, 2021-10-19) config: Update Python version used in CI jobs to 3.8.12
- (PR #245, 2021-10-20) rtc.parse_aec: Convert to `None` the empty optional values in the Caratula

## 0.14.1 (2021-10-12)

- (PR #238, 2021-09-08) rut: Fix RUT clean method to accept '0-0' value
- (PR #241, 2021-09-16) rtc: Make AEC field 'nombre persona autorizada cedente' optional

## 0.14.0 (2021-08-17)

- (PR #234, 2021-08-09) dte: Convert stdlib dataclasses into pydantic dataclasses
- (PR #236, 2021-08-09) DteXmlData: Restore mistakenly deleted regression tests

## 0.13.0 (2021-07-14)

- (PR #228, 2021-06-29) config: Update Python version used in CI jobs to 3.8.10
- (PR #230, 2021-07-09) dte: Convert stdlib dataclass `DteXmlData` into pydantic dataclass

## 0.12.5 (2021-06-15)

- (PR #226, 2021-06-15) requirements: Remove Django upper bound constraint
- (PR #224, 2021-06-15) requirements: Upgrade 'Django'
- (PR #223, 2021-06-08) requirements: Upgrade 'Django'
- (PR #221, 2021-05-14) requirements: Upgrade Pydantic
- (PR #216, 2021-04-22) docs: Add creation of release branch to instructions for new releases
- (PR #213, 2021-04-21) build(deps): bump toml from 0.10.1 to 0.10.2

## 0.12.4 (2021-04-15)

- (PR #195, 2021-04-15) build(deps): bump requests from 2.23.0 to 2.25.1
- (PR #212, 2021-04-14) config: Update Python version used in CI jobs to 3.8.9
- (PR #210, 2021-04-13) rtc.data_models_aec: remove validation for the progression of
  'monto_cesion' across the 'cesiones'
- (PR #207, 2021-04-08) build(deps): bump virtualenv from 20.0.31 to 20.4.3
- (PR #208, 2021-04-08) rtc.data_models_aec: remove match validation for 'fecha_firma_dt' and
  'fecha_cesion_dt'
- (PR #205, 2021-03-26) build(deps): bump lxml from 4.6.2 to 4.6.3
- (PR #204, 2021-03-24) requirements: Upgrade 'Django'

## 0.12.3 (2021-02-26)

- (PR #193, 2021-02-16) requirements: Update dependency graph of base requirements
- (PR #197, 2021-02-26) extras: add 'RutField' for Django forms

## 0.12.2 (2021-02-16)

- (PR #177, 2021-02-16) build(deps): bump lxml from 4.5.0 to 4.6.2
- (PR #188, 2021-02-16) build(deps): bump cryptography from 3.3.1 to 3.3.2
- (PR #176, 2021-02-16) build(deps): bump zipp from 3.1.0 to 3.4.0
- (PR #167, 2021-02-16) build(deps): bump py from 1.8.1 to 1.10.0
- (PR #189, 2021-02-16) build(deps): bump certifi from 2020.4.5.1 to 2020.12.5
- (PR #185, 2021-02-16) build(deps): bump pkginfo from 1.5.0.1 to 1.7.0
- (PR #191, 2021-02-16) build(deps): bump pyrsistent from 0.16.0 to 0.17.3
- (PR #190, 2021-02-16) build(deps): bump typed-ast from 1.4.1 to 1.4.2

## 0.12.1 (2021-02-09)

- (PR #186, 2021-02-09) rtc: Add methods to build CesionL2, CesionL1, and CesionL0 from other data
  models

## 0.12.0 (2021-01-17)

- (PR #179, 2021-01-13) rtc: Add data models for "cesión"
- (PR #181, 2021-01-14) rtc.data_models: Clean up configuration leftovers from tests
- (PR #180, 2021-01-15) rtc: Add data models and parser for AECs

## 0.11.2 (2021-01-11)

- (PR #166, 2020-12-15) requirements: Update 'cryptography'
- (PR #169, 2020-12-16) build(deps): bump coverage from 4.5.3 to 5.3
- (PR #172, 2020-12-22) rtc: Add data model for "Cesiones Periodo" entries
- (PR #173, 2021-01-05) requirements: Add 'pydantic'
- (PR #175, 2021-01-06) libs.tz_utils: Add checks to validate_dt_tz
- (PR #174, 2021-01-07) rtc: Add constants and "cesión" natural keys
- (PR #171, 2021-01-07) build(deps): bump codecov from 2.1.9 to 2.1.11

## 0.11.1 (2020-12-15)

- (PR #140, 2020-09-15) config: Make CI 'dist' job depend on 'test' jobs
- (PR #141, 2020-09-15) config: Update Python version used in CI jobs to 3.8.5
- (PR #137, 2020-09-15) build(deps): bump keyring from 21.2.0 to 21.4.0
- (PR #142, 2020-09-16) build(deps): bump mypy from 0.770 to 0.782
- (PR #145, 2020-09-21) build(deps): bump setuptools from 46.1.3 to 50.3.0
- (PR #146, 2020-09-23) build(deps): bump wheel from 0.34.2 to 0.35.1
- (PR #147, 2020-09-23) requirements: update 'eight' (dependency of 'signxml')
- (PR #149, 2020-09-24) build(deps): bump packaging from 20.3 to 20.4
- (PR #150, 2020-09-28) build(deps): bump virtualenv from 20.0.26 to 20.0.31
- (PR #157, 2020-11-12) requirements: Update 'flake8'
- (PR #158, 2020-11-12) requirements: Update 'signxml'
- (PR #161, 2020-12-15) Add support for Python 3.9
- (PR #160, 2020-12-15) build(deps): bump cryptography from 2.9 to 3.3.1
- (PR #162, 2020-12-15) config: Update Python 3.7 version to 3.7.9
- (PR #156, 2020-12-15) build(deps): bump attrs from 19.3.0 to 20.3.0
- (PR #151, 2020-12-15) build(deps): update djangorestframework requirement
  from <3.11,>=3.10.3 to >=3.10.3,<3.13
- (PR #163, 2020-12-15) requirements: update 'mypy' (test)
- (PR #164, 2020-12-15) requirements: update 'tox' (test)

## 0.11.0 (2020-09-15)

- (PR #138, 2020-09-15) config: Add PyPI package uploading to CI
- (PR #135, 2020-09-15) rtc: Add constants
- (PR #129, 2020-09-14) build(deps): bump toml from 0.10.0 to 0.10.1
- (PR #133, 2020-09-14) build(deps): bump codecov from 2.0.22 to 2.1.9
- (PR #134, 2020-09-10) Add sub-package `rtc`
- (PR #131, 2020-07-22) requirements: update 'signxml'
- (PR #123, 2020-07-13) build(deps): bump six from 1.14.0 to 1.15.0
- (PR #126, 2020-07-10) build(deps): bump virtualenv from 20.0.16 to 20.0.26
- (PR #127, 2020-07-09) config: Verify Python dependency compatibility in CI
- (PR #124, 2020-07-07) build(deps): bump tox from 3.14.6 to 3.16.1
- (PR #122, 2020-07-07) config: Add configuration for GitHub Dependabot

## 0.10.1 (2020-06-08)

- (PR #119, 2020-06-08) Add support for Python 3.8

## 0.10.0 (2020-04-14)

### 0.10.0.a3

- (PR #116, 2020-04-14) rcv.data_models: remove unnecessary fields
- (PR #114, 2020-04-14) rcv.parse_csv: remove param `razon_social` from parse functions

### 0.10.0.a2

- (PR #112, 2020-04-14) data_models: make some fields optional

### 0.10.0.a1

- (PR #110, 2020-04-13) rcv.data_models: move some fields to subclasses
- (PR #109, 2020-04-13) rcv.parse_csv: move code from 'fd-cl-data' in here
- (PR #108, 2020-04-13) dte.data_models: add 'DteXmlData'
- (PR #107, 2020-04-10) requirements: several updates

## 0.9.1 (2020-03-20)

- Fix incorrect version used in the previous release's changelog.

## 0.9.0 (2020-03-20)

- (PR #104, 2020-02-27) cte.f29.parser: Rename custom validator and deserializer parameters
- (PR #97, 2020-02-25) cte: Allow four digit Form 29 codes
- (PR #103, 2020-02-24) cte: Add custom validators and deserializers to parser

## 0.8.4 (2020-02-06)

- (PR #100, 2020-02-06) Update everything for Fyntex, the new owner

## 0.8.3 (2020-02-06)

- (PR #98, 2020-02-05) requirements: several updates (`cryptography`,
  `lxml`, `Django`, `djangorestframework`)
- (PR #91, 2019-10-28) extras.mm_fields: add `RcvPeriodoTributarioField`

## 0.8.2 (2019-10-28)

- (PR #89, 2019-10-28) cte: Move JSON Schema of F29 'datos' object to 'data'
  directory and include it in the distribution packages
- (PR #87, 2019-10-25) cte: add data model, parser and more
- (PR #88, 2019-10-23) update config file for "deepsource"
- (PR #86, 2019-10-08) add config file for "deepsource"

## 0.8.1 (2019-09-25)

- (PR #83, 2019-09-12) rcv.parse_csv: remove whitespace from "razon social"

## 0.8.0 (2019-09-03)

- (PR #80, 2019-09-03) dte: Allow negative "monto total" when DTE type is "liquidación-factura
  electrónica"

## 0.7.4 (2019-08-08)

- (PR #76, 2019-08-01) dte: misc data models and enum improvements

## 0.7.3 (2019-07-09)

- (PR #74, 2019-07-09) requirements: update main packages

## 0.7.2 (2019-07-08)

- (PR #72, 2019-07-08) extras: Handle `str`-typed RUTs in Django `RutField.get_prep_value()`
- (PR #70, 2019-07-05) rut: Add less-than and greater-than methods
- (PR #71, 2019-07-05) rut: Strip leading zeros from RUTs
- (PR #69, 2019-07-02) libs.tz_utils: Fix setting of time zone information in datetimes
- (PR #68, 2019-06-27) requirements: update all those for 'release' and 'test'

## 0.7.1 (2019-06-20)

- (PR #66, 2019-06-20) rcv.parse_csv: detect invalid value of "razon social"

## 0.7.0 (2019-06-13)

- (PR #63, 2019-06-13) rcv.parse_csv: significant changes to parse functions
- (PR #62, 2019-06-13) libs: add module `io_utils`
- (PR #61, 2019-06-12) rcv: add data models, constants and more
- (PR #60, 2019-06-12) libs.tz_utils: misc
- (PR #59, 2019-05-31) rcv.parse_csv: add `parse_rcv_compra_X_csv_file`

## 0.6.5 (2019-05-29)

- (PR #57, 2019-05-29) libs.xml_utils: minor fix to `verify_xml_signature`

## 0.6.4 (2019-05-29)

- (PR #55, 2019-05-29) libs.xml_utils: add `verify_xml_signature`
- (PR #54, 2019-05-28) libs: add module `dataclass_utils`

## 0.6.3 (2019-05-24)

- (PR #52, 2019-05-24) rcv: add module `parse_csv`
- (PR #51, 2019-05-24) libs: add module `rows_processing`
- (PR #50, 2019-05-24) libs: add module `csv_utils`
- (PR #49, 2019-05-24) libs.mm_utils: add `validate_no_unexpected_input_fields`
- (PR #48, 2019-05-24) dte.data_models: add `DteDataL2.as_dte_data_l1`

## 0.6.2 (2019-05-15)

- (PR #45, 2019-05-15) libs.encoding_utils: improve `clean_base64`
- (PR #44, 2019-05-15) dte.parse: fix edge case in `parse_dte_xml`

## 0.6.1 (2019-05-08)

- (PR #40, 2019-05-08) dte.data_models: fix bug in `DteDataL2`

## 0.6.0 (2019-05-08)

Includes backwards-incompatible changes to data model `DteDataL2`.

- (PR #38, 2019-05-08) dte.data_models: alter field `DteDataL2.signature_x509_cert_pem`
- (PR #37, 2019-05-08) dte.data_models: alter field `DteDataL2.firma_documento_dt_naive`
- (PR #36, 2019-05-08) libs.crypto_utils: add functions
- (PR #35, 2019-05-07) libs.tz_utils: minor improvements
- (PR #34, 2019-05-06) docs: Fix `bumpversion` command

## 0.5.1 (2019-05-03)

- (PR #32, 2019-05-03) Requirements: updates and package upper-bounds

## 0.5.0 (2019-04-25)

- (PR #29, 2019-04-25) dte.data_models: modify new fields of `DteDataL2`
- (PR #28, 2019-04-25) libs: add module `crypto_utils`
- (PR #27, 2019-04-25) libs: add module `encoding_utils`
- (PR #26, 2019-04-25) test_data: add files
- (PR #25, 2019-04-25) libs.xml_utils: fix class alias `XmlElementTree`
- (PR #24, 2019-04-25) requirements: add and update packages
- (PR #22, 2019-04-24) test_data: add files
- (PR #21, 2019-04-22) dte: many improvements
- (PR #20, 2019-04-22) libs.xml_utils: misc improvements
- (PR #19, 2019-04-22) test_data: fix and add real SII DTE & AEC XML files
- (PR #18, 2019-04-22) data.ref: add XML schemas for "Cesion" (RTC)

## 0.4.0 (2019-04-16)

- (PR #16, 2019-04-16) dte.parse: change and improve `clean_dte_xml`
- (PR #14, 2019-04-09) data.ref: merge XML schemas dirs
- (PR #13, 2019-04-09) extras: add Marshmallow field for a DTE's "tipo DTE"

## 0.3.0 (2019-04-05)

- (PR #11, 2019-04-05) dte: add module `parse`
- (PR #10, 2019-04-05) dte: add module `data_models`
- (PR #9, 2019-04-05) libs: add module `xml_utils`
- (PR #8, 2019-04-05) add sub-package `rcv`

## 0.2.0 (2019-04-04)

- (PR #6, 2019-04-04) data.ref: add XML schemas of "factura electrónica"
- (PR #5, 2019-04-04) extras: add 'RutField' for Django models, DRF and MM
- (PR #4, 2019-04-04) Config CircleCI

## 0.1.0 (2019-04-04)

- (PR #2, 2019-04-04) Add class and constants for RUT
- (PR #1, 2019-04-04) Whole setup for a Python package/library




%package help
Summary:	Development documents and examples for cl-sii
Provides:	python3-cl-sii-doc
%description help
# cl-sii Python lib

[![PyPI Package Version](https://img.shields.io/pypi/v/cl-sii)](https://pypi.org/project/cl-sii/)
[![Python Versions](https://img.shields.io/pypi/pyversions/cl-sii)](https://pypi.org/project/cl-sii/)
[![License](https://img.shields.io/pypi/l/cl-sii)](https://pypi.org/project/cl-sii/)

Python library for Servicio de Impuestos Internos (SII) of Chile.

## Documentation

The full documentation is at <https://lib-cl-sii-python.readthedocs.io>.

## Dashboard

### Development

| VCS Branch | Deployment Environment | VCS Repository | CI/CD Status |
| ---------- | ---------------------- | -------------- | ------------ |
| `develop` | Staging | [GitHub](https://github.com/fyntex/lib-cl-sii-python/tree/develop) | [![GitHub Actions](https://github.com/fyntex/lib-cl-sii-python/actions/workflows/ci-cd.yaml/badge.svg?branch=develop)](https://github.com/fyntex/lib-cl-sii-python/actions/workflows/ci-cd.yaml?query=branch:develop) |
| `master` | Production | [GitHub](https://github.com/fyntex/lib-cl-sii-python/tree/master) | [![GitHub Actions](https://github.com/fyntex/lib-cl-sii-python/actions/workflows/ci-cd.yaml/badge.svg?branch=master)](https://github.com/fyntex/lib-cl-sii-python/actions/workflows/ci-cd.yaml?query=branch:master) |

| Code Coverage | Code Climate | Documentation | Project Analysis |
| ------------- | ------------ | ------------- | ---------------- |
| [![Codecov](https://codecov.io/gh/fyntex/lib-cl-sii-python/branch/develop/graph/badge.svg?token=VdwPUEUzzQ)](https://codecov.io/gh/fyntex/lib-cl-sii-python) | [![Maintainability](https://api.codeclimate.com/v1/badges/c4e8a9b023310ff8c276/maintainability)](https://codeclimate.com/github/fyntex/lib-cl-sii-python/maintainability) | [![Read the Docs](https://readthedocs.org/projects/lib-cl-sii-python/badge/)](https://readthedocs.org/projects/lib-cl-sii-python/) | [Open Source Insights](https://deps.dev/pypi/cl-sii) |

### Hosting

| Deployment Environment | Python Package Registry |
| ---------------------- | ----------------------- |
| Production | [PyPI](https://pypi.org/project/cl-sii/) |

## Supported Python versions

Only Python 3.8, 3.9 and 3.10. Python 3.7 and below will not work because we use some features
introduced in Python 3.8.

## Quickstart

Install package::

```sh
pip install cl-sii
```

And TODO

## Features

- TODO

### Tests

Requirements::

```sh
make install-dev
```

Run test suite for all supported Python versions and run tools for
code style analysis, static type check, etc::

```sh
make test-all
make lint
```

Check code coverage of tests::

```sh
make test-coverage
make test-coverage-report-console
```


# History

## 0.23.0 (2023-04-05)

- (PR #443, 2023-03-13) chore(deps-dev): Bump types-pytz from 2022.7.1.0 to 2022.7.1.2
- (PR #445, 2023-03-13) chore(deps-dev): Bump types-jsonschema from 4.17.0.3 to 4.17.0.6
- (PR #428, 2023-03-13) chore(deps): Bump signxml from 2.10.1 to 3.1.0
- (PR #444, 2023-03-13) chore(deps-dev): Bump types-pyopenssl from 23.0.0.2 to 23.0.0.4
- (PR #462, 2023-03-14) Update minimum version of `signxml` to `3.1.0`
- (PR #429, 2023-03-14) chore(deps): Bump importlib-metadata from 1.6.0 to 6.0.0
- (PR #463, 2023-03-29) Decrease Dependabot's open pull request limit to 5
- (PR #475, 2023-04-03) Update Editor Configuration
- (PR #474, 2023-04-04) Update Super-Linter configuration
- (PR #218, 2023-04-04)  Add data model for DTE Referencia
- (PR #461, 2023-04-04) Add contributing guidelines

## 0.22.3 (2023-03-13)

- (PR #432, 2023-03-13) chore(deps-dev): Bump isort from 5.10.1 to 5.12.0
- (PR #430, 2023-03-13) chore(deps-dev): Bump flake8 from 4.0.1 to 6.0.0
- (PR #458, 2023-03-13) fix(data.cte): Add missing code `8020` to file used by schema validator

## 0.22.2 (2023-03-10)

- (PR #427, 2023-03-10) chore(deps-dev): Bump black from 22.12.0 to 23.1.0
- (PR #455, 2023-03-10) fix(data.cte): Add missing codes to files used by schema validator

## 0.22.1 (2023-03-09)

- (PR #452, 2023-03-09) fix(data.cte): Add JSON files to MANIFEST.in

## 0.22.0 (2023-03-09)

- (PR #446, 2023-03-07) chore(deps-dev): Bump mypy from 0.991 to 1.0.1
- (PR #449, 2023-03-08) Drop support for Python 3.7
- (PR #442, 2023-03-09) chore: Bump actions/cache from 3.2.5 to 3.2.6
- (PR #440, 2023-03-09) fix(cte): Add default values for known missing codes in SII CTE Form 29

## 0.21.0 (2023-02-28)

- (PR #441, 2023-03-01) Switch CI/CD from CircleCI to GitHub Actions

## 0.20.0 (2023-02-10)

- (PR #403, 2023-01-05) chore(deps): Bump pyopenssl from 22.0.0 to 22.1.0
- (PR #406, 2023-01-05) chore(deps-dev): Bump mypy from 0.982 to 0.991
- (PR #405, 2023-01-23) chore(deps): Bump jsonschema from 4.16.0 to 4.17.3
- (PR #422, 2023-01-26) Add GitHub Dependency Review
- (PR #423, 2023-01-26) Improve GitHub Dependency Review
- (PR #411, 2023-01-26) chore(deps-dev): Bump black from 22.10.0 to 22.12.0
- (PR #425, 2023-01-27) Update Markdownlint configuration
- (PR #410, 2023-02-03) chore(deps): Bump pydantic from 1.10.2 to 1.10.4
- (PR #433, 2023-02-03) Improve type checking
- (PR #434, 2023-02-03) Improve type checking
- (PR #424, 2023-02-06) chore(deps-dev): Bump coverage from 6.5.0 to 7.1.0
- (PR #414, 2023-02-06) chore(deps): Bump lxml from 4.9.1 to 4.9.2
- (PR #420, 2023-02-06) chore(deps): Bump pytz from 2022.6 to 2022.7.1
- (PR #431, 2023-02-06) chore(deps): Bump pyopenssl from 22.1.0 to 23.0.0
- (PR #436, 2023-02-08) chore(deps): Bump cryptography from 38.0.4 to 39.0.1
- (PR #435, 2023-02-08) chore(deps): Bump django from 3.2.16 to 3.2.17
- (PR #426, 2023-02-08) chore(deps): Bump marshmallow from 2.21.0 to 3.19.0

## 0.19.0 (2023-01-05)

- (PR #398, 2022-11-23) fix: Fix Dependabot error pip.….Error: Constraints cannot have extras
- (PR #399, 2022-11-23) chore(deps): Bump cryptography from 38.0.1 to 38.0.3
- (PR #400, 2022-12-05) chore(deps-dev): Bump wheel from 0.37.1 to 0.38.4
- (PR #407, 2022-12-05) chore(deps): Bump cryptography from 38.0.3 to 38.0.4
- (PR #408, 2022-12-06) Enable Python dependency sync check for Python 3.7
- (PR #409, 2022-12-29) chore: Add support for Python 3.10

## 0.18.3 (2022-11-07)

- (PR #346, 2022-09-28) chore(deps-dev): bump mypy from 0.790 to 0.971
- (PR #385, 2022-10-14) chore(deps-dev): Bump mypy from 0.971 to 0.981
- (PR #389, 2022-10-14) chore(deps-dev): Bump coverage from 6.4.4 to 6.5.0
- (PR #386, 2022-10-19) chore(deps): Bump djangorestframework from 3.13.1 to 3.14.0
- (PR #391, 2022-10-19) chore(deps): Bump django from 3.2.15 to 3.2.16
- (PR #394, 2022-11-03) chore(deps-dev): Bump mypy from 0.981 to 0.982
- (PR #395, 2022-11-07) chore(deps): Bump pytz from 2022.2.1 to 2022.6
- (PR #396, 2022-11-07) chore(deps-dev): Bump black from 22.8.0 to 22.10.0
- (PR #375, 2022-11-07) chore(deps): Bump signxml from 2.9.0 to 2.10.1
- (PR #376, 2022-11-07) chore(deps): Bump cryptography from 37.0.4 to 38.0.1

## 0.18.2 (2022-09-26)

- (PR #370, 2022-09-14) chore(deps): Bump pyopenssl from 18.0.0 to 20.0.1
- (PR #373, 2022-09-14) Manage Python dependencies with Pip Tools
- (PR #381, 2022-09-14) fix(deps): Remove Python version constraint for `importlib-metadata`
- (PR #382, 2022-09-14) fix(deps): Workaround for CI issues related to `python-deps-sync-check`
- (PR #380, 2022-09-14) chore(deps): Bump pydantic from 1.10.1 to 1.10.2
- (PR #371, 2022-09-23) chore(deps): Bump jsonschema from 3.2.0 to 4.16.0
- (PR #374, 2022-09-23) chore(deps): Bump defusedxml from 0.6.0 to 0.7.1
- (PR #377, 2022-09-23) chore(deps-dev): Bump codecov from 2.1.11 to 2.1.12
- (PR #378, 2022-09-23) chore(deps-dev): Bump black from 22.1.0 to 22.8.0
- (PR #379, 2022-09-23) chore(deps-dev): Bump coverage from 5.3 to 6.4.4

## 0.18.1 (2022-09-01)

- (PR #362, 2022-08-29) Add information dashboard to readme
- (PR #358, 2022-08-29) chore(deps): bump pytz from 2019.3 to 2022.2.1
- (PR #364, 2022-08-31) chore(deps): bump typing-extensions from 4.0.1 to 4.3.0
- (PR #367, 2022-08-31) chore(deps): Update 'pydantic' from version 1.6.2 to 1.10.1
- (PR #368, 2022-09-01) Add Super-Linter

## 0.18.0 (2022-08-26)

- (PR #343, 2022-07-08) chore: Update Dependabot configuration
- (PR #281, 2022-07-21) build(deps): bump six from 1.15.0 to 1.16.0
- (PR #340, 2022-07-21) build(deps): bump lxml from 4.6.5 to 4.9.1
- (PR #334, 2022-07-22) build(deps): bump certifi from 2020.12.5 to 2022.6.15
- (PR #350, 2022-08-11) chore: Add code owners
- (PR #352, 2022-08-18) chore: Change Dependabot schedule interval from `weekly` to `monthly`
- (PR #338, 2022-08-22) build(deps-dev): bump tox from 3.20.1 to 3.25.1
- (PR #342, 2022-08-22) chore(deps): Bump cryptography from 3.3.2 to 37.0.4
- (PR #286, 2022-08-24) build(deps): bump eight from 1.0.0 to 1.0.1
- (PR #355, 2022-08-24) chore: Add Make tasks for installation
- (PR #332, 2022-08-24) build(deps-dev): bump pkginfo from 1.7.0 to 1.8.3
- (PR #288, 2022-08-24) build(deps): bump pluggy from 0.13.1 to 1.0.0
- (PR #287, 2022-08-25) build(deps): bump wheel from 0.35.1 to 0.37.1
- (PR #356, 2022-08-25) chore(deps): bump marshmallow from 2.19.5 to 2.21.0
- (PR #339, 2022-08-25) build(deps): bump cffi from 1.14.0 to 1.15.1
- (PR #312, 2022-08-25) build(deps-dev): bump tqdm from 4.45.0 to 4.64.0
- (PR #359, 2022-08-25) chore: Add Git commit linter
- (PR #360, 2022-08-26) Update files for Git commit linter

## 0.17.3 (2022-07-04)

- (PR #326, 2022-05-25) chore(requirements-dev): Update package `readme-renderer` to 35.0
- (PR #325, 2022-05-25) chore: Update Python to version 3.8.13

## 0.17.2 (2022-03-31)

- (PR #309, 2022-03-31) fix(rut): `AttributeError` for `GeneralName` object without `type_id`

## 0.17.1 (2022-02-16)

- (PR #269, 2022-02-03) chore: Add tool to automatically sort Python imports
- (PR #274, 2022-02-08) chore: Increase Dependabot's open pull request limit for `pip`
- (PR #273, 2022-02-08) requirements: Update 'Flake8'
- (PR #292, 2022-02-08) chore: Increase Django REST Framework required maximum version to 3.13.x
- (PR #294, 2022-02-09) chore: Simplify organization of Python dependency manifests
- (PR #272, 2022-02-10) Add 'Black' Python code formatter

## 0.17.0 (2022-01-27)

- (PR #251, 2022-01-14) rcv: Convert stdlib dataclasses into pydantic dataclasses
- (PR #267, 2022-01-27) cl_sii.rut: Add method to get the RUT of the certificate holder

## 0.16.1 (2022-01-13)

- (PR #264, 2022-01-13) rtc.xml_utils: Add method to verify signature of AEC XML document

## 0.16.0 (2021-12-24)

- (PR #261, 2021-12-24) chore(rtc.parse): Disable validation that AEC signature cert is loadable
- (PR #253, 2021-12-24) Rename of the enum class for `TipoDte` object

## 0.15.2 (2021-12-23)

- (PR #258, 2021-12-22) chore: Increase lxml lower bound constraint
- (PR #259, 2021-12-23) requirements: Update 'signxml'

## 0.15.1 (2021-12-21)

- (PR #255, 2021-12-21) build(deps): bump lxml from 4.6.3 to 4.6.5

## 0.15.0 (2021-10-20)

- (PR #242, 2021-10-12) rtc: Verify outermost XML signature of SII AECs
- (PR #247, 2021-10-19) config: Update Python version used in CI jobs to 3.8.12
- (PR #245, 2021-10-20) rtc.parse_aec: Convert to `None` the empty optional values in the Caratula

## 0.14.1 (2021-10-12)

- (PR #238, 2021-09-08) rut: Fix RUT clean method to accept '0-0' value
- (PR #241, 2021-09-16) rtc: Make AEC field 'nombre persona autorizada cedente' optional

## 0.14.0 (2021-08-17)

- (PR #234, 2021-08-09) dte: Convert stdlib dataclasses into pydantic dataclasses
- (PR #236, 2021-08-09) DteXmlData: Restore mistakenly deleted regression tests

## 0.13.0 (2021-07-14)

- (PR #228, 2021-06-29) config: Update Python version used in CI jobs to 3.8.10
- (PR #230, 2021-07-09) dte: Convert stdlib dataclass `DteXmlData` into pydantic dataclass

## 0.12.5 (2021-06-15)

- (PR #226, 2021-06-15) requirements: Remove Django upper bound constraint
- (PR #224, 2021-06-15) requirements: Upgrade 'Django'
- (PR #223, 2021-06-08) requirements: Upgrade 'Django'
- (PR #221, 2021-05-14) requirements: Upgrade Pydantic
- (PR #216, 2021-04-22) docs: Add creation of release branch to instructions for new releases
- (PR #213, 2021-04-21) build(deps): bump toml from 0.10.1 to 0.10.2

## 0.12.4 (2021-04-15)

- (PR #195, 2021-04-15) build(deps): bump requests from 2.23.0 to 2.25.1
- (PR #212, 2021-04-14) config: Update Python version used in CI jobs to 3.8.9
- (PR #210, 2021-04-13) rtc.data_models_aec: remove validation for the progression of
  'monto_cesion' across the 'cesiones'
- (PR #207, 2021-04-08) build(deps): bump virtualenv from 20.0.31 to 20.4.3
- (PR #208, 2021-04-08) rtc.data_models_aec: remove match validation for 'fecha_firma_dt' and
  'fecha_cesion_dt'
- (PR #205, 2021-03-26) build(deps): bump lxml from 4.6.2 to 4.6.3
- (PR #204, 2021-03-24) requirements: Upgrade 'Django'

## 0.12.3 (2021-02-26)

- (PR #193, 2021-02-16) requirements: Update dependency graph of base requirements
- (PR #197, 2021-02-26) extras: add 'RutField' for Django forms

## 0.12.2 (2021-02-16)

- (PR #177, 2021-02-16) build(deps): bump lxml from 4.5.0 to 4.6.2
- (PR #188, 2021-02-16) build(deps): bump cryptography from 3.3.1 to 3.3.2
- (PR #176, 2021-02-16) build(deps): bump zipp from 3.1.0 to 3.4.0
- (PR #167, 2021-02-16) build(deps): bump py from 1.8.1 to 1.10.0
- (PR #189, 2021-02-16) build(deps): bump certifi from 2020.4.5.1 to 2020.12.5
- (PR #185, 2021-02-16) build(deps): bump pkginfo from 1.5.0.1 to 1.7.0
- (PR #191, 2021-02-16) build(deps): bump pyrsistent from 0.16.0 to 0.17.3
- (PR #190, 2021-02-16) build(deps): bump typed-ast from 1.4.1 to 1.4.2

## 0.12.1 (2021-02-09)

- (PR #186, 2021-02-09) rtc: Add methods to build CesionL2, CesionL1, and CesionL0 from other data
  models

## 0.12.0 (2021-01-17)

- (PR #179, 2021-01-13) rtc: Add data models for "cesión"
- (PR #181, 2021-01-14) rtc.data_models: Clean up configuration leftovers from tests
- (PR #180, 2021-01-15) rtc: Add data models and parser for AECs

## 0.11.2 (2021-01-11)

- (PR #166, 2020-12-15) requirements: Update 'cryptography'
- (PR #169, 2020-12-16) build(deps): bump coverage from 4.5.3 to 5.3
- (PR #172, 2020-12-22) rtc: Add data model for "Cesiones Periodo" entries
- (PR #173, 2021-01-05) requirements: Add 'pydantic'
- (PR #175, 2021-01-06) libs.tz_utils: Add checks to validate_dt_tz
- (PR #174, 2021-01-07) rtc: Add constants and "cesión" natural keys
- (PR #171, 2021-01-07) build(deps): bump codecov from 2.1.9 to 2.1.11

## 0.11.1 (2020-12-15)

- (PR #140, 2020-09-15) config: Make CI 'dist' job depend on 'test' jobs
- (PR #141, 2020-09-15) config: Update Python version used in CI jobs to 3.8.5
- (PR #137, 2020-09-15) build(deps): bump keyring from 21.2.0 to 21.4.0
- (PR #142, 2020-09-16) build(deps): bump mypy from 0.770 to 0.782
- (PR #145, 2020-09-21) build(deps): bump setuptools from 46.1.3 to 50.3.0
- (PR #146, 2020-09-23) build(deps): bump wheel from 0.34.2 to 0.35.1
- (PR #147, 2020-09-23) requirements: update 'eight' (dependency of 'signxml')
- (PR #149, 2020-09-24) build(deps): bump packaging from 20.3 to 20.4
- (PR #150, 2020-09-28) build(deps): bump virtualenv from 20.0.26 to 20.0.31
- (PR #157, 2020-11-12) requirements: Update 'flake8'
- (PR #158, 2020-11-12) requirements: Update 'signxml'
- (PR #161, 2020-12-15) Add support for Python 3.9
- (PR #160, 2020-12-15) build(deps): bump cryptography from 2.9 to 3.3.1
- (PR #162, 2020-12-15) config: Update Python 3.7 version to 3.7.9
- (PR #156, 2020-12-15) build(deps): bump attrs from 19.3.0 to 20.3.0
- (PR #151, 2020-12-15) build(deps): update djangorestframework requirement
  from <3.11,>=3.10.3 to >=3.10.3,<3.13
- (PR #163, 2020-12-15) requirements: update 'mypy' (test)
- (PR #164, 2020-12-15) requirements: update 'tox' (test)

## 0.11.0 (2020-09-15)

- (PR #138, 2020-09-15) config: Add PyPI package uploading to CI
- (PR #135, 2020-09-15) rtc: Add constants
- (PR #129, 2020-09-14) build(deps): bump toml from 0.10.0 to 0.10.1
- (PR #133, 2020-09-14) build(deps): bump codecov from 2.0.22 to 2.1.9
- (PR #134, 2020-09-10) Add sub-package `rtc`
- (PR #131, 2020-07-22) requirements: update 'signxml'
- (PR #123, 2020-07-13) build(deps): bump six from 1.14.0 to 1.15.0
- (PR #126, 2020-07-10) build(deps): bump virtualenv from 20.0.16 to 20.0.26
- (PR #127, 2020-07-09) config: Verify Python dependency compatibility in CI
- (PR #124, 2020-07-07) build(deps): bump tox from 3.14.6 to 3.16.1
- (PR #122, 2020-07-07) config: Add configuration for GitHub Dependabot

## 0.10.1 (2020-06-08)

- (PR #119, 2020-06-08) Add support for Python 3.8

## 0.10.0 (2020-04-14)

### 0.10.0.a3

- (PR #116, 2020-04-14) rcv.data_models: remove unnecessary fields
- (PR #114, 2020-04-14) rcv.parse_csv: remove param `razon_social` from parse functions

### 0.10.0.a2

- (PR #112, 2020-04-14) data_models: make some fields optional

### 0.10.0.a1

- (PR #110, 2020-04-13) rcv.data_models: move some fields to subclasses
- (PR #109, 2020-04-13) rcv.parse_csv: move code from 'fd-cl-data' in here
- (PR #108, 2020-04-13) dte.data_models: add 'DteXmlData'
- (PR #107, 2020-04-10) requirements: several updates

## 0.9.1 (2020-03-20)

- Fix incorrect version used in the previous release's changelog.

## 0.9.0 (2020-03-20)

- (PR #104, 2020-02-27) cte.f29.parser: Rename custom validator and deserializer parameters
- (PR #97, 2020-02-25) cte: Allow four digit Form 29 codes
- (PR #103, 2020-02-24) cte: Add custom validators and deserializers to parser

## 0.8.4 (2020-02-06)

- (PR #100, 2020-02-06) Update everything for Fyntex, the new owner

## 0.8.3 (2020-02-06)

- (PR #98, 2020-02-05) requirements: several updates (`cryptography`,
  `lxml`, `Django`, `djangorestframework`)
- (PR #91, 2019-10-28) extras.mm_fields: add `RcvPeriodoTributarioField`

## 0.8.2 (2019-10-28)

- (PR #89, 2019-10-28) cte: Move JSON Schema of F29 'datos' object to 'data'
  directory and include it in the distribution packages
- (PR #87, 2019-10-25) cte: add data model, parser and more
- (PR #88, 2019-10-23) update config file for "deepsource"
- (PR #86, 2019-10-08) add config file for "deepsource"

## 0.8.1 (2019-09-25)

- (PR #83, 2019-09-12) rcv.parse_csv: remove whitespace from "razon social"

## 0.8.0 (2019-09-03)

- (PR #80, 2019-09-03) dte: Allow negative "monto total" when DTE type is "liquidación-factura
  electrónica"

## 0.7.4 (2019-08-08)

- (PR #76, 2019-08-01) dte: misc data models and enum improvements

## 0.7.3 (2019-07-09)

- (PR #74, 2019-07-09) requirements: update main packages

## 0.7.2 (2019-07-08)

- (PR #72, 2019-07-08) extras: Handle `str`-typed RUTs in Django `RutField.get_prep_value()`
- (PR #70, 2019-07-05) rut: Add less-than and greater-than methods
- (PR #71, 2019-07-05) rut: Strip leading zeros from RUTs
- (PR #69, 2019-07-02) libs.tz_utils: Fix setting of time zone information in datetimes
- (PR #68, 2019-06-27) requirements: update all those for 'release' and 'test'

## 0.7.1 (2019-06-20)

- (PR #66, 2019-06-20) rcv.parse_csv: detect invalid value of "razon social"

## 0.7.0 (2019-06-13)

- (PR #63, 2019-06-13) rcv.parse_csv: significant changes to parse functions
- (PR #62, 2019-06-13) libs: add module `io_utils`
- (PR #61, 2019-06-12) rcv: add data models, constants and more
- (PR #60, 2019-06-12) libs.tz_utils: misc
- (PR #59, 2019-05-31) rcv.parse_csv: add `parse_rcv_compra_X_csv_file`

## 0.6.5 (2019-05-29)

- (PR #57, 2019-05-29) libs.xml_utils: minor fix to `verify_xml_signature`

## 0.6.4 (2019-05-29)

- (PR #55, 2019-05-29) libs.xml_utils: add `verify_xml_signature`
- (PR #54, 2019-05-28) libs: add module `dataclass_utils`

## 0.6.3 (2019-05-24)

- (PR #52, 2019-05-24) rcv: add module `parse_csv`
- (PR #51, 2019-05-24) libs: add module `rows_processing`
- (PR #50, 2019-05-24) libs: add module `csv_utils`
- (PR #49, 2019-05-24) libs.mm_utils: add `validate_no_unexpected_input_fields`
- (PR #48, 2019-05-24) dte.data_models: add `DteDataL2.as_dte_data_l1`

## 0.6.2 (2019-05-15)

- (PR #45, 2019-05-15) libs.encoding_utils: improve `clean_base64`
- (PR #44, 2019-05-15) dte.parse: fix edge case in `parse_dte_xml`

## 0.6.1 (2019-05-08)

- (PR #40, 2019-05-08) dte.data_models: fix bug in `DteDataL2`

## 0.6.0 (2019-05-08)

Includes backwards-incompatible changes to data model `DteDataL2`.

- (PR #38, 2019-05-08) dte.data_models: alter field `DteDataL2.signature_x509_cert_pem`
- (PR #37, 2019-05-08) dte.data_models: alter field `DteDataL2.firma_documento_dt_naive`
- (PR #36, 2019-05-08) libs.crypto_utils: add functions
- (PR #35, 2019-05-07) libs.tz_utils: minor improvements
- (PR #34, 2019-05-06) docs: Fix `bumpversion` command

## 0.5.1 (2019-05-03)

- (PR #32, 2019-05-03) Requirements: updates and package upper-bounds

## 0.5.0 (2019-04-25)

- (PR #29, 2019-04-25) dte.data_models: modify new fields of `DteDataL2`
- (PR #28, 2019-04-25) libs: add module `crypto_utils`
- (PR #27, 2019-04-25) libs: add module `encoding_utils`
- (PR #26, 2019-04-25) test_data: add files
- (PR #25, 2019-04-25) libs.xml_utils: fix class alias `XmlElementTree`
- (PR #24, 2019-04-25) requirements: add and update packages
- (PR #22, 2019-04-24) test_data: add files
- (PR #21, 2019-04-22) dte: many improvements
- (PR #20, 2019-04-22) libs.xml_utils: misc improvements
- (PR #19, 2019-04-22) test_data: fix and add real SII DTE & AEC XML files
- (PR #18, 2019-04-22) data.ref: add XML schemas for "Cesion" (RTC)

## 0.4.0 (2019-04-16)

- (PR #16, 2019-04-16) dte.parse: change and improve `clean_dte_xml`
- (PR #14, 2019-04-09) data.ref: merge XML schemas dirs
- (PR #13, 2019-04-09) extras: add Marshmallow field for a DTE's "tipo DTE"

## 0.3.0 (2019-04-05)

- (PR #11, 2019-04-05) dte: add module `parse`
- (PR #10, 2019-04-05) dte: add module `data_models`
- (PR #9, 2019-04-05) libs: add module `xml_utils`
- (PR #8, 2019-04-05) add sub-package `rcv`

## 0.2.0 (2019-04-04)

- (PR #6, 2019-04-04) data.ref: add XML schemas of "factura electrónica"
- (PR #5, 2019-04-04) extras: add 'RutField' for Django models, DRF and MM
- (PR #4, 2019-04-04) Config CircleCI

## 0.1.0 (2019-04-04)

- (PR #2, 2019-04-04) Add class and constants for RUT
- (PR #1, 2019-04-04) Whole setup for a Python package/library




%prep
%autosetup -n cl-sii-0.23.0

%build
%py3_build

%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
	find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
	find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
	find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
	find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
	find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .

%files -n python3-cl-sii -f filelist.lst
%dir %{python3_sitelib}/*

%files help -f doclist.lst
%{_docdir}/*

%changelog
* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 0.23.0-1
- Package Spec generated