-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from spdx/feature/jinja2
- Loading branch information
Showing
6 changed files
with
143 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/python | ||
{ | ||
"name": "Python 3", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye", | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
"postCreateCommand": "pip3 install --user -r requirements.txt", | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
# | ||
# These requirements were autogenerated by pipenv | ||
# To regenerate from the project's Pipfile, run: | ||
# | ||
# pipenv lock --requirements | ||
# | ||
|
||
-i https://pypi.org/simple | ||
isodate==0.6.0 | ||
pyparsing==2.4.7; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
Jinja2==3.1.2 | ||
MarkupSafe==2.1.3 | ||
pyparsing==2.4.7 | ||
rdflib==6.0.0 | ||
six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
six==1.16.0 | ||
sly==0.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<!-- Auto generated markdown by Spec-parser {{__version__}} --> | ||
|
||
<!-- SPDX-License-Identifier: {{license_name}} --> | ||
|
||
# {{name}} | ||
|
||
## Summary | ||
{{summary}} | ||
|
||
## Description | ||
{{description}} | ||
|
||
## Metadata | ||
{% for name, vals in metadata | dictsort %} | ||
- {{name}}: {{vals | list | join(" ")}} | ||
{% endfor %} | ||
|
||
## Properties | ||
{% if args.get("use_table", False) %} | ||
header_list = ["type", "minCount", "maxCount"] | ||
|
||
# print the header | ||
f.write("|" + "|".join(["property"] + header_list) + "|\n") | ||
f.write("|" + "---|" * (len(header_list) + 1) + "\n") | ||
|
||
{% for name, subprops in properties | dictsort %} | ||
|{{name}} | ||
{% for subprop in header_list %} | ||
|{{subprops.get(subprop, ["NA"]) | join(" ")}} | ||
{% endfor %} | ||
| | ||
{% endfor %} | ||
{% else %} | ||
{% for name, subprops in properties | dictsort %} | ||
- {{name}} | ||
{% for _key, subprop in subprops | dictsort %} | ||
- {{_key}}: {{subprop | list | join(" ")}} | ||
{% endfor %} | ||
{% endfor %} | ||
{% endif %} | ||
|
||
{% if format_pattern %} | ||
## Format | ||
|
||
{% for name, vals in format_pattern | dictsort %} | ||
- {{name}}: {{vals | list | join(" ")}} | ||
{% endfor %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- Auto generated markdown by Spec-parser v{{__version__}} --> | ||
|
||
<!-- SPDX-License-Identifier: {{license_name}} --> | ||
|
||
# {{name}} | ||
|
||
## Summary | ||
{{summary}} | ||
|
||
## Description | ||
{{description}} | ||
|
||
## Metadata | ||
{% for name, vals in metadata | dictsort %} | ||
- {{name}}: {{vals | list | join(" ")}} | ||
{% endfor %} | ||
|
||
{% if args.get("gen_refs", False) %} | ||
## References | ||
{% for name in spec.dataprop_refs.get(self.name, []) | dictsort %} | ||
- {{name}} | ||
{% endfor %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- Auto generated markdown by Spec-parser v{{__version__}} --> | ||
|
||
<!-- SPDX-License-Identifier: {{license_name}} --> | ||
|
||
# {{name}} | ||
|
||
## Summary | ||
{{summary}} | ||
|
||
## Description | ||
{{description}} | ||
|
||
## Metadata | ||
{% for name, vals in metadata | dictsort %} | ||
- {{name}}: {{vals | list | join(" ")}} | ||
{% endfor %} | ||
|
||
## Entries | ||
{% for name, val in entries | dictsort %} | ||
- {{name}}: {{val}} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters