patme 0.4.4__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.

Potentially problematic release.


This version of patme might be problematic. Click here for more details.

Files changed (46) hide show
  1. patme-0.4.4/LICENSE +21 -0
  2. patme-0.4.4/LICENSES/MIT.txt +9 -0
  3. patme-0.4.4/PKG-INFO +168 -0
  4. patme-0.4.4/README.md +138 -0
  5. patme-0.4.4/pyproject.toml +74 -0
  6. patme-0.4.4/src/fa_pyutils.py +61 -0
  7. patme-0.4.4/src/patme/__init__.py +52 -0
  8. patme-0.4.4/src/patme/buildtools/__init__.py +7 -0
  9. patme-0.4.4/src/patme/buildtools/rce_releasecreator.py +336 -0
  10. patme-0.4.4/src/patme/buildtools/release.py +26 -0
  11. patme-0.4.4/src/patme/femtools/__init__.py +5 -0
  12. patme-0.4.4/src/patme/femtools/abqmsgfilechecker.py +137 -0
  13. patme-0.4.4/src/patme/femtools/fecall.py +1092 -0
  14. patme-0.4.4/src/patme/geometry/__init__.py +0 -0
  15. patme-0.4.4/src/patme/geometry/area.py +124 -0
  16. patme-0.4.4/src/patme/geometry/coordinatesystem.py +635 -0
  17. patme-0.4.4/src/patme/geometry/intersect.py +284 -0
  18. patme-0.4.4/src/patme/geometry/line.py +183 -0
  19. patme-0.4.4/src/patme/geometry/misc.py +420 -0
  20. patme-0.4.4/src/patme/geometry/plane.py +464 -0
  21. patme-0.4.4/src/patme/geometry/rotate.py +244 -0
  22. patme-0.4.4/src/patme/geometry/scale.py +152 -0
  23. patme-0.4.4/src/patme/geometry/shape2d.py +50 -0
  24. patme-0.4.4/src/patme/geometry/transformations.py +1831 -0
  25. patme-0.4.4/src/patme/geometry/translate.py +139 -0
  26. patme-0.4.4/src/patme/mechanics/__init__.py +4 -0
  27. patme-0.4.4/src/patme/mechanics/loads.py +435 -0
  28. patme-0.4.4/src/patme/mechanics/material.py +1260 -0
  29. patme-0.4.4/src/patme/service/__init__.py +7 -0
  30. patme-0.4.4/src/patme/service/decorators.py +85 -0
  31. patme-0.4.4/src/patme/service/duration.py +96 -0
  32. patme-0.4.4/src/patme/service/exceptionhook.py +104 -0
  33. patme-0.4.4/src/patme/service/exceptions.py +36 -0
  34. patme-0.4.4/src/patme/service/io/__init__.py +3 -0
  35. patme-0.4.4/src/patme/service/io/basewriter.py +122 -0
  36. patme-0.4.4/src/patme/service/logger.py +375 -0
  37. patme-0.4.4/src/patme/service/mathutils.py +108 -0
  38. patme-0.4.4/src/patme/service/misc.py +71 -0
  39. patme-0.4.4/src/patme/service/moveimports.py +217 -0
  40. patme-0.4.4/src/patme/service/stringutils.py +419 -0
  41. patme-0.4.4/src/patme/service/systemutils.py +290 -0
  42. patme-0.4.4/src/patme/sshtools/__init__.py +3 -0
  43. patme-0.4.4/src/patme/sshtools/cara.py +435 -0
  44. patme-0.4.4/src/patme/sshtools/clustercaller.py +420 -0
  45. patme-0.4.4/src/patme/sshtools/facluster.py +350 -0
  46. patme-0.4.4/src/patme/sshtools/sshcall.py +168 -0
