forked from sogno-platform/cimgen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consistency improvements and linting (#1)
## Description Consistency improvements and linting ## Changes Made * Lint Markdown * Ling Dockerfile * Uniform argument management * Manage dependencies using poetry ## Related Issues N/A ## Checklist - [x] I have used a PR title that is descriptive enough for a release note. - [x] I have tested these changes locally. - [x] I have added appropriate tests or updated existing tests. - [ ] I have tested these changes on a dedicated VM or a customer VM [name of the VM] - [x] I have added appropriate documentation or updated existing documentation. Signed-off-by: Federico M. Facca <federico.facca@zaphiro.ch>
- Loading branch information
Showing
6 changed files
with
129 additions
and
43 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
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,16 +1,14 @@ | ||
from alpine | ||
run apk update | ||
run apk add python3 git py3-pip py3-lxml file | ||
run pip3 install --upgrade pip | ||
run pip3 install xmltodict chevron | ||
FROM alpine | ||
RUN apk update | ||
RUN apk add python3 git py3-pip py3-lxml file | ||
RUN pip3 install --upgrade pip | ||
RUN pip3 install xmltodict chevron | ||
|
||
copy cpp/ /CIMgen/cpp/ | ||
copy java/ /CIMgen/java/ | ||
copy javascript/ /CIMgen/javascript/ | ||
copy javascript_react/ /CIMgen/javascript_react/ | ||
copy python/ /CIMgen/python/ | ||
copy CIMgen.py build.py /CIMgen/ | ||
copy CIMgen.py build.py /CIMgen/ | ||
workdir /CIMgen | ||
entrypoint [ "/usr/bin/python3", "build.py", "/cgmes_output", "/cgmes_schema" ] | ||
cmd [ "cpp" ] | ||
COPY cpp/ /CIMgen/cpp/ | ||
COPY java/ /CIMgen/java/ | ||
COPY javascript/ /CIMgen/javascript/ | ||
COPY python/ /CIMgen/python/ | ||
COPY CIMgen.py build.py /CIMgen/ | ||
WORKDIR /CIMgen | ||
ENTRYPOINT [ "/usr/bin/python3", "build.py", "--outdir=/cgmes_output", "--schemadir=/cgmes_schema" ] | ||
CMD [ "--langdir=cpp" ] |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,18 @@ | ||
[tool.poetry] | ||
name = "cimgen" | ||
version = "0.1.0" | ||
description = "Code generation from CIM data model for several programming languages" | ||
authors = [] | ||
license = "Apache License 2.0" | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.9" | ||
xmltodict = "^0.13.0" | ||
chevron = "^0.14.0" | ||
cmake = "^3.27.0" | ||
|
||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |