summaryrefslogtreecommitdiff
path: root/sandbox/infrastructure/releasing-log.txt
blob: 4d808f021b6d445b648aa3dfa5aa37f0dd253e94 (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
Releasing
=========

:Contact: grubert@users.sourceforge.net, docutils-develop@users.sourceforge.net
:Revision: $Revision$
:Date: $Date$
:Copyright: This document has been placed in the public domain.

Notes on what happend while releasing.

Release 0.20.1 (2023-05-17)
===========================

(follow docs/dev/release.txt)

* Make a clean checkout of svn.code.sf.net/p/docutils/code/trunk/docutils
  to avoid having development files in the released packages.

* Update RELEASE-NOTES.txt add section ``Release <version>``.

  Consult HISTORY.txt for important changes.

* Change HISTORY.txt title ``Changes Since <previous release>`` to ``Release <version>``.

* Set new version (replace ``<version>`` with the new version indentifier
  and ``<docutils-repository-root>`` with the dir containing
  ``HISTORY.txt`` and ``RELEASE-NOTES.txt``)::

      cd <docutils-repository-root>
      ../sandbox/infrastructure/set_version.sh <version>

  Check what was changed by ``set_version.sh``.

  Run tests ::

    export PYTHONWARNINGS=default
    python3 test/alltests.py

  or use tox.
  In case of errors, clearing ``docutils/__pycache__`` may help.

  ``export PYTHONWARNINGS=default`` prints DeprecationWarnings in python3.

* Generate wheel and source-distribution::

    python3.11 setup.py sdist
    python3.11 setup.py bdist_wheel

* check sdist for html-files in docutils.egg-info.
* Upload wheel and source to test.pypi::

    python3.11 -m twine upload --repository docutils_testpypi dist/docutils-0.20.1*

  *docutils_testpypi* is a repository configured in .pypirc.

  Test in venv. NOTE use --pre for prereleases::

    python3 -m venv du3 ; cd du3
    export PYTHONPATH= ; . bin/activate

    python -m pip install --index-url https://test.pypi.org/simple/ --pre --no-deps docutils

    cp -Lr ../docutils-code/docutils/test .
    python test/alltests.py

    As expected HISTORY fails because it is not in the package.

    python -m pip uninstall docutils
    deactivate ; cd .. ; rm -r du3

* Commit changes ... the changed version number.

* tag #.# (Note: only directory docutils is copied)::

    svn copy svn+ssh://grubert@svn.code.sf.net/p/docutils/code/trunk/docutils \
             svn+ssh://grubert@svn.code.sf.net/p/docutils/code/tags/docutils-#.# \
             -m "tagging release #.#"

* Update your source directory.

  Nothing changed.

* Now upload the same files to pypi::

    python3.11 -m twine upload --repository docutils_pypi dist/docutils-0.20.1*

* Remove previous package from local cache::

    find .cache/pip/wheels -name docutils\*whl -exec rm -v -i {} \;

* and test::

    python3.11 -m venv du3 ; cd du3
    export PYTHONPATH= ; . bin/activate

    pip install --no-deps docutils
    cp -Lr ../docutils-code/docutils/test .
    python test/alltests.py

    python -m pip uninstall docutils
    deactivate ; cd .. ; rm -r du3

* Notify to docutils-developer and user.

* upload source and generated html to sf-htdocs/#.# ::

    mkdir tmp1
    cd tmp1
    tar xzvf ../dist/docutils-#.#.tar.gz
    cd docutils-#.#/
    python3 tools/buildhtml.py .
    find . -name \*.pyc -exec rm -v {} \;
    find . -name __pycache__ -exec rmdir -v {} \;
    rm -r docutils.egg-info
    rsync -e ssh -r -t ./ web.sourceforge.net:/home/project-web/docutils/htdocs/#.#

* Check web/index.txt for necessary corrections.
* Run sandbox/infrastructure/docutils-update.local to update web-content.
* Release to sourceforge.

  - Upload docutils-#.#.tar.gz and release notes to sourceforge.
  - Select docutils-#.#.tar.gz as default for all OS.

* set_version 0.20.2b.dev
* tox: py3.7 3.8 3.9 3.10 3.11 
* docutils/HISTORY.txt: add title "Changes Since 0.20.1"
* run sandbox/infrastructure/docutils-update.local


Release 0.20 (2023-05-09)
=========================

(follow docs/dev/release.txt)

release (2023-05-09)

* Update RELEASE-NOTES.txt add section ``Release 0.20``.

  Changes were already done on canditate

* Change HISTORY.txt title ``Release 0.20 (2023-05-09)``.

* Set new version (replace ``<version>`` with the new version indentifier
  and ``<docutils-repository-root>`` with the dir containing
  ``HISTORY.txt`` and ``RELEASE-NOTES.txt``)::

      cd <docutils-repository-root>
      ../sandbox/infrastructure/set_version.sh <version>
  
* run tox 3.7 ... 3.11, run python3.12 alltests.py

  all OK.

* Generate wheel and source-distribution::

    python3 setup.py sdist
    python3 setup.py bdist_wheel

* Upload wheel and source to test.pypi::

    python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*

  Test in venv. ::

    python3 -m venv du3 ; cd du3
    export PYTHONPATH= ; . bin/activate

    python -m pip install --index-url https://test.pypi.org/simple/ --no-deps docutils

    cp -Lr ../docutils-code/docutils/test .
    python test/alltests.py

    python -m pip uninstall docutils
    deactivate ; cd .. ; rm -r du3

* Commit changes ... the changed version number.

* tag #.# (Note: only directory docutils is copied)::

    svn copy svn+ssh://grubert@svn.code.sf.net/p/docutils/code/trunk/docutils \
             svn+ssh://grubert@svn.code.sf.net/p/docutils/code/tags/docutils-0.20 \
             -m "tagging release 0.20"

* Update your source directory.
* Rebuild wheel and source-distribution ::

    python3 setup.py sdist
    python3 setup.py bdist_wheel

* Now upload to pypi::

    python3 -m twine upload  dist/docutils-0.20*

* and test::

    python3 -m venv du3 ; cd du3
    export PYTHONPATH= ; . bin/activate

    pip install --no-deps docutils
    cp -Lr ../docutils-code/docutils/test .
    python test/alltests.py

    deactivate ; cd .. ; rm -r du3

* Notify to docutils-developer and user.

* upload source and generated html to sf-htdocs/#.# ::

    mkdir tmp1
    cd tmp1
    tar xzvf ../dist/docutils-0.20.tar.gz
    cd docutils-0.20/
    python3 tools/buildhtml.py .
    find . -name \*.pyc -exec rm -v {} \;
    find . -name __pycache__ -exec rmdir -v {} \;
    rm -r docutils.egg-info
    rsync -e ssh -r -t ./ web.sourceforge.net:/home/project-web/docutils/htdocs/0.20

* Check web/index.txt for necessary corrections. Nothing changed.
* Run sandbox/infrastructure/docutils-update.local to update web-content.
* Release to sourceforge.

  - Upload docutils-0.20.tar.gz and release notes to sourceforge.
  - Select docutils-0.20.tar.gz as default for all OS.

* set_version 0.20.1b.dev 
* run tox : OK
* docutils/HISTORY.txt: add title "Changes Since 0.20"
* commit
* run sandbox/infrastructure/docutils-update.local

release candidate 1 (2023-05-04)
--------------------------------

* svn update
* run tox : py3.7 to py3.11 : OK
* run tests with 3.12.0a7 : OK

* Update RELEASE-NOTES.txt add section ``Release <version>``.

  Consult HISTORY.txt for important changes.

* Change HISTORY.txt title ``Changes Since <previous release>`` to ``Release <version>``.

* Set new version with ``sandbox/infrastructure/set_version.sh <version>``
 
  run tox (py3.7 to 3.11)
 
  Check docutils/__init__.py __version_info__ tuple. : OK

  Run tests ::

    export PYTHONWARNINGS=default
    python3 test/alltests.py

  OK , no warnings (really no)

* Generate wheel and source-distribution::

    python3 setup.py sdist
    python3 setup.py bdist_wheel

* Upload wheel and source to test.pypi::

    python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*

* Test in venv. NOTE use --pre for prereleases::

    python3 -m venv du3 ; cd du3
    export PYTHONPATH= ; . bin/activate

    python -m pip install --index-url https://test.pypi.org/simple/ --pre --no-deps docutils

    cp -Lr ../docutils-code/docutils/test .
    python test/alltests.py

  HISTORY.txt is not installed with wheel. 

  Clean up::

    python -m pip uninstall docutils
    deactivate ; cd .. ; rm -r du3

* Commit changes ... the changed version number.

* Now upload to pypi::

    python3 -m twine upload  dist/docutils-0.20*

* Remove previous package from local cache::

    find .cache/pip/wheels -name docutils\*whl -exec rm -v -i {} \;

* and test::

    python3 -m venv du3 ; cd du3
    export PYTHONPATH= ; . bin/activate

    pip install --pre --no-deps docutils
    cp -Lr ../docutils-code/docutils/test .
    python test/alltests.py

  HISTORY.txt is missing.

  Clean up::

    deactivate ; cd .. ; rm -r du3

* Notify to docutils-developer and user.

* update web page.

TODO on release tag the source 

Release 0.19 (2022-07-05)
=========================

(follow docs/dev/release.txt)

* svn update
* run tox
* run tests with py3.6 to 3.11

* Update RELEASE-NOTES.txt add section ``Release <version>``.

  Consult HISTORY.txt for important changes.

* Change HISTORY.txt title ``Changes Since <previous release>`` to ``Release <version>``.

* Set new version with ``sandbox/infrastructure/set_version.sh <version>``

  Check what was changed with version control system by ``set_version.sh``

  Change docutils/__init__.py __version_info__ tuple.

  Run tests ::

    export PYTHONWARNINGS=default
    python3 test/alltests.py

  or use tox.
    
  ``export PYTHONWARNINGS=default`` prints DeprecationWarnings in python3.

* Generate wheel and source-distribution::

    python3 setup.py sdist
    python3 setup.py bdist_wheel

* Upload wheel and source to test.pypi::

    python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*

  Test in venv. NOTE use --pre for prereleases::

    python3 -m venv du3 ; cd du3
    export PYTHONPATH= ; . bin/activate

    python -m pip install --index-url https://test.pypi.org/simple/ --no-deps docutils

    cp -Lr ../docutils-code/docutils/test .
    python test/alltests.py

    python -m pip uninstall docutils
    deactivate ; cd .. ; rm -r du3

* Commit changes ... the changed version number.

* tag 0.## (Note: only directory docutils is copied)::

    svn copy svn+ssh://grubert@svn.code.sf.net/p/docutils/code/trunk/docutils \
             svn+ssh://grubert@svn.code.sf.net/p/docutils/code/tags/docutils-0.19 \
             -m "tagging release 0.19"

* Update your source directory. 
* Rebuild wheel and source-distribution ::

    python3 setup.py sdist
    python3 setup.py bdist_wheel

* Now upload to pypi::

    python3 -m twine upload  dist/docutils-0.19*

* Remove previous package from local cache::

    find .cache/pip/wheels -name docutils\*whl -exec rm -v -i {} \;

* and test::

    python3 -m venv du3 ; cd du3
    export PYTHONPATH= ; . bin/activate

    pip install --no-deps docutils
    cp -Lr ../docutils-code/docutils/test .
    python test/alltests.py

    deactivate ; cd .. ; rm -r du3

* Notify to docutils-developer and user.

* upload source and generated html to sf-htdocs/0.19 ::

    mkdir tmp1
    cd tmp1
    tar xzvf ../dist/docutils-0.19.tar.gz
    cd docutils-0.19/
    tools/buildhtml.py .
    find . -name \*.pyc -exec rm -v {} \;
    find . -name __pycache__ -exec rmdir -v {} \;
    rm -r docutils.egg-info
    rsync -e ssh -r -t ./ web.sourceforge.net:/home/project-web/docutils/htdocs/0.19

* Check web/index.txt for necessary corrections.
* Run sandbox/infrastructure/docutils-update.local to update web-content.
* Release to sourceforge.

  - Upload tar.gz and 0.19 release notes to sourceforge.
  - Select docutils-0.19.tar.gz as default for all OS.  

* set_version 0.19.1b.dev
* test with py3
* docutils/HISTORY.txt: add title "Changes Since 0.##"
* svn commit
* run sandbox/infrastructure/docutils-update.local

Problems while releasing 0.19b1
===============================

* If docutils is installed into virtual environment and
  the test directory is copied from development directory
  with ``cp -Lr ...``::

       -L, --dereference
              always follow symbolic links in SOURCE
  
  - finding ``HISTORY.txt`` in test_utils.py fails.
    Create a HISTORY.txt file to avoid.

setup.cfg contained the universal setting that generated py2py3 wheels.

Release 0.19b1 (2022-06-21)
===========================

* run tox: 
* set_version 0.19b1
* tox again
* Generate universal wheel and source-distribution ::

    python3 setup.py sdist
    python3 setup.py bdist_wheel 

* Upload universal wheel and source to test.pypi::

    twine upload --repository-url https://test.pypi.org/legacy/ dist/docutils-0.19b*

* test in venvs: ignore wrong paths and un-embedded images

* upload to pypi::

    twine upload  dist/docutils-0.19*

* and test: python uses the cached download from the previous test.

  - remove from pip cache::

      find .cache/pip/wheels -name docutils\*whl

ERROR (fixed in r9089)

  ``python3 setup.py bdist_wheel`` builds a docutils-0.19b1-py2.py3-none-any.whl
  although python > 3.7 is required ... will this break python2 installations ? 

  This happens with option universal and without and also if using *build*.

  Testing with python2.7 : only 0.18 is installed, even with --pre and -U.

  Locally cached wheels may pose a problem, though.
  Cf. https://github.com/marshmallow-code/marshmallow/issues/1860

* set_version 0.19b2.dev and change __version_info_structure.
* tox
* commit
* Run sandbox/infrastructure/docutils-update.local to update web-content.

Release 0.18.1 (2021-11-23)
===========================

follow docs/dev/release.txt

Release 0.18.1b (2021-11-18)
============================

* run tox: passed 2.7, 3.5 ... 3.11
* set_version 0.18.1b
* tox again
* commit : release 0.18.1b
* Generate universal wheel and source-distribution with py3.8::

    python3 setup.py sdist
    python3 setup.py bdist_wheel --universal

* Upload universal wheel and source to test.pypi::

    python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/docutils-0.18.1b0*

* test in venvs: ignore wrong paths and un-embedded images

* upload to pypi::

    python3.9 -m twine upload  dist/docutils-0.18.1b0*

* and test: Note python3 uses the cached download from the python2 test.

  - remove from pip cache::

      find .cache/pip/wheels -name docutils\*whl

* set_version 0.18.1b1.dev
* tox
* commit
* Run sandbox/infrastructure/docutils-update.local to update web-content.

Release 0.18 (2021-10-26)
=========================

* beta is out for three weeks.
* announce soft freeze on dev-mail.
* run tox: passed 2.7, 3.5 ... 3.11
* set_version 0.18
* tox again
* commit : release 0.18
* Generate universal wheel and source-distribution with py39.
* Upload universal wheel and source to test.pypi.
* test in venvs: ignore wrong paths and un-embedded images
* tag release 0.18

    svn copy svn+ssh://grubert@svn.code.sf.net/p/docutils/code/trunk/docutils 
             svn+ssh://grubert@svn.code.sf.net/p/docutils/code/tags/docutils-0.18 
             -m "tagging release 0.18"

* upload to pypi
* and test: Note python3 uses the cached download from the python2 test.


* upload source and generated html to sf-htdocs/0.18

    mkdir tmp1
    cd tmp1
    tar xzvf ../dist/docutils-0.18.tar.gz
    cd docutils-0.18/
    tools/buildhtml.py .
    find . -name \*.pyc -exec rm {} \;
    rm -rf docutils.egg-info
    rsync -e ssh -r -t ./ web.sourceforge.net:/home/project-web/docutils/htdocs/0.18

* Check web/index.txt for necessary corrections : None necessary.
* Release to sourceforge.

  - Upload tar.gz and 0.18 release notes to sourceforge.
  - Select docutils-0.18.tar.gz as default for all OS.  

* set_version 0.18.1.dev
* tox
* docutils/HISTORY.txt: add title "Changes Since 0.18"
* Notify docutils-developer and user.
* Run sandbox/infrastructure/docutils-update.local to update web-content.

Release 0.17 aftermath
======================

:2021-04-05: Fixed: on-ASCII characters in docutils/writers/latex2e/docutils.sty

:2021-04-04: Open: [readthedocs/recommonmark] 
             AttributeError: 'Values' object has no attribute 'tab_width' (#220)

             pinning to docutils 0.16 helped ... why ?

Release 0.17.1 (2021-04-16)
===========================

* tox with 2.7 3.5, 3.6, 3.7, 3.8, 3.9, 3.10
* set_version 0.17.1
* tox again
* commit : release 0.17.1
* Generate universal wheel and source-distribution with py38.
* Upload universal wheel and source to test.pypi.
* test in venvs ... and then next problem pypi caches 0.17.1b2.

  --no-cache-dir does not help.

  call twice, second time with ``--upgrade``.

* tag release 0.17.1
* upload to pypi
* and test
* Notify docutils-developer and user.
* upload source and generated html to sf-htdocs/0.17.1
* Check web/index.txt for necessary corrections : None necessary.
* Release to sourceforge.
* set_version 0.17.2b.dev
* tox
* docutils/HISTORY.txt: add title "Changes Since 0.17.1"
* run sandbox/infrastructure/docutils-update.local


Release 0.17.1 (2021-04-12 ...)
===============================

* tox with 2.7 3.5, 3.6, 3.7, 3.8, 3.9, 3.10

  - 3.7 and 3.10 fail. Both with ::

     from _ctypes import Union, Structure, Array
       ModuleNotFoundError: No module named '_ctypes'

  testing against development source passes.

  Test crosstest, see subdirectory

  3.7 and 3.10 require libffi-dev to build local
  then tox passes for 3.5 to 3.10.

Release 0.17.1b1 (2021-04-09)
=============================

* tox with 2.7 3.5, 3.6, 3.8, 3.9

* with LC_ALL=C and PYTHONWARNINGS=default

  python3.6 and python3.10.0a ::

    docutils/utils/smartquotes.py:639: DeprecationWarning: invalid escape sequence \[
        ch_classes = {'open': u'[(\[{]', # opening braces
    docutils/test/test_writers/test_manpage.py:62: DeprecationWarning: invalid escape sequence \-
    ... several of the same

* recommonmark tests::

    python3.6 -m pip install --user recommonmark 
    # 0.7.1
 
    python3.6 test/alltests.py
    FAILED (failures=17, errors=17, skipped=1)

    input:
    b'\nExternal hyperlink [target]s:\n\n[target]: http://www.python.org/\n'
    -: expected
    +: output
      <document source="test data">
          <paragraph>
              External hyperlink
    -         <reference name="target" refuri="http://www.python.org/">
    ?                   --------------
    +         <reference refuri="http://www.python.org/">
                  target
              s:

  only works with recommonmark 0.4

* Generate universal wheel and source-distribution with py38.
* Upload universal wheel and source to test.pypi.
* Test in python3.8 venv 

  Fails.

  Inside virtualenv ::

    >>> import docutils.parsers.recommonmark_wrapper as rw                      
    >>> dir(rw)
    ['Parser', '__builtins__', '__cached__', '__doc__', '__file__', 
     '__loader__', '__name__', '__package__', '__spec__', 
     '_recommonmarkParser', 'docutils', 'nodes', 'with_recommonmark']

  In development directory ::

    >>> import docutils.parsers.recommonmark_wrapper as rw
    >>> dir(rw)
    ['CommonMarkParser', 'Component', 'Parser', '__builtins__',
     '__cached__', '__doc__', '__file__', '__loader__',
     '__name__', '__package__', '__spec__', 'docutils', 'nodes']

  Depending on recommonmark being installed in the running python
  version or not ``CommonMarkParser`` is a class or None.

* Rebuild the wheel after running tox (this cleans caches). 
  Cannot be uploaded to testpypi because it is the same name. 

  Install the whl from dist-directory into py38 venv.
  Ok.

* New version 0.17.1b1.dev because pypi does not allow changing uploads.
* Run tox and python3.10 test.
* Commit new version number
* build sdist and universal wheel with py39.
* Install wheel from dist into venv py39.

  Test passes (embedding fails because images are missing).

* Upload universal wheel and source to test.pypi.
* Install into py39 venv : This time install the --pre release
  tests pass.

* upload to pypi.
* test in py39 venv. Passed
* test in py39 venv with LC_ALL=C. Passed
* test in venv with recommonmark==0.4: fails . requires module html.

* notify docutils-develop and user and sphinx.
* New version 0.17.1b2.dev 

Release 0.17 (2021-04-03 ...)
=============================

* tox with 2.7 3.8, 3.9

  3.10a6 misses _ctypes.

* copy more things from HISTORY to RELEASE-NOTES

* ``set_version.sh 0.17``

* Run tests manually and via tox:

  ======== ======
   pyvers   time
  ======== ======
     2.7    7.3
     3.8    6.5
     3.9    6.5
     3.10   7.2
  ======== ======

* Generate universal wheel and source-distribution.
* Upload universal wheel and source to test.pypi.
  Wait some minutes to test in python2 virtualenv.

  Test in python3.10 venv.

  Stylesheet paths are different and image embedding fails
  because images are not found. 

  After copying ``docs/user/rst/images`` from docutils into the 
  venv-directory/docs/user/rst/images image embedding works.

* Commit changes to version control system.
* tag 0.17 (Note: only directory docutils is copied)::

    svn copy svn+ssh://grubert@svn.code.sf.net/p/docutils/code/trunk/docutils \
             svn+ssh://grubert@svn.code.sf.net/p/docutils/code/tags/docutils-0.17 \
             -m "tagging release 0.17"

* Generate universal wheel and source-distribution.
  Do it again and check for differences: svn-numbers and sha-fingerprints

* Now upload to pypi (the newly created s- and bdist).
* ... and test in venv and virtualenv.
* Notify to docutils-developer and user.
* Upload source and html to sf-htdocs/0.17

* Check web/index.txt for necessary corrections: nothing to do.

* Run sandbox/infrastructure/docutils-update.local to update web-content.
* Release to sourceforge.

  - Upload tar.gz and 0.17 release notes to sourceforge.
  - Select docutils-0.17.tar.gz as default for all OS.  

* set_version 0.18b.dev
* test with py2 and py3
* docutils/HISTORY.txt: add title "Changes Since 0.17"

* run sandbox/infrastructure/docutils-update.local

BetaRelease 0.17b1 (2021-02-10) to test.pypi
============================================

* tox with 2.7 3.8 and 3.9 ::

    functional/expected/standalone_rst_html5.html

    -<dl class="footnote brackets">
    ...
    -<dd><p>Requires support for attributes to inline
    -roles to make sense.</p>
    -</dd>
    -</dl>

  seams to be a moved chunk in test input but not in expected

* Version numbering

  ``python3 setup.py clean`` tells ::

    setuptools/dist.py:473: UserWarning: Normalizing '0.17b.dev' to '0.17b0.dev0'.

  According to https://peps.python.org/pep-0440/#pre-releases

  set_version 0.17b1

* test ::

    export PYTHONPATH=
    export PYTHONWARNINGS=default
    python2 test/alltests.py

    Ran 1454 tests 
    OK (skipped=3)

    python3 test/alltests.py
    Ran 1442 tests
    OK (skipped=5)

  python has some ResourceWarning::

    docutils/parsers/rst/directives/images.py:145: ResourceWarning: 
      unclosed file <_io.BufferedReader name=b'../docs/user/rst/images/title.png'>
      del img

    docutils/writers/html4css1/__init__.py:578: ResourceWarning: 
      unclosed file <_io.BufferedReader name=b'../docs/user/rst/images/biohazard.png'>
      del img

* Upload universal wheel and source to test.pypi::

    python3 setup.py sdist
    python3 setup.py bdist_wheel --universal
    python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*

  Wait some minutes to test in virtualenv ::

    python2 -m virtualenv du2 ; cd du2
    export PYTHONPATH= ; . bin/activate

    python -m pip install --index-url https://test.pypi.org/simple/ --no-deps --pre docutils
    # Successfully installed docutils-0.17b1

    cp -r ~/projects/docutils-code/docutils/test .
    # copy docs too for inlined images to be found
    python2 test/alltests.py
    # IGNORE stylesheet path differences ?

  Test in venv ::

    python3 -m venv du3 ; cd du3
    export PYTHONPATH= ; . bin/activate

    python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps --pre docutils
    # Successfully installed docutils-0.17b1

    cp -r ~/projects/docutils-code/docutils/test .
    cp -r ~/projects/docutils-code/docutils/docs .
    python test/alltests.py
    # Python 3.8.5 Linux 5.4.0
    # IGNORE stylesheet path differences ?

* commit 0.17b1 to code.sf

* Now upload to pypi::

    python3 -m twine upload  dist/docutils-0.17b1*

* and test::

    python3 -m venv du3 ; cd du3
    export PYTHONPATH= ; . bin/activate

    pip install --no-deps --pre docutils
    # 0.17b1
    cp -r ~/projects/docutils-code/docutils/test .
    cp -r ~/projects/docutils-code/docutils/docs .
    python test/alltests.py
    # css paths fail

* Notify to docutils-developer and user.

* ON RELEASE then: tag 0.16 (Note: only directory docutils is copied)::

    svn copy svn+ssh://grubert@svn.code.sf.net/p/docutils/code/trunk/docutils \
             svn+ssh://grubert@svn.code.sf.net/p/docutils/code/tags/docutils-0.16 \
             -m "tagging release 0.16"

* run sandbox/infrastructure/docutils-update.local

* set version 0.17b2.dev
* test with tox: py27 and py38 39
* commit to code.sf
* run sandbox/infrastructure/docutils-update.local

.. note:: final release has some extra steps

Release 0.16 (2020-01-12)
=========================

Set version 0.16

test ::

  export PYTHONWARNINGS=default
  python2 test/alltests.py
  python3 test/alltests.py

Upload universal wheel and source to test.pypi::

  python3 setup.py sdist
  python3 setup.py bdist_wheel --universal
  python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*

Wait some minutes to test in virtualenv ::

  python2 -m virtualenv du2 ; cd du2
  export PYTHONPATH= ; . bin/activate

  python -m pip install --index-url https://test.pypi.org/simple/ --no-deps docutils
  # Successfully installed docutils-0.16

  cp -r ~/projects/docutils-code/docutils/test .
  python2 test/alltests.py
  # IGNORE stylesheet path differences ?

  python -m pip uninstall docutils
  deactivate ; cd .. ; rm -rf du2

Test in venv ::

  python3 -m venv du3 ; cd du3
  export PYTHONPATH= ; . bin/activate

  python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps docutils
  # Successfully installed docutils-0.16

  cp -r ~/projects/docutils-code/docutils/test .
  python test/alltests.py
  # IGNORE stylesheet path differences ?
  # FAIL: test_find_file_in_dirs (test_utils.HelperFunctionTests)
  # FAIL: test_rst/ interpreted directives/code ...
  #  classes="keyword" is "name builtin" in 3.8.0b3 on Darwin 15.6.0

Now upload to pypi::

  python3 -m twine upload  dist/docutils-0.16*

and test::

  python3 -m venv du3 ; cd du3
  export PYTHONPATH= ; . bin/activate

  pip install --no-deps docutils
  # 0.16
  cp -r ~/projects/docutils-code/docutils/test .
  python test/alltests.py
  # css paths fail

  python2 -m virtualenv du2 ; cd du2
  export PYTHONPATH= ; . bin/activate

  pip install --no-deps docutils
  # 0.16
  cp -r ~/projects/docutils-code/docutils/test .
  python test/alltests.py
  # css paths fail

Notify to docutils-developer and user.

* tag 0.16 (Note: only directory docutils is copied)::

    svn copy svn+ssh://grubert@svn.code.sf.net/p/docutils/code/trunk/docutils \
             svn+ssh://grubert@svn.code.sf.net/p/docutils/code/tags/docutils-0.16 \
             -m "tagging release 0.16"

* upload doc/0.16 ::

    mkdir tmp1
    cd tmp1
    tar xzvf ../dist/docutils-0.16.tar.gz
    cd docutils-0.16/
    tools/buildhtml.py .
    find . -name \*.pyc -exec rm {} \;
    rm -rf docutils.egg-info
    rsync -e ssh -r -t ./ web.sourceforge.net:/home/project-web/docutils/htdocs/0.16

* change web index.txt
* run sandbox/infrastructure/docutils-update.local

* set version 0.17b.dev
* test with py2 and py3
* run sandbox/infrastructure/docutils-update.local

* docutils/HISTORY.txt: change title "Changes since 0.15" to "Release 0.16"
  add "Changes since 0.16"
* docutils/RELEASE-NOTES.txt change title "Release 0.16b ..." to Release 0.16 ..."

* Release to sourceforge.

  - Remove test/outputs from tar.gz.
  - Upload tar.gz and 0.16 release notes to sourceforge.
  - Select docutils-0.16.tar.gz as default for all OS.  

Release 0.16rc1
---------------

Set version 0.16rc1

test ::

  export PYTHONWARNINGS=default
  python2 test/alltests.py
  python3 test/alltests.py

Fix: DeprecationWarning: Please use assertEqual in test_nodes.

Upload universal wheel and source to test.pypi::

  python3 setup.py sdist
  python3 setup.py bdist_wheel --universal
  python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*

Wait some minutes to test in virtualenv ::

  python2 -m virtualenv du2 ; cd du2
  export PYTHONPATH= ; . bin/activate

  python -m pip install --index-url https://test.pypi.org/simple/ --no-deps docutils
  # Successfully installed docutils-0.15.2
  python -m pip uninstall docutils
  python -m pip install --index-url https://test.pypi.org/simple/ --no-deps --pre docutils
  # Successfully installed docutils-0.16Crc1

  cp -r ~/projects/docutils-code/docutils/test .
  python2 test/alltests.py
  # IGNORE stylesheet path differences ?

  # -<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
  # -<link rel="stylesheet" href="../input/data/math.css" type="text/css" />
  # +<link rel="stylesheet" href="../../html4css1.css" type="text/css" />
  # +<link rel="stylesheet" href="../../math.css" type="text/css" />

  deactivate ; cd .. ; rm -rf du2

Test in venv ::

  python3 -m venv du3 ; cd du3
  export PYTHONPATH= ; . bin/activate

  python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps docutils
  # Successfully installed docutils-0.15.2
  python -m pip uninstall docutils
  python -m pip install --index-url https://test.pypi.org/simple/ --no-deps --pre docutils
  # Successfully installed docutils-0.16b0.dev0
  cp -r ~/projects/docutils-code/docutils/test .
  python test/alltests.py

Seven CSS-path failures ... ignored for now::

  deactivate ; cd .. ; rm -rf du3

Now upload to pypi::

  python3 -m twine upload  dist/docutils-0.16rc1*

and test::

  python3 -m venv du3 ; cd du3
  export PYTHONPATH= ; . bin/activate

  pip install --no-deps --pre docutils
  # 0.16rc1
  cp -r ~/projects/docutils-code/docutils/test .
  python test/alltests.py
  # css paths fail

  python2 -m virtualenv du2 ; cd du2
  export PYTHONPATH= ; . bin/activate

  pip install --no-deps --pre docutils
  # 0.16rc1
  cp -r ~/projects/docutils-code/docutils/test .
  python test/alltests.py
  # css paths fail

Notify to docutils-developer and user.

Release 0.15 (2019-07-24)
=========================

branches/rel-0.15

CAUTION (2019-07-22)
====================

  While releasing 0.15 ::

    python3 setup.py sdist bdist_wheel
    python2 setup.py bdist_wheel

  This will result in the py2 wheel being identical to the py3 one.

  The name ``docutils-0.15-py2-none-any.whl`` cannot be used twice on pypi,
  build the py2-wheel and rename it ``docutils-0.15.post1-py2-none-any.whl``.
  (No code was changed therefore only filename change.)

  Name it ``docutils-0.15-post1-py2-none-any.whl`` then the version in the filename
  corresponds to the directory names in the wheel file.

  Maybe change the the version number in setup.py ?

Release 0.15.2 (2019-07-30)
===========================

Bump the version number to ease tool live.

Bump version ::

  set_version 0.15.2 
  python2 test/alltests.py
  python3 setup.py test3/alltests.py
  # visual inspection
  svn di | grep '^[+-]' | less -p '0.15.[12]'
  svn ci

Build py2 release upload to test.pypi ::

  mkdir py2 ; cd py2
  svn export svn+ssh://grubert@svn.code.sf.net/p/docutils/code/branches/rel-0.15/docutils
  cd docutils
  python2 setup.py sdist bdist_wheel
  python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/docutils-0.15.2-py2-none-any.whl

Test in virtualenv ::

  virtualenv du2 ; cd du2
  export PYTHONPATH= ; . bin/activate

  python -m pip install --index-url https://test.pypi.org/simple/ --no-deps docutils
  cp -r ~/projects/docutils-rel-0.15/docutils/py2/docutils/test .
  python2 test/alltests.py
  # IGNORE stylesheet path differences  
  
  deactivate ; cd .. ; rm -rf du2

release to pypi from the exported source directory   ::

  python3 -m twine upload  dist/docutils-0.15.2*  

Test in new virtualenv ::

  virtualenv du2 ; cd du2
  export PYTHONPATH= ; . bin/activate

  pip install docutils
  # Successfully installed docutils-0.15.2

  cp -r ~/projects/docutils-rel-0.15/docutils/py2/docutils/test .
  python2 test/alltests.py
  # IGNORE stylesheet path differences  

  deactivate ; cd .. ; rm -rf du2

Build py3 release upload to test.pypi.
In the export/docutils ::

  # py3 and source 
  python3 setup.py bdist_wheel
  python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/docutils-0.15.2-py3-none-any.whl

Test in virtualenv ::

  python3 -m venv du3 ; cd du3
  export PYTHONPATH= ; . bin/activate

  python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps docutils

BUG install 0.15 source. Check test.pypi web interface ... py3-wheel is there.
Retry::

  # Successfully installed docutils-0.15.2
  cp -r ~/projects/docutils-rel-0.15/docutils/py2/docutils/test3 .
  python test3/alltests.py
  # IGNORE upper directory Failure
  
  deactivate ; cd .. ; rm -rf du3 

release to pypi from the exported source directory   ::

  python3 -m twine upload  dist/docutils-0.15.2-py3*  

Wait for wheel to appear on pypi.org.

Test in virtualenv ::

  python3 -m venv du3 ; cd du3
  export PYTHONPATH= ; . bin/activate

  pip install docutils
  # Successfully installed docutils-0.15.2
  
  cp -r ~/projects/docutils-rel-0.15/docutils/py2/docutils/test3 .
  python test3/alltests.py
  # IGNORE upper directory Failure

  deactivate ; cd .. ; rm -rf du3

FINE 0.15.2

Release 0.15.1 (2019-07-24)
===========================

Bug fix release for python2 only.

* set version 0.15.1
* ``python2 setup.py sdist bdist_wheel``
* ``python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/docutils-0.15.1-py2-none-any.whl ``
* in a new virtualenv::

    python -m pip install --index-url https://test.pypi.org/simple/ --no-deps docutils

  and then test/alltests.py 

* ``python3 -m twine upload  dist/docutils-0.15.1*``

  upload py2-wheel and source.

* in a new virtualenv::

    python -m pip install docutils

  and then test/alltests.py 

* (2019-07-25) replace source by -post1

  Name it ``docutils-0.15.1-post1.tar.gz`` to make sure

  * It is unchanged library code: *post1*
  * the version is still 0.15.1: therefore separate with ``-``

  * run the tests somewhere, fix and commit.
    Then::

      svn export svn+ssh://@svn.code.sf.net/p/docutils/code/branches/rel-0.15/docutils d
      cd d
      python2 setup.py sdist
    
  * check ``tar tzf dist/docutils-0.15.1.tar.gz`` for remaining files.
    Then::

      mv dist/docutils-0.15.1.tar.gz dist/docutils-0.15.1-post1.tar.gz
      python -m twine upload dist/docutils-0.15.1-post1.tar.gz

  * Build a venv (python3), install docutils, copy test3 from development
    directory and run the test.

    As there is no 0.15.1 wheel for python3 this will be the source package. 

Release 0.15
============

svn revision: 8258 - start of release

* test on linux 2.7 3.7 : passed
* test on macosx python2.6: 

  - 7 failures due to different error messages. see below
  - 4 errors: python2.6 sys.version_info is a tuple no dictionary 
    FIXED: revision 8260

* test on macosx 2.7 3.4 3.6 3.7 : passed
* change version to : 0.15rc1.dev

  - run tests: python 2.7 and 3.7

* extract changes from HISTORY.txt to RELEASE-NOTES.txt
* rename headings in HISTORY.txt and RELEASE-NOTES.txt
* run release.sh stage 2: do a clean checkout and packing
* run local test with python 2.6 2.7 3.4 3.6 3.7
* upload to sourceforge.net. Keep 0.15 as latest, stable.
* Fix: README.txt version number BY HAND
* pypi :

  - docutils is registered
  - check setup.py : add classifier 'Programming Language :: Python :: 3.7'
  - Login to pypi (see https://packaging.python.org/tutorials/packaging-projects/)

    - python3 -m pip install --user --upgrade setuptools wheel

      (warns about not being in PATH. symlink into my/bin)
    - python3 setup.py sdist bdist_wheel ::

        /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'python_requires'
          warnings.warn(msg)

        error: invalid command 'bdist_wheel'

    - add import setuptools to setup.py
    - python3 setup.py sdist bdist_wheel
    - python2 setup.py bdist_wheel
    - python3 -m pip install --user --upgrade twine
    - twine upload dist/*

  check on pypi: 0.15 is there.

* update website docs

  - in directory web edit index.txt
  - in sandbox/infrastructure run ./docutils-update.local

* set version of repository to 0.16b.dev

Release 0.14
============

svn revision: 8145 - start of release - 0.15.0 beta

Prerelease 0.14a0
=================

svn revision: 8082 Prerelease 0.14a0
svn revision: 8078 Prerelease 0.14.0a

* merge changes from HISTORY.txt to RELEASE-NOTES.txt
* extract release number description setting from release.sh
* rename headings in HISTORY.txt and RELEASE-NOTES.txt
* run release.sh stage 2: do a clean checkout and packing
* run local test with python2.7
* upload to sourceforge.net. Keep 0.13 as latest, stable.
* reister on to pypi and upload tgz
* pypi: unset hide old releases


Release 0.13
============

svn revision: 7980

Tests
-----

Tests are run from svn checkout, only few from install.

* windows7 python 2.7.5: OK

* windows7 python 3.4.1: as in previous release

  * test.css path error (filed #256) 
  * test_parsers\test_rst\test_directives\test_include.py::

* macosx 10.10 python 2.7.10: OK
* macosx 10.10 python 3.3.2: OK
* macosx 10.10 python 3.4.1: OK

* ubuntu 12.04 python 2.7.3: OK
* ubuntu 12.04 python 3.2.3: OK

* testing tarball 0.13.1 (build sdist) ::

    +++ functional/output/standalone_rst_html5.html
    @@ -7,9 +7,9 @@
     <meta content="A test document, containing at least one example of each reStructuredText construct." lang="en" name="description" xml:lang="en" />
    -<link rel="stylesheet" href="../input/data/minimal.css" type="text/css" />
    -<link rel="stylesheet" href="../input/data/plain.css" type="text/css" />
    -<link rel="stylesheet" href="../input/data/math.css" type="text/css" />
    +<link rel="stylesheet" href="../../minimal.css" type="text/css" />
    +<link rel="stylesheet" href="../../plain.css" type="text/css" />
    +<link rel="stylesheet" href="../../math.css" type="text/css" />
     </head>

  this is because ``test/functional/input/data/minimal.css`` is a symlink to
  ``../../../../docutils/writers/html5_polyglot/minimal.css`` and release_test.sh 
  removes directory docutils to ensure the test uses the installed docutils
  not the unzipped.

  FIX: remove docutils/__init__.py

Release 0.12
============

svn revision: 7749

Tests
-----

Tests are run from svn checkout, only few from install.

Python3 tests are run ::

  rm -rf build test3
  python3 setup.py build
  PYTHONPATH=build/lib python3 test3/alltests.py

* ubuntu 8.04: python 2.4.5, 2.5.2, 2.6.7, 2.7.2 OK

  python 2.6.4rc1 6 failure due to change in error message: no such file ...  

  python 3.2.3 OK

* macosx 10.6.8: python 2.5.4, 2.7.3

  python 2.6.1 6 failure due to change in error message: no such file ...  

  python 3.2, 3.4.1 OK

* ubuntu 14.04: pyton 2.7.6,  python 3.4.0 OK

* windows7: python 2.7.5 

  Error (filed #256): test_writers/test_html4css1_template.py::

      stylesheet = """\
    - <link rel="stylesheet" href="/test.css" type="text/css" />"""
    + <link rel="stylesheet" href="C:/test.css" type="text/css" />"""
    ?                              ++

  python 3.4.1

  * test.css path error (filed #256) 
  * test_parsers\test_rst\test_directives\test_include.py::

      b'Encoding:\n\n.. include:: test_parsers/test_rst/test_directives/utf-16.csv\n   :encoding: utf-16\n'
        File "test3\alltests.py", line 40, in write
          string = string.encode('raw_unicode_escape').decode('ascii')
      UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 994: ordinal not in range(128)

   fiddling with alltests.py (uncommitted) ::

      <system_message level="4" line="1" source="test data" type="SEVERE">
        <paragraph>
            Problem with "raw" directive:
            UnicodeDecodeError: \'utf-16-be\' codec can\'t decode bytes in position 90-91: illegal encoding
        <literal_block xml:space="preserve">
            .. raw:: html
               :file: test_parsers/test_rst/test_directives/utf-16.csv
               :encoding: utf-16''' != '''\



Release 0.11
============

Summary
-------

``sandbox/infrastructure/release.sh`` tries running ``test/alltests.py`` after 
installing the new release, this fails because

* tests depends on e.g. ``../docs/user/rst/images/title.png`` or ``../HISTORY.txt``, 
  but thess are neither in the test directory tree nor in the installed software. 

* there is a lot of code trying to handle varying installation targets ``/usr/lib``
  ``/usr/local/lib` and not yet ``/usr/lib/pymodules``.

Change testing to:

1. build and install
2. extract docutils-<release>.tar.gz into tmp
3. remove docutils/docutils directory, just to make shure it is not used.
4. run test/alltest.py in this directory, so all files are where they are
   while development.

Following failure becuase docutils-library directory was removed, therefore 
docutils/writers/html4css1/html4css1.css is not found::

  ======================================================================
  FAIL: test_custom_stylesheet_dir (test_writers.test_html4css1_misc.SettingsTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/... 0.11/test/test_writers/test_html4css1_misc.py", line 81, in test_custom_stylesheet_dir
      self.assertIn('docutils/writers/html4css1/html4css1.css', styles)
    File "/... 0.11/test/DocutilsTestSupport.py", line 138, in assertIn
      msg or '%s not in %s' % _format_str(a, b))
  AssertionError: 'docutils/writers/html4css1/html4css1.css' not in u'''\
  <link rel="stylesheet" href="html4css1.css" type="text/css" />
  <link rel="stylesheet" href="data/ham.css" type="text/css" />
  '''


Tests
-----

* ubuntu 8.04 2.4.5, 2.5.2, 2.6.7, 2.7.2 OK

  python 2.6.4rc1 6 failure due to change in error message: no such file ...  

  Python 3.2.3 : OK (roman.py left over from last release)

* macosx 10.6.8: python 2.5.4, 2.7.3

  python 2.6.1 6 failure due to change in error message: no such file ...  

  python 3.2: roman.py for py3 required.

Release.sh
----------

release.sh does not work on MacOSX.

installation on ubuntu 10.04 breaks test script::

  Working directory: /usr/local/lib/python2.6/site-packages/docutils-test
  Docutils package: /usr/local/lib/python2.6/dist-packages/docutils

  ======================================================================
  FAIL: test_find_file_in_dirs (test_utils.HelperFunctionsTests)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/usr/local/lib/python2.6/site-packages/docutils-test/test_utils.py", line 295, in test_find_file_in_dirs
      '../HISTORY.txt')
  AssertionError: 'HISTORY.txt' != '../HISTORY.txt'

Stopping for now.



Release 0.10
============

* same failures for some python2.6 versions ::

              Problems with "raw" directive path:
       -      InputError: [Errno 2] No such file or directory: 'non-existent.file'.
       +      InputError: (2, 'No such file or directory').

* testing release tarball ::

    ======================================================================
    FAIL: test_dependencies (__main__.RecordDependenciesTests)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "docutils-test/test_dependencies.py", line 61, in test_dependencies
        self.assertEqual(record, expected)
    AssertionError: [u'data/include.txt', u'data/raw.txt'] != [u'../docs/user/rst/images/title.png',
    u'data/include.txt', u'data/raw.txt']
    
    ...

  because ../docs is not there if run from /usr/../pythonx.x/site-packages/docutils-test.

Release 0.9.1
=============

same failures as for 0.9 plus

* python 2.3: twice, ignored ::

  -             [Errno 2] No such file or directory: 'bogus.csv'.
  +             [Errno 2] No such file or directory: u'bogus.csv'.

  python 2.3 ::

    ======================================================================
    ERROR: test_unicode (test_error_reporting.ErrorStringTests)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/local/lib/python2.3/site-packages/docutils-test/test_error_reporting.py", line 153, in test_unicode
        self.assertEqual(u'ImportError: %s' % SafeString(self.bs),
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xfc in position 0: ordinal not in range(128)

Note: sf takes some considerable time till the downlods are visible for normal users.
  More than 1 hour , the folder files/docutils/0.9.1 exists and the webinterface
  correctly summarizes "Totals: 2 Items     1.6 MB" but nothing is shown.

Release 0.9
===========

* python 2.3 unittest.TestCase has no assertTrue
* python 2.3 keyword dictionaries update method does not support kwargs

Ignored test errors

* python 2.3: unicode problems. 2.3 support is likely to be ended soon.
  Systems with only 2.3 might not even know of unicode.

* PIL ``AttributeError: 'module' object has no attribute 'Image'``

  A problem in PIL ? 
  Tested and failiing on

  - ubuntu8.04, python 2.4, 2.5  
  - ubuntu10.04, python 2.6  
  - ubuntu11.10, python 2.7  

* python 2.6.4rc1 has a different error message format::

              Problems with "raw" directive path:
       -      InputError: [Errno 2] No such file or directory: 'non-existent.file'.
       +      InputError: (2, 'No such file or directory').

  but not in python 2.6.7