Skip to content

Commit f68a9e4

Browse files
committed
Remove code replaced by lattice.
1 parent dc2bf75 commit f68a9e4

22 files changed

+2
-4129
lines changed

.github/workflows/validate-and-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
os: [ubuntu-latest, macos-latest, windows-latest]
14-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
14+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1515
defaults:
1616
run:
1717
shell: bash

dodo.py

+1-33
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
import os
22
from pathlib import Path
3-
import schema205.validate
4-
import schema205.markdown
5-
#import schema205.json_translate
6-
#import schema205.cpp_translate
7-
import schema205.render_template
83
from doit.tools import create_folder
9-
from schema205.util import snake_style
104
from lattice import Lattice
115
from lattice.cpp.header_entry_extension_loader import load_extensions
126

@@ -72,32 +66,6 @@ def task_generate_markdown():
7266
"clean": True,
7367
}
7468

75-
# def task_render_template():
76-
# '''
77-
# Demonstrate how to render a template
78-
# '''
79-
# template_dir = os.path.realpath(
80-
# os.path.join('rendering_examples', 'template_rendering'))
81-
# out_file = os.path.join(RENDERED_TEMPLATE_PATH, 'main.md')
82-
# log_file = os.path.join(RENDERED_TEMPLATE_PATH, 'error-log.txt')
83-
# return {
84-
# 'file_dep': collect_source_files() + [
85-
# os.path.join(template_dir, 'main.md.j2'),
86-
# os.path.join('schema205', 'markdown.py'),
87-
# os.path.join('schema205', 'md', '__init__.py'),
88-
# os.path.join('schema205', 'md', 'schema_table.py'),
89-
# os.path.join('schema205', 'md', 'grid_table.py'),
90-
# os.path.join('schema205', 'render_template.py'),
91-
# ],
92-
# 'targets': [out_file, log_file],
93-
# 'task_dep': ['validate_schemas'],
94-
# 'actions': [
95-
# (create_folder, [RENDERED_TEMPLATE_PATH]),
96-
# (schema205.render_template.main,
97-
# ['main.md.j2', out_file, template_dir],
98-
# {"log_file": log_file})],
99-
# 'clean': True,
100-
# }
10169

10270
def task_generate_web_docs():
10371
"""Generate markdown documentation from templates"""
@@ -111,7 +79,7 @@ def task_generate_web_docs():
11179
}
11280

11381

114-
def task_generate_cpp_code():
82+
def task_generate_cpp_project():
11583
'''Generates CPP source files from common-schema'''
11684
return {
11785
'file_dep': [schema.file_path for schema in data_model_205.schemas],

0 commit comments

Comments
 (0)