File tree Expand file tree Collapse file tree 3 files changed +37
-1
lines changed Expand file tree Collapse file tree 3 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 2
2
.vscode
3
3
* .egg-info
4
4
dist /
5
- docs /_build /
5
+ docs /_build /
6
+ docs /fortls_changes.md
Original file line number Diff line number Diff line change 15
15
16
16
sys .path .insert (0 , os .path .abspath (".." ))
17
17
18
+ # Generate the agglomerated changes (from the CHANGELOG) between fortls
19
+ # and the fortran-language-server project
20
+ with open ("../CHANGELOG.md" , "r" ) as f :
21
+ lns = f .readlines ()
22
+
23
+ lns = lns [0 : lns .index ("## 1.12.0\n " )]
24
+ changes = {
25
+ "Added" : [],
26
+ "Changed" : [],
27
+ "Deprecated" : [],
28
+ "Removed" : [],
29
+ "Fixed" : [],
30
+ "Security" : [],
31
+ }
32
+
33
+ field = ""
34
+ for i in lns :
35
+ if i .startswith ("## " ):
36
+ continue
37
+ if i .startswith ("### " ):
38
+ field = i [4 :- 1 ]
39
+ continue
40
+ if i .startswith ("- " ) or i .startswith (" " ):
41
+ changes [field ].append (i )
42
+
43
+ new_file = ["# Unique fortls features (not in fortran-language-server)\n " ]
44
+ for key , val in changes .items ():
45
+ if val :
46
+ new_file .append (f"\n ## { key } \n \n " )
47
+ new_file .extend (val )
48
+
49
+ with open ("fortls_changes.md" , "w" ) as f :
50
+ f .writelines (new_file )
51
+
18
52
19
53
# -- Project information -----------------------------------------------------
20
54
Original file line number Diff line number Diff line change 11
11
:caption: Contents:
12
12
13
13
README.md
14
+ fortls_changes.md
14
15
modules.rst
15
16
16
17
..
You can’t perform that action at this time.
0 commit comments