patme-0.4.4/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Freund, Sebastian
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) <year> <copyright holders>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
patme-0.4.4/PKG-INFO ADDED
@@ -0,0 +1,168 @@
1
+ Metadata-Version: 2.3
2
+ Name: patme
3
+ Version: 0.4.4
4
+ Summary: Utilities for software builds, documentation, cluster interaction, calling fem tools, logging, exceptions and simple geometric and mechanical operations.
5
+ License: DLR 2025
6
+ Keywords: build,cluster,fem,log,exception
7
+ Author: Sebastian Freund
8
+ Author-email: sebastian.freund@dlr.de
9
+ Maintainer: Garbade, Marc
10
+ Maintainer-email: <marc.garbade@dlr.de>
11
+ Requires-Python: >=3.9,<4.0
12
+ Classifier: License :: Other/Proprietary License
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.9
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Requires-Dist: importlib_metadata
20
+ Requires-Dist: numpy (<2)
21
+ Requires-Dist: scipy
22
+ Requires-Dist: sshconf
23
+ Requires-Dist: tomlkit
24
+ Project-URL: Changelog, https://gitlab.dlr.de/sy-stm/software/patme/-/blob/master/changelog.md
25
+ Project-URL: Documentation, https://sy-stm.pages.gitlab.dlr.de/software/patme/
26
+ Project-URL: Homepage, https://gitlab.dlr.de/fa_sw/patme
27
+ Project-URL: Repository, https://gitlab.dlr.de/fa_sw/patme
28
+ Description-Content-Type: text/markdown
29
+
30
+ <!--
31
+ SPDX-FileCopyrightText: 2022 German Aerospace Center (DLR)
32
+
33
+ SPDX-License-Identifier: MIT
34
+ -->
35
+
36
+ # patme
37
+
38
+ Utilities for basic software engineering, geometry, mechanics support and infrastructure handling.
39
+
40
+ [![pipeline status](https://gitlab.dlr.de/sy-stm/software/patme/badges/master/pipeline.svg)](https://gitlab.dlr.de/sy-stm/software/patme/-/commits/master)
41
+ [![coverage report](https://gitlab.dlr.de/sy-stm/software/patme/badges/master/coverage.svg)](https://ggitlab.dlr.de/sy-stm/software/patme/-/commits/master)
42
+ [![Latest Release](https://gitlab.dlr.de/sy-stm/software/patme/-/badges/release.svg)](https://gitlab.dlr.de/sy-stm/software/patme/-/releases)
43
+
44
+ ## Features
45
+ The full documentation can be found [here](https://sy-stm.pages.gitlab.dlr.de/software/patme/).
46
+
47
+ ### Software Engineering Features
48
+ - software builds
49
+ - release automation
50
+ - build documentation (sphinx)
51
+ - logging
52
+
53
+ Planned items:
54
+ - exception hooks
55
+ - (potentially) decorators
56
+ - Create RCE components and push them on an RCE server
57
+
58
+ ### Common useful features
59
+ Planned items:
60
+ - Call FEM software
61
+ - Plot samples (Matplotlib, Latex-Pgfplots)
62
+
63
+ ### DLR-SY specific features
64
+ Planned items:
65
+ - SSH interface
66
+ - SSH based cluster interaction
67
+ - Run several jobs (FEM, python, matlab etc.) as samples with various parallelization options
68
+ - parallel local
69
+ - parallel remote
70
+ - asynchronous sampling (e.g. dependend on license availability)
71
+
72
+
73
+ software builds, documentation, cluster interaction, calling fem tools, logging, exceptions.
74
+
75
+
76
+
77
+ ## Installation
78
+
79
+ At least you require Python 3.
80
+
81
+ ### Installation from source
82
+ Get patme source from
83
+
84
+ > https://gitlab.dlr.de/sy-stm/software/patme.git
85
+
86
+ and add the /src folder to pythonpath in the environment variables
87
+
88
+ ### Installation as python package
89
+ Install it from [the gitlab packacke registry](https://gitlab.dlr.de/sy-stm/software/patme/-/packages)
90
+
91
+ You can download the latest artifact (*.whl) and install it using
92
+
93
+
94
+ > cd patme
95
+ > python setup.py install patme<version>.whl
96
+
97
+
98
+ ### Test the installation
99
+ In python execute:
100
+
101
+ > import patme
102
+
103
+ ### Developers
104
+
105
+ Developers may also install the pre-commit hook.
106
+
107
+ **Precommit**
108
+ 1. install the pre-commit
109
+ > pip install pre-commit
110
+ 2. In the patme folder
111
+ > pre-commit install
112
+
113
+ This enables the pre-commit hooks defined in _.pre-commit-config.yaml_
114
+ and eases your commits and successful pipline runs.
115
+
116
+
117
+ ## CI Pipeline and Jobs for Developers
118
+
119
+ If you encounter any failed job on the pipeline you can run them locally for more information.
120
+ (prerequisite: have _make_ and _poetry_ installed [e.g. conda install make poetry])
121
+
122
+ See all availabe make targets used for the ci-jobs
123
+
124
+ > make list
125
+
126
+ Find the target with matching names and execute them locally e.g.:
127
+ > make test
128
+
129
+ If **check-formatting** fails, run the following to fix issues.
130
+ > make formatting
131
+
132
+ If **check-license-metadata** fails, run
133
+ > make check-license-metadata
134
+
135
+ identify the corresponding filename and run the following (include the filename in $filename)
136
+ > poetry run reuse addheader --copyright="German Aerospace Center (DLR)" --license="MIT" $filename
137
+
138
+ ## Contributing to _patme_
139
+
140
+ We welcome your contribution!
141
+
142
+ If you want to provide a code change, please:
143
+
144
+ * Create a fork of the GitLab project.
145
+ * Develop the feature/patch
146
+ * Provide a merge request.
147
+
148
+ > If it is the first time that you contribute, please add yourself to the list
149
+ > of contributors below.
150
+
151
+
152
+ ## Citing
153
+
154
+ No citing required
155
+
156
+ ## License
157
+
158
+ MIT
159
+
160
+ ## Change Log
161
+
162
+ see [changelog](changelog.md)
163
+
164
+ ## Authors
165
+
166
+ [Sebastian Freund](mailto:sebastian.freund@dlr.de)
167
+ [Andreas Schuster](mailto:andreas.schuster@dlr.de)
168
+
patme-0.4.4/README.md ADDED
@@ -0,0 +1,138 @@
1
+ <!--
2
+ SPDX-FileCopyrightText: 2022 German Aerospace Center (DLR)
3
+
4
+ SPDX-License-Identifier: MIT
5
+ -->
6
+
7
+ # patme
8
+
9
+ Utilities for basic software engineering, geometry, mechanics support and infrastructure handling.
10
+
11
+ [![pipeline status](https://gitlab.dlr.de/sy-stm/software/patme/badges/master/pipeline.svg)](https://gitlab.dlr.de/sy-stm/software/patme/-/commits/master)
12
+ [![coverage report](https://gitlab.dlr.de/sy-stm/software/patme/badges/master/coverage.svg)](https://ggitlab.dlr.de/sy-stm/software/patme/-/commits/master)
13
+ [![Latest Release](https://gitlab.dlr.de/sy-stm/software/patme/-/badges/release.svg)](https://gitlab.dlr.de/sy-stm/software/patme/-/releases)
14
+
15
+ ## Features
16
+ The full documentation can be found [here](https://sy-stm.pages.gitlab.dlr.de/software/patme/).
17
+
18
+ ### Software Engineering Features
19
+ - software builds
20
+ - release automation
21
+ - build documentation (sphinx)
22
+ - logging
23
+
24
+ Planned items:
25
+ - exception hooks
26
+ - (potentially) decorators
27
+ - Create RCE components and push them on an RCE server
28
+
29
+ ### Common useful features
30
+ Planned items:
31
+ - Call FEM software
32
+ - Plot samples (Matplotlib, Latex-Pgfplots)
33
+
34
+ ### DLR-SY specific features
35
+ Planned items:
36
+ - SSH interface
37
+ - SSH based cluster interaction
38
+ - Run several jobs (FEM, python, matlab etc.) as samples with various parallelization options
39
+ - parallel local
40
+ - parallel remote
41
+ - asynchronous sampling (e.g. dependend on license availability)
42
+
43
+
44
+ software builds, documentation, cluster interaction, calling fem tools, logging, exceptions.
45
+
46
+
47
+
48
+ ## Installation
49
+
50
+ At least you require Python 3.
51
+
52
+ ### Installation from source
53
+ Get patme source from
54
+
55
+ > https://gitlab.dlr.de/sy-stm/software/patme.git
56
+
57
+ and add the /src folder to pythonpath in the environment variables
58
+
59
+ ### Installation as python package
60
+ Install it from [the gitlab packacke registry](https://gitlab.dlr.de/sy-stm/software/patme/-/packages)
61
+
62
+ You can download the latest artifact (*.whl) and install it using
63
+
64
+
65
+ > cd patme
66
+ > python setup.py install patme<version>.whl
67
+
68
+
69
+ ### Test the installation
70
+ In python execute:
71
+
72
+ > import patme
73
+
74
+ ### Developers
75
+
76
+ Developers may also install the pre-commit hook.
77
+
78
+ **Precommit**
79
+ 1. install the pre-commit
80
+ > pip install pre-commit
81
+ 2. In the patme folder
82
+ > pre-commit install
83
+
84
+ This enables the pre-commit hooks defined in _.pre-commit-config.yaml_
85
+ and eases your commits and successful pipline runs.
86
+
87
+
88
+ ## CI Pipeline and Jobs for Developers
89
+
90
+ If you encounter any failed job on the pipeline you can run them locally for more information.
91
+ (prerequisite: have _make_ and _poetry_ installed [e.g. conda install make poetry])
92
+
93
+ See all availabe make targets used for the ci-jobs
94
+
95
+ > make list
96
+
97
+ Find the target with matching names and execute them locally e.g.:
98
+ > make test
99
+
100
+ If **check-formatting** fails, run the following to fix issues.
101
+ > make formatting
102
+
103
+ If **check-license-metadata** fails, run
104
+ > make check-license-metadata
105
+
106
+ identify the corresponding filename and run the following (include the filename in $filename)
107
+ > poetry run reuse addheader --copyright="German Aerospace Center (DLR)" --license="MIT" $filename
108
+
109
+ ## Contributing to _patme_
110
+
111
+ We welcome your contribution!
112
+
113
+ If you want to provide a code change, please:
114
+
115
+ * Create a fork of the GitLab project.
116
+ * Develop the feature/patch
117
+ * Provide a merge request.
118
+
119
+ > If it is the first time that you contribute, please add yourself to the list
120
+ > of contributors below.
121
+
122
+
123
+ ## Citing
124
+
125
+ No citing required
126
+
127
+ ## License
128
+
129
+ MIT
130
+
131
+ ## Change Log
132
+
133
+ see [changelog](changelog.md)
134
+
135
+ ## Authors
136
+
137
+ [Sebastian Freund](mailto:sebastian.freund@dlr.de)
138
+ [Andreas Schuster](mailto:andreas.schuster@dlr.de)
@@ -0,0 +1,74 @@
1
+ # SPDX-FileCopyrightText: 2022 German Aerospace Center (DLR)
2
+ #
3
+ # SPDX-License-Identifier: MIT
4
+
5
+ [project]
6
+ name = "patme"
7
+ version = "0.4.4"
8
+ description = "Utilities for software builds, documentation, cluster interaction, calling fem tools, logging, exceptions and simple geometric and mechanical operations."
9
+ license = "DLR 2025"
10
+ authors = [
11
+ { name = "Sebastian Freund", email = "sebastian.freund@dlr.de" },
12
+ { name = "Andreas Schuster", email = "andreas.schuster@dlr.de" },
13
+ ]
14
+ maintainers = [
15
+ {name = "Garbade, Marc", email = "<marc.garbade@dlr.de>"}]
16
+ readme = "README.md"
17
+ keywords = ["build", "cluster", "fem", "log", "exception"]
18
+ requires-python = ">=3.9,<4.0"
19
+ dependencies = [
20
+ "numpy<2",
21
+ "scipy",
22
+ "importlib_metadata",
23
+ "tomlkit",
24
+ "sshconf"
25
+ ]
26
+
27
+ [project.urls]
28
+ Homepage = "https://gitlab.dlr.de/fa_sw/patme"
29
+ Changelog = "https://gitlab.dlr.de/sy-stm/software/patme/-/blob/master/changelog.md"
30
+ Repository = "https://gitlab.dlr.de/fa_sw/patme"
31
+ Documentation = "https://sy-stm.pages.gitlab.dlr.de/software/patme/"
32
+
33
+ [tool.poetry]
34
+ include = [{ path = "src"}]
35
+
36
+ [tool.poetry.scripts]
37
+ run-fe = "patme.femtools.fecall:run_fe_cli"
38
+ #sample-calculator = "sample_calculator.main:cmd_main"
39
+
40
+ [tool.poetry.group.opt.dependencies]
41
+ sshconf = [{version = "*", python = "^3.7", optional=true}]
42
+
43
+ [tool.poetry.group.dev.dependencies]
44
+ flake8 = "*"
45
+ black = "*"
46
+ isort = "*"
47
+ reuse = "*"
48
+ Sphinx = "*"
49
+ sphinx_rtd_theme = "*"
50
+ sphinxcontrib-bibtex = "*"
51
+ setuptools ="*" # due to problems with pybtex which sphinxcontrib-bibtex depends on. Check "make docs" on gitlab runner before removing it
52
+ pre-commit = "*"
53
+
54
+ [tool.poetry.group.test.dependencies]
55
+ pytest = "*"
56
+ pytest-cov = "*"
57
+
58
+ [tool.coverage.run]
59
+ branch = true
60
+
61
+ [tool.coverage.html]
62
+ directory = "build/htmlcov"
63
+
64
+ [tool.black]
65
+ line-length = 120
66
+ exclude = "docs"
67
+
68
+ [tool.isort]
69
+ line_length = 120
70
+ skip = "docs"
71
+ profile = 'black'
72
+
73
+ [tool.pytest.ini_options]
74
+ addopts = "--import-mode=importlib"
@@ -0,0 +1,61 @@
1
+ # Copyright (C) 2020 Deutsches Zentrum fuer Luft- und Raumfahrt(DLR, German Aerospace Center) <www.dlr.de>
2
+ # SPDX-FileCopyrightText: 2022 German Aerospace Center (DLR)
3
+ #
4
+ # SPDX-License-Identifier: MIT
5
+
6
+ # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7
+ # patme #
8
+ # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9
+ """
10
+ Top-level compatibility interface for former fa-pyutils as a standalone python package.
11
+
12
+ @note: patme
13
+ Created on 19.11.2024
14
+
15
+ @version: 1.0
16
+ ----------------------------------------------------------------------------------------------
17
+ @requires:
18
+ -
19
+
20
+ @change:
21
+ -
22
+
23
+ @author: garb_ma [DLR-SY,STM Braunschweig]
24
+ ----------------------------------------------------------------------------------------------
25
+ """
26
+
27
+ ## @package patme
28
+ # Top-level compatibility interface for patme defining a new alias as a python package.
29
+ ## @authors
30
+ # Marc Garbade
31
+ ## @date
32
+ # 19.11.2024
33
+
34
+ import os
35
+ import pkgutil
36
+ import sys
37
+
38
+ # List of all attributes and modules available during wild import
39
+ __all__ = []
40
+
41
+ # Create a valid package name
42
+ __package__ = os.path.splitext(os.path.basename(__file__))[0]
43
+
44
+ # Import deprecated module. Create an alias.
45
+ import patme
46
+
47
+ sys.modules[__package__] = patme
48
+
49
+ # Create a valid path identifier
50
+ __path__ = [__file__]
51
+
52
+ ## Iterate through all modules at runtime
53
+ # Source: https://stackoverflow.com/questions/3365740/how-to-import-all-submodules
54
+ for loader, module_name, is_pkg in pkgutil.walk_packages(patme.__path__):
55
+ __all__.append(module_name)
56
+ _module = loader.find_module(module_name).load_module(module_name)
57
+ globals()[module_name] = _module
58
+
59
+ if __name__ == "__main__":
60
+ sys.exit()
61
+ pass
@@ -0,0 +1,52 @@
1
+ # Copyright (C) 2020 Deutsches Zentrum fuer Luft- und Raumfahrt(DLR, German Aerospace Center) <www.dlr.de>
2
+ # SPDX-FileCopyrightText: 2022 German Aerospace Center (DLR)
3
+ #
4
+ # SPDX-License-Identifier: MIT
5
+
6
+ """
7
+ Utilities for software builds, documentation, cluster interaction, calling fem tools, logging, exceptions and simple geometric and mechanical operations.
8
+
9
+ """
10
+ from pathlib import Path
11
+
12
+ import importlib_metadata
13
+ import tomlkit
14
+
15
+ name = Path(__file__).parent.name
16
+
17
+
18
+ def getPyprojectMeta(initPath):
19
+ """Returns project data from pyproject.toml
20
+
21
+ :param initPath: path to the packages main __init__.py file
22
+ :return: dict with entries from tool.poetry in pyproject.toml
23
+ """
24
+ with open(Path(Path(initPath).parents[2], "pyproject.toml")) as pyproject:
25
+ file_contents = pyproject.read()
26
+
27
+ contents_dict = tomlkit.parse(file_contents)
28
+ try:
29
+ return contents_dict["project"]
30
+ except:
31
+ return contents_dict["tool"]["poetry"]
32
+
33
+
34
+ try:
35
+ # package is installed
36
+ version = importlib_metadata.version(name)
37
+ programDir = str(Path(__file__).parent)
38
+ except importlib_metadata.PackageNotFoundError:
39
+ # package is not installed, read pyproject.toml
40
+ try:
41
+ # We have the full GitLab repository
42
+ pkgMeta = getPyprojectMeta(__file__)
43
+ version = str(pkgMeta["version"])
44
+ programDir = str(Path(__file__).parents[3])
45
+ except FileNotFoundError:
46
+ # We have only the source code
47
+ version = str("version not provided")
48
+ programDir = str(Path(__file__).parent)
49
+
50
+
51
+ # Variables
52
+ epsilon = 1e-8
@@ -0,0 +1,7 @@
1
+ # SPDX-FileCopyrightText: 2022 German Aerospace Center (DLR)
2
+ #
3
+ # SPDX-License-Identifier: MIT
4
+
5
+ """
6
+ The modules of this package support the build and deployment of python packages.
7
+ """