Skip to content

Commit

Permalink
Merge pull request #166 from LeStarch/release-1.4-prep
Browse files Browse the repository at this point in the history
lestarch: release 1.4 prep
  • Loading branch information
LeStarch authored May 5, 2020
2 parents d72b829 + 9415b22 commit 718d6a5
Show file tree
Hide file tree
Showing 441 changed files with 5,890 additions and 22,433 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.git
**.mdxml
**/docs
**build
16 changes: 12 additions & 4 deletions Autocoders/Python/bin/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@
#@todo: from src.parsers import assembly_parser

#Generators to produce the code
from fprime_ac.generators import GenFactory
try:
from fprime_ac.generators import GenFactory
except ImportError as ime:
print("[ERROR] Cheetah templates need to be generated.\n\t", ime, file=sys.stderr)
sys.exit(1)

# Flag to indicate verbose mode.
VERBOSE = False
Expand Down Expand Up @@ -366,7 +370,7 @@ def generate_topology(the_parsed_topology_xml, xml_filename, opt):
else:
type_name = member_type
if member_type == "string":
member_elem.attrib["len"] = member.get_size()
member_elem.attrib["len"] = member_size
member_elem.attrib["type"] = type_name
members_elem.append(member_elem)
serializable_elem.append(members_elem)
Expand Down Expand Up @@ -1234,7 +1238,7 @@ def generate_dependency_file(filename, target_file, subst_path, parser, type):

# verify directory exists for dependency file and is directory
if not os.path.isdir(os.path.dirname(filename)):
PRINT.info("ERROR: Dependency file path %s does not exist!",os.path.dirname(full_path))
PRINT.info("ERROR: Dependency file path %s does not exist!",os.path.dirname(filename))
sys.exit(-1)


Expand Down Expand Up @@ -1448,4 +1452,8 @@ def main():


if __name__ == '__main__':
main()
try:
main()
except Exception as exc:
print(exc, file=sys.stderr)
sys.exit(-1)
187 changes: 0 additions & 187 deletions Autocoders/Python/bin/cosmosgen.py

This file was deleted.

8 changes: 6 additions & 2 deletions Autocoders/Python/bin/gds_dictgen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python3
#===============================================================================
# NAME: gds_dictgen.py
#
Expand Down Expand Up @@ -33,7 +33,11 @@
from lxml import etree

#Generators to produce the code
from fprime_ac.generators import GenFactory
try:
from fprime_ac.generators import GenFactory
except ImportError as ime:
print("[ERROR] Cheetah templates need to be generated.\n\t", ime, file=sys.stderr)
sys.exit(1)

# Needs to be initialized to create the other parsers
CONFIG = ConfigManager.ConfigManager.getInstance()
Expand Down
8 changes: 6 additions & 2 deletions Autocoders/Python/bin/implgen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#===============================================================================
# NAME: implgen.py
#
Expand Down Expand Up @@ -47,7 +47,11 @@
from fprime_ac.generators.writers import ImplHWriter

#Generators to produce the code
from fprime_ac.generators import GenFactory
try:
from fprime_ac.generators import GenFactory
except ImportError as ime:
print("[ERROR] Cheetah templates need to be generated.\n\t", ime, file=sys.stderr)
sys.exit(1)

# Flag to indicate verbose mode.
VERBOSE = False
Expand Down
8 changes: 6 additions & 2 deletions Autocoders/Python/bin/pymod_dictgen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python3
#===============================================================================
# NAME: pymod_dictgen.py
#
Expand Down Expand Up @@ -35,7 +35,11 @@
from fprime_ac.generators.writers import InstEventWriter

#Generators to produce the code
from fprime_ac.generators import GenFactory
try:
from fprime_ac.generators import GenFactory
except ImportError as ime:
print("[ERROR] Cheetah templates need to be generated.\n\t", ime, file=sys.stderr)
sys.exit(1)

# Needs to be initialized to create the other parsers
CONFIG = ConfigManager.ConfigManager.getInstance()
Expand Down
23 changes: 0 additions & 23 deletions Autocoders/Python/bin/run_cosmosgen.sh

This file was deleted.

8 changes: 6 additions & 2 deletions Autocoders/Python/bin/testgen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#===============================================================================
# NAME: testgen.py
#
Expand Down Expand Up @@ -53,7 +53,11 @@
from fprime_ac.generators.writers import TestMainWriter

#Generators to produce the code
from fprime_ac.generators import GenFactory
try:
from fprime_ac.generators import GenFactory
except ImportError as ime:
print("[ERROR] Cheetah templates need to be generated.\n\t", ime, file=sys.stderr)
sys.exit(1)

# Flag to indicate verbose mode.
VERBOSE = False
Expand Down
2 changes: 1 addition & 1 deletion Autocoders/Python/bin/tlmLayout.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
#===============================================================================
# NAME: TlmLayout.py
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/env python
#===============================================================================
# NAME: AbstractGenerator.py
#
Expand Down Expand Up @@ -73,7 +72,3 @@ def addVisitor(self, visitor):
Method to add the visitor to a list of visitors.
"""
raise Exception("AbstractFace.accept.addVisitor(v) - Implementation Error: you must supply your own concrete implementation.")


if __name__ == '__main__':
pass
5 changes: 0 additions & 5 deletions Autocoders/Python/src/fprime_ac/generators/ChannelBody.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/env python
#===============================================================================
# NAME: FinishSource
#
Expand Down Expand Up @@ -96,7 +95,3 @@ def getObj(self):
Return the object to the visitor.
"""
return self.__obj


if __name__ == '__main__':
pass
5 changes: 0 additions & 5 deletions Autocoders/Python/src/fprime_ac/generators/ChannelHeader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/env python
#===============================================================================
# NAME: FinishSource
#
Expand Down Expand Up @@ -96,7 +95,3 @@ def getObj(self):
Return the object to the visitor.
"""
return self.__obj


if __name__ == '__main__':
pass
4 changes: 0 additions & 4 deletions Autocoders/Python/src/fprime_ac/generators/CommandBody.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/env python
#===============================================================================
# NAME: FinishSource
#
Expand Down Expand Up @@ -97,6 +96,3 @@ def getObj(self):
"""
return self.__obj


if __name__ == '__main__':
pass
Loading

0 comments on commit 718d6a5

Please sign in to comment.