mater-project-manager 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mater_project_manager-0.4.0/.gitignore +188 -0
- mater_project_manager-0.4.0/.gitlab-ci.yml +43 -0
- mater_project_manager-0.4.0/CHANGELOG.md +49 -0
- mater_project_manager-0.4.0/CONTRIBUTING.md +3 -0
- mater_project_manager-0.4.0/LICENSE +165 -0
- mater_project_manager-0.4.0/Makefile +71 -0
- mater_project_manager-0.4.0/PKG-INFO +246 -0
- mater_project_manager-0.4.0/README.md +57 -0
- mater_project_manager-0.4.0/THIRD_PARTY_LICENSES.md +61 -0
- mater_project_manager-0.4.0/pyproject.toml +61 -0
- mater_project_manager-0.4.0/src/mater_project_manager/__init__.py +0 -0
- mater_project_manager-0.4.0/src/mater_project_manager/data/dimensions/.gitkeep +0 -0
- mater_project_manager-0.4.0/src/mater_project_manager/data/input/.gitkeep +0 -0
- mater_project_manager-0.4.0/src/mater_project_manager/data/raw/.gitkeep +0 -0
- mater_project_manager-0.4.0/src/mater_project_manager/data/references/dimensions.json +1676 -0
- mater_project_manager-0.4.0/src/mater_project_manager/data/references/variables_dimensions.json +217 -0
- mater_project_manager-0.4.0/src/mater_project_manager/docs/_static/MATER_logo.png +0 -0
- mater_project_manager-0.4.0/src/mater_project_manager/docs/cli_reference.rst +8 -0
- mater_project_manager-0.4.0/src/mater_project_manager/docs/conf.py +73 -0
- mater_project_manager-0.4.0/src/mater_project_manager/docs/index.rst +13 -0
- mater_project_manager-0.4.0/src/mater_project_manager/examples/minimal_dimensions.json +44 -0
- mater_project_manager-0.4.0/src/mater_project_manager/examples/minimal_example.json +113 -0
- mater_project_manager-0.4.0/src/mater_project_manager/examples/minimal_local_dimensions.csv +5 -0
- mater_project_manager-0.4.0/src/mater_project_manager/examples/minimal_project_dimensions.ipynb +199 -0
- mater_project_manager-0.4.0/src/mater_project_manager/examples/minimal_raw_example.csv +10 -0
- mater_project_manager-0.4.0/src/mater_project_manager/examples/minimal_raw_example_completed.ipynb +224 -0
- mater_project_manager-0.4.0/src/mater_project_manager/examples/minimal_simulation_dimensions.json +63 -0
- mater_project_manager-0.4.0/src/mater_project_manager/examples/minimal_variables_dimensions.json +12 -0
- mater_project_manager-0.4.0/src/mater_project_manager/main.py +216 -0
- mater_project_manager-0.4.0/src/mater_project_manager/outputs/.gitkeep +0 -0
- mater_project_manager-0.4.0/src/mater_project_manager/src/__init__.py +0 -0
- mater_project_manager-0.4.0/src/mater_project_manager/src/app/__init__.py +0 -0
- mater_project_manager-0.4.0/src/mater_project_manager/src/app/app.py +130 -0
- mater_project_manager-0.4.0/src/mater_project_manager/src/app/charts.py +349 -0
- mater_project_manager-0.4.0/src/mater_project_manager/src/app/components.py +270 -0
- mater_project_manager-0.4.0/src/mater_project_manager/src/app/data.py +249 -0
- mater_project_manager-0.4.0/src/mater_project_manager/src/cli.py +441 -0
- mater_project_manager-0.4.0/src/mater_project_manager/src/commands/__init__.py +0 -0
- mater_project_manager-0.4.0/src/mater_project_manager/src/commands/build_dimensions.py +190 -0
- mater_project_manager-0.4.0/src/mater_project_manager/src/commands/generate_data_script.py +273 -0
- mater_project_manager-0.4.0/src/mater_project_manager/src/commands/list_simulation.py +155 -0
- mater_project_manager-0.4.0/src/mater_project_manager/src/commands/map_dimensions.py +421 -0
- mater_project_manager-0.4.0/src/mater_project_manager/src/commands/run.py +233 -0
- mater_project_manager-0.4.0/src/mater_project_manager/src/commands/serve_app.py +51 -0
- mater_project_manager-0.4.0/src/mater_project_manager/src/lib/__init__.py +0 -0
- mater_project_manager-0.4.0/src/mater_project_manager/src/lib/dimensions.py +766 -0
- mater_project_manager-0.4.0/src/mater_project_manager/src/lib/validation.py +282 -0
- mater_project_manager-0.4.0/src/mater_project_manager/src/logging_config.py +29 -0
- mater_project_manager-0.4.0/src/mater_project_manager/src/settings.py +252 -0
- mater_project_manager-0.4.0/src/mater_project_manager/static_files/.gitignore +190 -0
- mater_project_manager-0.4.0/src/mater_project_manager/static_files/LICENSE +165 -0
- mater_project_manager-0.4.0/src/mater_project_manager/static_files/Makefile +32 -0
- mater_project_manager-0.4.0/src/mater_project_manager/static_files/config.toml +31 -0
- mater_project_manager-0.4.0/src/mater_project_manager/templates/README.md.j2 +159 -0
- mater_project_manager-0.4.0/src/mater_project_manager/templates/pyproject.toml.j2 +52 -0
- mater_project_manager-0.4.0/src/mater_project_manager/transforms/datasets/.gitkeep +0 -0
- mater_project_manager-0.4.0/src/mater_project_manager/transforms/dimensions/project_dimensions.ipynb +211 -0
- mater_project_manager-0.4.0/src/mater_project_manager/transforms/templates/load_csv.py.j2 +5 -0
- mater_project_manager-0.4.0/src/mater_project_manager/transforms/templates/load_excel.py.j2 +5 -0
- mater_project_manager-0.4.0/src/mater_project_manager/transforms/templates/load_json.py.j2 +13 -0
- mater_project_manager-0.4.0/src/mater_project_manager/transforms/templates/load_parquet.py.j2 +5 -0
- mater_project_manager-0.4.0/src/mater_project_manager/transforms/templates/load_pickle.py.j2 +9 -0
- mater_project_manager-0.4.0/src/mater_project_manager/transforms/templates/load_tsv.py.j2 +5 -0
- mater_project_manager-0.4.0/src/mater_project_manager/transforms/templates/load_xml.py.j2 +12 -0
- mater_project_manager-0.4.0/src/mater_project_manager/transforms/templates/load_yaml.py.j2 +13 -0
- mater_project_manager-0.4.0/src/mater_project_manager/transforms/templates/transform_data.ipynb.j2 +222 -0
- mater_project_manager-0.4.0/tests/__init__.py +0 -0
- mater_project_manager-0.4.0/tests/conftest.py +49 -0
- mater_project_manager-0.4.0/tests/fixtures/__init__.py +0 -0
- mater_project_manager-0.4.0/tests/fixtures/config.py +122 -0
- mater_project_manager-0.4.0/tests/fixtures/data.py +548 -0
- mater_project_manager-0.4.0/tests/integration/__init__.py +0 -0
- mater_project_manager-0.4.0/tests/integration/test_data_pipeline.py +142 -0
- mater_project_manager-0.4.0/tests/integration/test_dimensions_pipeline.py +283 -0
- mater_project_manager-0.4.0/tests/integration/test_simulation_pipeline.py +297 -0
- mater_project_manager-0.4.0/tests/unit/__init__.py +0 -0
- mater_project_manager-0.4.0/tests/unit/test_lib_dimensions.py +302 -0
- mater_project_manager-0.4.0/tests/unit/test_lib_validation.py +103 -0
- mater_project_manager-0.4.0/uv.lock +447 -0
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
## Python
|
|
2
|
+
# Byte-compiled / optimized / DLL files
|
|
3
|
+
__pycache__/
|
|
4
|
+
*.py[cod]
|
|
5
|
+
*$py.class
|
|
6
|
+
|
|
7
|
+
# C extensions
|
|
8
|
+
*.so
|
|
9
|
+
|
|
10
|
+
# Distribution / packaging
|
|
11
|
+
.Python
|
|
12
|
+
build/
|
|
13
|
+
develop-eggs/
|
|
14
|
+
dist/
|
|
15
|
+
downloads/
|
|
16
|
+
eggs/
|
|
17
|
+
.eggs/
|
|
18
|
+
lib/
|
|
19
|
+
lib64/
|
|
20
|
+
parts/
|
|
21
|
+
sdist/
|
|
22
|
+
var/
|
|
23
|
+
wheels/
|
|
24
|
+
share/python-wheels/
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
28
|
+
MANIFEST
|
|
29
|
+
|
|
30
|
+
# PyInstaller
|
|
31
|
+
# Usually these files are written by a python script from a template
|
|
32
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
33
|
+
*.manifest
|
|
34
|
+
*.spec
|
|
35
|
+
|
|
36
|
+
# Installer logs
|
|
37
|
+
pip-log.txt
|
|
38
|
+
pip-delete-this-directory.txt
|
|
39
|
+
|
|
40
|
+
# Unit test / coverage reports
|
|
41
|
+
htmlcov/
|
|
42
|
+
.tox/
|
|
43
|
+
.nox/
|
|
44
|
+
.coverage
|
|
45
|
+
.coverage.*
|
|
46
|
+
.cache
|
|
47
|
+
nosetests.xml
|
|
48
|
+
coverage.xml
|
|
49
|
+
*.cover
|
|
50
|
+
*.py,cover
|
|
51
|
+
.hypothesis/
|
|
52
|
+
.pytest_cache/
|
|
53
|
+
cover/
|
|
54
|
+
|
|
55
|
+
# Translations
|
|
56
|
+
*.mo
|
|
57
|
+
*.pot
|
|
58
|
+
|
|
59
|
+
# Django stuff:
|
|
60
|
+
*.log
|
|
61
|
+
local_settings.py
|
|
62
|
+
db.sqlite3
|
|
63
|
+
db.sqlite3-journal
|
|
64
|
+
|
|
65
|
+
# Flask stuff:
|
|
66
|
+
instance/
|
|
67
|
+
.webassets-cache
|
|
68
|
+
|
|
69
|
+
# Scrapy stuff:
|
|
70
|
+
.scrapy
|
|
71
|
+
|
|
72
|
+
# Sphinx documentation
|
|
73
|
+
docs/_build/
|
|
74
|
+
|
|
75
|
+
# PyBuilder
|
|
76
|
+
.pybuilder/
|
|
77
|
+
target/
|
|
78
|
+
|
|
79
|
+
# Jupyter Notebook
|
|
80
|
+
.ipynb_checkpoints
|
|
81
|
+
|
|
82
|
+
# IPython
|
|
83
|
+
profile_default/
|
|
84
|
+
ipython_config.py
|
|
85
|
+
|
|
86
|
+
# pyenv
|
|
87
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
88
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
89
|
+
.python-version
|
|
90
|
+
|
|
91
|
+
# pipenv
|
|
92
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
93
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
94
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
95
|
+
# install all needed dependencies.
|
|
96
|
+
#Pipfile.lock
|
|
97
|
+
|
|
98
|
+
# poetry
|
|
99
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
100
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
101
|
+
# commonly ignored for libraries.
|
|
102
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
103
|
+
#poetry.lock
|
|
104
|
+
|
|
105
|
+
# pdm
|
|
106
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
107
|
+
#pdm.lock
|
|
108
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
109
|
+
# in version control.
|
|
110
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
111
|
+
.pdm.toml
|
|
112
|
+
|
|
113
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
114
|
+
__pypackages__/
|
|
115
|
+
|
|
116
|
+
# Celery stuff
|
|
117
|
+
celerybeat-schedule
|
|
118
|
+
celerybeat.pid
|
|
119
|
+
|
|
120
|
+
# SageMath parsed files
|
|
121
|
+
*.sage.py
|
|
122
|
+
|
|
123
|
+
# Environments
|
|
124
|
+
.pyenv
|
|
125
|
+
.env
|
|
126
|
+
.venv
|
|
127
|
+
env/
|
|
128
|
+
venv/
|
|
129
|
+
ENV/
|
|
130
|
+
env.bak/
|
|
131
|
+
venv.bak/
|
|
132
|
+
|
|
133
|
+
# Spyder project settings
|
|
134
|
+
.spyderproject
|
|
135
|
+
.spyproject
|
|
136
|
+
|
|
137
|
+
# Rope project settings
|
|
138
|
+
.ropeproject
|
|
139
|
+
|
|
140
|
+
# mkdocs documentation
|
|
141
|
+
/site
|
|
142
|
+
|
|
143
|
+
# mypy
|
|
144
|
+
.mypy_cache/
|
|
145
|
+
.dmypy.json
|
|
146
|
+
dmypy.json
|
|
147
|
+
|
|
148
|
+
# Pyre type checker
|
|
149
|
+
.pyre/
|
|
150
|
+
|
|
151
|
+
# pytype static type analyzer
|
|
152
|
+
.pytype/
|
|
153
|
+
|
|
154
|
+
# Cython debug symbols
|
|
155
|
+
cython_debug/
|
|
156
|
+
|
|
157
|
+
# PyCharm
|
|
158
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
159
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
160
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
161
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
162
|
+
#.idea/
|
|
163
|
+
|
|
164
|
+
# Sphinx documentation
|
|
165
|
+
build/
|
|
166
|
+
|
|
167
|
+
# Custom
|
|
168
|
+
.venv*
|
|
169
|
+
*.xls
|
|
170
|
+
*.xlsx
|
|
171
|
+
*.xlsb
|
|
172
|
+
*.mater
|
|
173
|
+
*.parquet
|
|
174
|
+
*.lprof
|
|
175
|
+
*.feather
|
|
176
|
+
debug/*
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
# VS Code
|
|
180
|
+
.vscode/
|
|
181
|
+
|
|
182
|
+
.DS_Store
|
|
183
|
+
|
|
184
|
+
## Project
|
|
185
|
+
!src/mater_project_manager/src/lib/
|
|
186
|
+
|
|
187
|
+
## Tests
|
|
188
|
+
local-project/
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
stages:
|
|
2
|
+
- quality
|
|
3
|
+
- tests
|
|
4
|
+
|
|
5
|
+
lint:
|
|
6
|
+
stage: quality
|
|
7
|
+
image: python:3.12
|
|
8
|
+
rules:
|
|
9
|
+
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
10
|
+
before_script:
|
|
11
|
+
- pip install uv
|
|
12
|
+
- uv sync --group dev
|
|
13
|
+
script:
|
|
14
|
+
- uv run ruff check . --diff
|
|
15
|
+
- uv run ruff format --diff .
|
|
16
|
+
|
|
17
|
+
test:
|
|
18
|
+
stage: tests
|
|
19
|
+
image: python:3.12
|
|
20
|
+
rules:
|
|
21
|
+
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
22
|
+
before_script:
|
|
23
|
+
- pip install uv
|
|
24
|
+
- uv sync --group test
|
|
25
|
+
script:
|
|
26
|
+
- uv run pytest -v --tb=short
|
|
27
|
+
|
|
28
|
+
test-cov:
|
|
29
|
+
stage: tests
|
|
30
|
+
image: python:3.12
|
|
31
|
+
rules:
|
|
32
|
+
- if: $CI_COMMIT_BRANCH == "main"
|
|
33
|
+
before_script:
|
|
34
|
+
- pip install uv
|
|
35
|
+
- uv sync --group test
|
|
36
|
+
script:
|
|
37
|
+
- uv run pytest -v --cov=src/init_mater_project --cov-report=term --cov-report=xml
|
|
38
|
+
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
|
|
39
|
+
artifacts:
|
|
40
|
+
reports:
|
|
41
|
+
coverage_report:
|
|
42
|
+
coverage_format: cobertura
|
|
43
|
+
path: coverage.xml
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
## 0.4.0 - 2026-07-08
|
|
2
|
+
|
|
3
|
+
### Changed
|
|
4
|
+
- **Breaking**: Renamed the generator package from `init-mater-project` to `mater-project-manager`
|
|
5
|
+
- **Breaking**: Renamed the generated project CLI from `mater-cli` to `mpm`
|
|
6
|
+
- Renamed the Python package from `init_mater_project` to `mater_project_manager`
|
|
7
|
+
- Updated generated project metadata, README, documentation, examples, and integration tests to use `mater-project-manager` and `mpm`
|
|
8
|
+
- Added the `mater-project-manager` version to generated project READMEs for better traceability
|
|
9
|
+
|
|
10
|
+
## 0.3.0 - 2026-02-04
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- Project dimensions workflow with interactive notebook for combining local and reference data
|
|
14
|
+
- Explicit logging system with size-based rotation (logs written to `logs/` folder)
|
|
15
|
+
- Data validation helpers in transformation notebooks (types and required fields)
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
- **Breaking**: Data transformation now uses Jupyter notebooks instead of Python scripts
|
|
19
|
+
- Standardized `equivalence` and `parents_values` naming across codebase
|
|
20
|
+
- Dependencies: added `ipykernel`, `jupyterlab`, `nbformat`, `papermill`, `loguru`
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
- Dimension mapping now correctly handles dimensions (not aspects)
|
|
24
|
+
- Single hierarchy handling with "default" key
|
|
25
|
+
- File encoding issues in generated files
|
|
26
|
+
|
|
27
|
+
## 0.2.1 - 2025-01-09
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
- MATER version upgrade with Python 3.10 backward compatibility
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
- UTF-8 encoding for Windows compatibility across file operations
|
|
34
|
+
|
|
35
|
+
## 0.2.0 - 2025-12-01
|
|
36
|
+
|
|
37
|
+
### Added
|
|
38
|
+
- Sphinx auto-generated CLI documentation
|
|
39
|
+
- Streamlit visualization app for MATER outputs (charts, multi-simulations, data export)
|
|
40
|
+
- Excel format support via python-calamine
|
|
41
|
+
|
|
42
|
+
### Changed
|
|
43
|
+
- Project generation with improved default path handling
|
|
44
|
+
- MATER version upgrade with optimized dependencies
|
|
45
|
+
|
|
46
|
+
### Fixed
|
|
47
|
+
- Unit test echo messages
|
|
48
|
+
- Missing lib folder in .gitignore
|
|
49
|
+
- README badge and quick start section
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
+
of this license document, but changing it is not allowed.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
11
|
+
License, supplemented by the additional permissions listed below.
|
|
12
|
+
|
|
13
|
+
0. Additional Definitions.
|
|
14
|
+
|
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
17
|
+
General Public License.
|
|
18
|
+
|
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
|
20
|
+
other than an Application or a Combined Work as defined below.
|
|
21
|
+
|
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
25
|
+
of using an interface provided by the Library.
|
|
26
|
+
|
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
28
|
+
Application with the Library. The particular version of the Library
|
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
|
30
|
+
Version".
|
|
31
|
+
|
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
35
|
+
based on the Application, and not on the Linked Version.
|
|
36
|
+
|
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
38
|
+
object code and/or source code for the Application, including any data
|
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
41
|
+
|
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
43
|
+
|
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
|
46
|
+
|
|
47
|
+
2. Conveying Modified Versions.
|
|
48
|
+
|
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
|
51
|
+
that uses the facility (other than as an argument passed when the
|
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
|
53
|
+
version:
|
|
54
|
+
|
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
|
56
|
+
ensure that, in the event an Application does not supply the
|
|
57
|
+
function or data, the facility still operates, and performs
|
|
58
|
+
whatever part of its purpose remains meaningful, or
|
|
59
|
+
|
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
61
|
+
this License applicable to that copy.
|
|
62
|
+
|
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
64
|
+
|
|
65
|
+
The object code form of an Application may incorporate material from
|
|
66
|
+
a header file that is part of the Library. You may convey such object
|
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
|
68
|
+
material is not limited to numerical parameters, data structure
|
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
|
71
|
+
|
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
|
73
|
+
Library is used in it and that the Library and its use are
|
|
74
|
+
covered by this License.
|
|
75
|
+
|
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
77
|
+
document.
|
|
78
|
+
|
|
79
|
+
4. Combined Works.
|
|
80
|
+
|
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
|
82
|
+
taken together, effectively do not restrict modification of the
|
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
|
85
|
+
the following:
|
|
86
|
+
|
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
88
|
+
the Library is used in it and that the Library and its use are
|
|
89
|
+
covered by this License.
|
|
90
|
+
|
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
92
|
+
document.
|
|
93
|
+
|
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
|
95
|
+
execution, include the copyright notice for the Library among
|
|
96
|
+
these notices, as well as a reference directing the user to the
|
|
97
|
+
copies of the GNU GPL and this license document.
|
|
98
|
+
|
|
99
|
+
d) Do one of the following:
|
|
100
|
+
|
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
102
|
+
License, and the Corresponding Application Code in a form
|
|
103
|
+
suitable for, and under terms that permit, the user to
|
|
104
|
+
recombine or relink the Application with a modified version of
|
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
107
|
+
Corresponding Source.
|
|
108
|
+
|
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
111
|
+
a copy of the Library already present on the user's computer
|
|
112
|
+
system, and (b) will operate properly with a modified version
|
|
113
|
+
of the Library that is interface-compatible with the Linked
|
|
114
|
+
Version.
|
|
115
|
+
|
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
117
|
+
be required to provide such information under section 6 of the
|
|
118
|
+
GNU GPL, and only to the extent that such information is
|
|
119
|
+
necessary to install and execute a modified version of the
|
|
120
|
+
Combined Work produced by recombining or relinking the
|
|
121
|
+
Application with a modified version of the Linked Version. (If
|
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
126
|
+
for conveying Corresponding Source.)
|
|
127
|
+
|
|
128
|
+
5. Combined Libraries.
|
|
129
|
+
|
|
130
|
+
You may place library facilities that are a work based on the
|
|
131
|
+
Library side by side in a single library together with other library
|
|
132
|
+
facilities that are not Applications and are not covered by this
|
|
133
|
+
License, and convey such a combined library under terms of your
|
|
134
|
+
choice, if you do both of the following:
|
|
135
|
+
|
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
|
137
|
+
on the Library, uncombined with any other library facilities,
|
|
138
|
+
conveyed under the terms of this License.
|
|
139
|
+
|
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
|
141
|
+
is a work based on the Library, and explaining where to find the
|
|
142
|
+
accompanying uncombined form of the same work.
|
|
143
|
+
|
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
145
|
+
|
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
148
|
+
versions will be similar in spirit to the present version, but may
|
|
149
|
+
differ in detail to address new problems or concerns.
|
|
150
|
+
|
|
151
|
+
Each version is given a distinguishing version number. If the
|
|
152
|
+
Library as you received it specifies that a certain numbered version
|
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
|
154
|
+
applies to it, you have the option of following the terms and
|
|
155
|
+
conditions either of that published version or of any later version
|
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
|
160
|
+
|
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
164
|
+
permanent authorization for you to choose that version for the
|
|
165
|
+
Library.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
.PHONY: help install generate lint lint-fix test test-cov test-unit test-integration test-functional
|
|
2
|
+
|
|
3
|
+
# Default target - auto-generate help from comments
|
|
4
|
+
help: ## Show available commands
|
|
5
|
+
@echo "๐ Available commands:"
|
|
6
|
+
@grep -E '^[a-zA-Z_-]+:.*##' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*##"}; {printf " make %-10s - %s\n", $$1, $$2}'
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
install: ## Install mater_project_manager package in editable mode
|
|
10
|
+
uv pip install -e .
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
generate: ## Generate a MATER sample project locally
|
|
14
|
+
@rm -rf local-project
|
|
15
|
+
uv run mater-project-manager local-project
|
|
16
|
+
@echo "\nโ Local sample project generated\n"
|
|
17
|
+
cd local-project && uv run codium .
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
lint: ## Run code linting and formatting checks
|
|
21
|
+
@echo "Linting and formatting checks...\n"
|
|
22
|
+
@uv run ruff check . || echo "โ Linting issues found"
|
|
23
|
+
@uv run ruff format --check . || echo "โ Formatting issues found"
|
|
24
|
+
@echo "\n๐ Lint checks completed"
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
lint-fix: ## Fix linting issues automatically
|
|
28
|
+
@echo "Fixing linting and formatting issues...\n"
|
|
29
|
+
@uv run ruff check . --fix || echo "โ ๏ธ Some issues require manual fixing"
|
|
30
|
+
@uv run ruff format . || echo "โ Formatting failed"
|
|
31
|
+
@echo "\n๐ Lint fixes completed"
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
test: ## Run tests with verbose output
|
|
35
|
+
@echo "๐งช Running tests..."
|
|
36
|
+
@echo ""
|
|
37
|
+
uv sync --group test
|
|
38
|
+
@echo ""
|
|
39
|
+
uv run pytest -v --tb=short
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
test-cov: ## Run tests with coverage report
|
|
43
|
+
@echo "๐ Running tests with coverage..."
|
|
44
|
+
@echo ""
|
|
45
|
+
uv sync --group test
|
|
46
|
+
@echo ""
|
|
47
|
+
uv run pytest -v --tb=short --cov=src/mater_project_manager --cov-report=term-missing
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
test-unit: ## Run unit tests with verbose output
|
|
51
|
+
@echo "โก Running unit tests..."
|
|
52
|
+
@echo ""
|
|
53
|
+
uv sync --group test
|
|
54
|
+
@echo ""
|
|
55
|
+
uv run pytest tests/unit/ -v --tb=short
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
test-integration: ## Run integration tests with verbose output
|
|
59
|
+
@echo "๐ Running integration tests..."
|
|
60
|
+
@echo ""
|
|
61
|
+
uv sync --group test
|
|
62
|
+
@echo ""
|
|
63
|
+
uv run pytest tests/integration/ -v --tb=short
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
test-functional: ## Run functional tests with verbose output
|
|
67
|
+
@echo "๐ฏ Running functional tests..."
|
|
68
|
+
@echo ""
|
|
69
|
+
uv sync --group test
|
|
70
|
+
@echo ""
|
|
71
|
+
uv run pytest tests/functional/ -v --tb=short
|