daitum-core 0.1.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.
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2026 Daitum
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
189
+ implied. See the License for the specific language governing
190
+ permissions and limitations under the License.
@@ -0,0 +1,251 @@
1
+ Metadata-Version: 2.4
2
+ Name: daitum-core
3
+ Version: 0.1.0
4
+ Summary: Meta-package installing daitum-model, daitum-ui, and daitum-configuration
5
+ Author: Daitum
6
+ License: Apache License
7
+ Version 2.0, January 2004
8
+ http://www.apache.org/licenses/
9
+
10
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
11
+
12
+ 1. Definitions.
13
+
14
+ "License" shall mean the terms and conditions for use, reproduction,
15
+ and distribution as defined by Sections 1 through 9 of this document.
16
+
17
+ "Licensor" shall mean the copyright owner or entity authorized by
18
+ the copyright owner that is granting the License.
19
+
20
+ "Legal Entity" shall mean the union of the acting entity and all
21
+ other entities that control, are controlled by, or are under common
22
+ control with that entity. For the purposes of this definition,
23
+ "control" means (i) the power, direct or indirect, to cause the
24
+ direction or management of such entity, whether by contract or
25
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
26
+ outstanding shares, or (iii) beneficial ownership of such entity.
27
+
28
+ "You" (or "Your") shall mean an individual or Legal Entity
29
+ exercising permissions granted by this License.
30
+
31
+ "Source" form shall mean the preferred form for making modifications,
32
+ including but not limited to software source code, documentation
33
+ source, and configuration files.
34
+
35
+ "Object" form shall mean any form resulting from mechanical
36
+ transformation or translation of a Source form, including but
37
+ not limited to compiled object code, generated documentation,
38
+ and conversions to other media types.
39
+
40
+ "Work" shall mean the work of authorship, whether in Source or
41
+ Object form, made available under the License, as indicated by a
42
+ copyright notice that is included in or attached to the work
43
+ (an example is provided in the Appendix below).
44
+
45
+ "Derivative Works" shall mean any work, whether in Source or Object
46
+ form, that is based on (or derived from) the Work and for which the
47
+ editorial revisions, annotations, elaborations, or other modifications
48
+ represent, as a whole, an original work of authorship. For the purposes
49
+ of this License, Derivative Works shall not include works that remain
50
+ separable from, or merely link (or bind by name) to the interfaces of,
51
+ the Work and Derivative Works thereof.
52
+
53
+ "Contribution" shall mean any work of authorship, including
54
+ the original version of the Work and any modifications or additions
55
+ to that Work or Derivative Works thereof, that is intentionally
56
+ submitted to Licensor for inclusion in the Work by the copyright owner
57
+ or by an individual or Legal Entity authorized to submit on behalf of
58
+ the copyright owner. For the purposes of this definition, "submitted"
59
+ means any form of electronic, verbal, or written communication sent
60
+ to the Licensor or its representatives, including but not limited to
61
+ communication on electronic mailing lists, source code control systems,
62
+ and issue tracking systems that are managed by, or on behalf of, the
63
+ Licensor for the purpose of discussing and improving the Work, but
64
+ excluding communication that is conspicuously marked or otherwise
65
+ designated in writing by the copyright owner as "Not a Contribution."
66
+
67
+ "Contributor" shall mean Licensor and any individual or Legal Entity
68
+ on behalf of whom a Contribution has been received by Licensor and
69
+ subsequently incorporated within the Work.
70
+
71
+ 2. Grant of Copyright License. Subject to the terms and conditions of
72
+ this License, each Contributor hereby grants to You a perpetual,
73
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
74
+ copyright license to reproduce, prepare Derivative Works of,
75
+ publicly display, publicly perform, sublicense, and distribute the
76
+ Work and such Derivative Works in Source or Object form.
77
+
78
+ 3. Grant of Patent License. Subject to the terms and conditions of
79
+ this License, each Contributor hereby grants to You a perpetual,
80
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
81
+ (except as stated in this section) patent license to make, have made,
82
+ use, offer to sell, sell, import, and otherwise transfer the Work,
83
+ where such license applies only to those patent claims licensable
84
+ by such Contributor that are necessarily infringed by their
85
+ Contribution(s) alone or by combination of their Contribution(s)
86
+ with the Work to which such Contribution(s) was submitted. If You
87
+ institute patent litigation against any entity (including a
88
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
89
+ or a Contribution incorporated within the Work constitutes direct
90
+ or contributory patent infringement, then any patent licenses
91
+ granted to You under this License for that Work shall terminate
92
+ as of the date such litigation is filed.
93
+
94
+ 4. Redistribution. You may reproduce and distribute copies of the
95
+ Work or Derivative Works thereof in any medium, with or without
96
+ modifications, and in Source or Object form, provided that You
97
+ meet the following conditions:
98
+
99
+ (a) You must give any other recipients of the Work or
100
+ Derivative Works a copy of this License; and
101
+
102
+ (b) You must cause any modified files to carry prominent notices
103
+ stating that You changed the files; and
104
+
105
+ (c) You must retain, in the Source form of any Derivative Works
106
+ that You distribute, all copyright, patent, trademark, and
107
+ attribution notices from the Source form of the Work,
108
+ excluding those notices that do not pertain to any part of
109
+ the Derivative Works; and
110
+
111
+ (d) If the Work includes a "NOTICE" text file as part of its
112
+ distribution, then any Derivative Works that You distribute must
113
+ include a readable copy of the attribution notices contained
114
+ within such NOTICE file, excluding those notices that do not
115
+ pertain to any part of the Derivative Works, in at least one
116
+ of the following places: within a NOTICE text file distributed
117
+ as part of the Derivative Works; within the Source form or
118
+ documentation, if provided along with the Derivative Works; or,
119
+ within a display generated by the Derivative Works, if and
120
+ wherever such third-party notices normally appear. The contents
121
+ of the NOTICE file are for informational purposes only and
122
+ do not modify the License. You may add Your own attribution
123
+ notices within Derivative Works that You distribute, alongside
124
+ or as an addendum to the NOTICE text from the Work, provided
125
+ that such additional attribution notices cannot be construed
126
+ as modifying the License.
127
+
128
+ You may add Your own copyright statement to Your modifications and
129
+ may provide additional or different license terms and conditions
130
+ for use, reproduction, or distribution of Your modifications, or
131
+ for any such Derivative Works as a whole, provided Your use,
132
+ reproduction, and distribution of the Work otherwise complies with
133
+ the conditions stated in this License.
134
+
135
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
136
+ any Contribution intentionally submitted for inclusion in the Work
137
+ by You to the Licensor shall be under the terms and conditions of
138
+ this License, without any additional terms or conditions.
139
+ Notwithstanding the above, nothing herein shall supersede or modify
140
+ the terms of any separate license agreement you may have executed
141
+ with Licensor regarding such Contributions.
142
+
143
+ 6. Trademarks. This License does not grant permission to use the trade
144
+ names, trademarks, service marks, or product names of the Licensor,
145
+ except as required for reasonable and customary use in describing the
146
+ origin of the Work and reproducing the content of the NOTICE file.
147
+
148
+ 7. Disclaimer of Warranty. Unless required by applicable law or
149
+ agreed to in writing, Licensor provides the Work (and each
150
+ Contributor provides its Contributions) on an "AS IS" BASIS,
151
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
152
+ implied, including, without limitation, any warranties or conditions
153
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
154
+ PARTICULAR PURPOSE. You are solely responsible for determining the
155
+ appropriateness of using or redistributing the Work and assume any
156
+ risks associated with Your exercise of permissions under this License.
157
+
158
+ 8. Limitation of Liability. In no event and under no legal theory,
159
+ whether in tort (including negligence), contract, or otherwise,
160
+ unless required by applicable law (such as deliberate and grossly
161
+ negligent acts) or agreed to in writing, shall any Contributor be
162
+ liable to You for damages, including any direct, indirect, special,
163
+ incidental, or consequential damages of any character arising as a
164
+ result of this License or out of the use or inability to use the
165
+ Work (including but not limited to damages for loss of goodwill,
166
+ work stoppage, computer failure or malfunction, or any and all
167
+ other commercial damages or losses), even if such Contributor
168
+ has been advised of the possibility of such damages.
169
+
170
+ 9. Accepting Warranty or Additional Liability. While redistributing
171
+ the Work or Derivative Works thereof, You may choose to offer,
172
+ and charge a fee for, acceptance of support, warranty, indemnity,
173
+ or other liability obligations and/or rights consistent with this
174
+ License. However, in accepting such obligations, You may act only
175
+ on Your own behalf and on Your sole responsibility, not on behalf
176
+ of any other Contributor, and only if You agree to indemnify,
177
+ defend, and hold each Contributor harmless for any liability
178
+ incurred by, or claims asserted against, such Contributor by reason
179
+ of your accepting any such warranty or additional liability.
180
+
181
+ END OF TERMS AND CONDITIONS
182
+
183
+ Copyright 2026 Daitum
184
+
185
+ Licensed under the Apache License, Version 2.0 (the "License");
186
+ you may not use this file except in compliance with the License.
187
+ You may obtain a copy of the License at
188
+
189
+ http://www.apache.org/licenses/LICENSE-2.0
190
+
191
+ Unless required by applicable law or agreed to in writing, software
192
+ distributed under the License is distributed on an "AS IS" BASIS,
193
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
194
+ implied. See the License for the specific language governing
195
+ permissions and limitations under the License.
196
+
197
+ Project-URL: Homepage, https://daitum.com
198
+ Project-URL: Documentation, https://daitum-core.readthedocs.io
199
+ Project-URL: Repository, https://github.com/daitumapi/daitum-core
200
+ Keywords: optimisation,modelling,daitum
201
+ Classifier: Development Status :: 3 - Alpha
202
+ Classifier: Intended Audience :: Developers
203
+ Classifier: License :: OSI Approved :: Apache Software License
204
+ Classifier: Programming Language :: Python :: 3
205
+ Classifier: Programming Language :: Python :: 3.10
206
+ Classifier: Programming Language :: Python :: 3.11
207
+ Classifier: Programming Language :: Python :: 3.12
208
+ Requires-Python: >=3.10
209
+ Description-Content-Type: text/markdown
210
+ License-File: LICENSE
211
+ Requires-Dist: daitum-model==0.1.0
212
+ Requires-Dist: daitum-ui==0.1.0
213
+ Requires-Dist: daitum-configuration==0.1.0
214
+ Provides-Extra: dev
215
+ Requires-Dist: black==26.1.0; extra == "dev"
216
+ Requires-Dist: ruff==0.14.13; extra == "dev"
217
+ Requires-Dist: mypy==1.19.1; extra == "dev"
218
+ Requires-Dist: pytest==9.0.2; extra == "dev"
219
+ Requires-Dist: types-setuptools>=80.9.0; extra == "dev"
220
+ Provides-Extra: docs
221
+ Requires-Dist: sphinx>=7.0; extra == "docs"
222
+ Requires-Dist: sphinx-autodoc-typehints>=1.25; extra == "docs"
223
+ Requires-Dist: furo>=2024.1.29; extra == "docs"
224
+ Dynamic: license-file
225
+
226
+ # daitum-core
227
+
228
+ Meta-package for the Daitum Python SDK. Installing `daitum-core` installs all three
229
+ sub-packages in one step.
230
+
231
+ ## Installation
232
+
233
+ ```bash
234
+ pip install daitum-core
235
+ ```
236
+
237
+ ## Sub-packages
238
+
239
+ | Package | Description | PyPI |
240
+ |---------|-------------|------|
241
+ | [`daitum-model`](https://pypi.org/project/daitum-model/) | Model and formula generation | `pip install daitum-model` |
242
+ | [`daitum-ui`](https://pypi.org/project/daitum-ui/) | UI definition generation | `pip install daitum-ui` |
243
+ | [`daitum-configuration`](https://pypi.org/project/daitum-configuration/) | Model configuration generation | `pip install daitum-configuration` |
244
+
245
+ ## Documentation
246
+
247
+ Full documentation is available at [daitum-core.readthedocs.io](https://daitum-core.readthedocs.io).
248
+
249
+ ## Licence
250
+
251
+ Apache 2.0 — see [LICENSE](https://github.com/daitumapi/daitum-core/blob/main/LICENSE).
@@ -0,0 +1,26 @@
1
+ # daitum-core
2
+
3
+ Meta-package for the Daitum Python SDK. Installing `daitum-core` installs all three
4
+ sub-packages in one step.
5
+
6
+ ## Installation
7
+
8
+ ```bash
9
+ pip install daitum-core
10
+ ```
11
+
12
+ ## Sub-packages
13
+
14
+ | Package | Description | PyPI |
15
+ |---------|-------------|------|
16
+ | [`daitum-model`](https://pypi.org/project/daitum-model/) | Model and formula generation | `pip install daitum-model` |
17
+ | [`daitum-ui`](https://pypi.org/project/daitum-ui/) | UI definition generation | `pip install daitum-ui` |
18
+ | [`daitum-configuration`](https://pypi.org/project/daitum-configuration/) | Model configuration generation | `pip install daitum-configuration` |
19
+
20
+ ## Documentation
21
+
22
+ Full documentation is available at [daitum-core.readthedocs.io](https://daitum-core.readthedocs.io).
23
+
24
+ ## Licence
25
+
26
+ Apache 2.0 — see [LICENSE](https://github.com/daitumapi/daitum-core/blob/main/LICENSE).
@@ -0,0 +1,251 @@
1
+ Metadata-Version: 2.4
2
+ Name: daitum-core
3
+ Version: 0.1.0
4
+ Summary: Meta-package installing daitum-model, daitum-ui, and daitum-configuration
5
+ Author: Daitum
6
+ License: Apache License
7
+ Version 2.0, January 2004
8
+ http://www.apache.org/licenses/
9
+
10
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
11
+
12
+ 1. Definitions.
13
+
14
+ "License" shall mean the terms and conditions for use, reproduction,
15
+ and distribution as defined by Sections 1 through 9 of this document.
16
+
17
+ "Licensor" shall mean the copyright owner or entity authorized by
18
+ the copyright owner that is granting the License.
19
+
20
+ "Legal Entity" shall mean the union of the acting entity and all
21
+ other entities that control, are controlled by, or are under common
22
+ control with that entity. For the purposes of this definition,
23
+ "control" means (i) the power, direct or indirect, to cause the
24
+ direction or management of such entity, whether by contract or
25
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
26
+ outstanding shares, or (iii) beneficial ownership of such entity.
27
+
28
+ "You" (or "Your") shall mean an individual or Legal Entity
29
+ exercising permissions granted by this License.
30
+
31
+ "Source" form shall mean the preferred form for making modifications,
32
+ including but not limited to software source code, documentation
33
+ source, and configuration files.
34
+
35
+ "Object" form shall mean any form resulting from mechanical
36
+ transformation or translation of a Source form, including but
37
+ not limited to compiled object code, generated documentation,
38
+ and conversions to other media types.
39
+
40
+ "Work" shall mean the work of authorship, whether in Source or
41
+ Object form, made available under the License, as indicated by a
42
+ copyright notice that is included in or attached to the work
43
+ (an example is provided in the Appendix below).
44
+
45
+ "Derivative Works" shall mean any work, whether in Source or Object
46
+ form, that is based on (or derived from) the Work and for which the
47
+ editorial revisions, annotations, elaborations, or other modifications
48
+ represent, as a whole, an original work of authorship. For the purposes
49
+ of this License, Derivative Works shall not include works that remain
50
+ separable from, or merely link (or bind by name) to the interfaces of,
51
+ the Work and Derivative Works thereof.
52
+
53
+ "Contribution" shall mean any work of authorship, including
54
+ the original version of the Work and any modifications or additions
55
+ to that Work or Derivative Works thereof, that is intentionally
56
+ submitted to Licensor for inclusion in the Work by the copyright owner
57
+ or by an individual or Legal Entity authorized to submit on behalf of
58
+ the copyright owner. For the purposes of this definition, "submitted"
59
+ means any form of electronic, verbal, or written communication sent
60
+ to the Licensor or its representatives, including but not limited to
61
+ communication on electronic mailing lists, source code control systems,
62
+ and issue tracking systems that are managed by, or on behalf of, the
63
+ Licensor for the purpose of discussing and improving the Work, but
64
+ excluding communication that is conspicuously marked or otherwise
65
+ designated in writing by the copyright owner as "Not a Contribution."
66
+
67
+ "Contributor" shall mean Licensor and any individual or Legal Entity
68
+ on behalf of whom a Contribution has been received by Licensor and
69
+ subsequently incorporated within the Work.
70
+
71
+ 2. Grant of Copyright License. Subject to the terms and conditions of
72
+ this License, each Contributor hereby grants to You a perpetual,
73
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
74
+ copyright license to reproduce, prepare Derivative Works of,
75
+ publicly display, publicly perform, sublicense, and distribute the
76
+ Work and such Derivative Works in Source or Object form.
77
+
78
+ 3. Grant of Patent License. Subject to the terms and conditions of
79
+ this License, each Contributor hereby grants to You a perpetual,
80
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
81
+ (except as stated in this section) patent license to make, have made,
82
+ use, offer to sell, sell, import, and otherwise transfer the Work,
83
+ where such license applies only to those patent claims licensable
84
+ by such Contributor that are necessarily infringed by their
85
+ Contribution(s) alone or by combination of their Contribution(s)
86
+ with the Work to which such Contribution(s) was submitted. If You
87
+ institute patent litigation against any entity (including a
88
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
89
+ or a Contribution incorporated within the Work constitutes direct
90
+ or contributory patent infringement, then any patent licenses
91
+ granted to You under this License for that Work shall terminate
92
+ as of the date such litigation is filed.
93
+
94
+ 4. Redistribution. You may reproduce and distribute copies of the
95
+ Work or Derivative Works thereof in any medium, with or without
96
+ modifications, and in Source or Object form, provided that You
97
+ meet the following conditions:
98
+
99
+ (a) You must give any other recipients of the Work or
100
+ Derivative Works a copy of this License; and
101
+
102
+ (b) You must cause any modified files to carry prominent notices
103
+ stating that You changed the files; and
104
+
105
+ (c) You must retain, in the Source form of any Derivative Works
106
+ that You distribute, all copyright, patent, trademark, and
107
+ attribution notices from the Source form of the Work,
108
+ excluding those notices that do not pertain to any part of
109
+ the Derivative Works; and
110
+
111
+ (d) If the Work includes a "NOTICE" text file as part of its
112
+ distribution, then any Derivative Works that You distribute must
113
+ include a readable copy of the attribution notices contained
114
+ within such NOTICE file, excluding those notices that do not
115
+ pertain to any part of the Derivative Works, in at least one
116
+ of the following places: within a NOTICE text file distributed
117
+ as part of the Derivative Works; within the Source form or
118
+ documentation, if provided along with the Derivative Works; or,
119
+ within a display generated by the Derivative Works, if and
120
+ wherever such third-party notices normally appear. The contents
121
+ of the NOTICE file are for informational purposes only and
122
+ do not modify the License. You may add Your own attribution
123
+ notices within Derivative Works that You distribute, alongside
124
+ or as an addendum to the NOTICE text from the Work, provided
125
+ that such additional attribution notices cannot be construed
126
+ as modifying the License.
127
+
128
+ You may add Your own copyright statement to Your modifications and
129
+ may provide additional or different license terms and conditions
130
+ for use, reproduction, or distribution of Your modifications, or
131
+ for any such Derivative Works as a whole, provided Your use,
132
+ reproduction, and distribution of the Work otherwise complies with
133
+ the conditions stated in this License.
134
+
135
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
136
+ any Contribution intentionally submitted for inclusion in the Work
137
+ by You to the Licensor shall be under the terms and conditions of
138
+ this License, without any additional terms or conditions.
139
+ Notwithstanding the above, nothing herein shall supersede or modify
140
+ the terms of any separate license agreement you may have executed
141
+ with Licensor regarding such Contributions.
142
+
143
+ 6. Trademarks. This License does not grant permission to use the trade
144
+ names, trademarks, service marks, or product names of the Licensor,
145
+ except as required for reasonable and customary use in describing the
146
+ origin of the Work and reproducing the content of the NOTICE file.
147
+
148
+ 7. Disclaimer of Warranty. Unless required by applicable law or
149
+ agreed to in writing, Licensor provides the Work (and each
150
+ Contributor provides its Contributions) on an "AS IS" BASIS,
151
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
152
+ implied, including, without limitation, any warranties or conditions
153
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
154
+ PARTICULAR PURPOSE. You are solely responsible for determining the
155
+ appropriateness of using or redistributing the Work and assume any
156
+ risks associated with Your exercise of permissions under this License.
157
+
158
+ 8. Limitation of Liability. In no event and under no legal theory,
159
+ whether in tort (including negligence), contract, or otherwise,
160
+ unless required by applicable law (such as deliberate and grossly
161
+ negligent acts) or agreed to in writing, shall any Contributor be
162
+ liable to You for damages, including any direct, indirect, special,
163
+ incidental, or consequential damages of any character arising as a
164
+ result of this License or out of the use or inability to use the
165
+ Work (including but not limited to damages for loss of goodwill,
166
+ work stoppage, computer failure or malfunction, or any and all
167
+ other commercial damages or losses), even if such Contributor
168
+ has been advised of the possibility of such damages.
169
+
170
+ 9. Accepting Warranty or Additional Liability. While redistributing
171
+ the Work or Derivative Works thereof, You may choose to offer,
172
+ and charge a fee for, acceptance of support, warranty, indemnity,
173
+ or other liability obligations and/or rights consistent with this
174
+ License. However, in accepting such obligations, You may act only
175
+ on Your own behalf and on Your sole responsibility, not on behalf
176
+ of any other Contributor, and only if You agree to indemnify,
177
+ defend, and hold each Contributor harmless for any liability
178
+ incurred by, or claims asserted against, such Contributor by reason
179
+ of your accepting any such warranty or additional liability.
180
+
181
+ END OF TERMS AND CONDITIONS
182
+
183
+ Copyright 2026 Daitum
184
+
185
+ Licensed under the Apache License, Version 2.0 (the "License");
186
+ you may not use this file except in compliance with the License.
187
+ You may obtain a copy of the License at
188
+
189
+ http://www.apache.org/licenses/LICENSE-2.0
190
+
191
+ Unless required by applicable law or agreed to in writing, software
192
+ distributed under the License is distributed on an "AS IS" BASIS,
193
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
194
+ implied. See the License for the specific language governing
195
+ permissions and limitations under the License.
196
+
197
+ Project-URL: Homepage, https://daitum.com
198
+ Project-URL: Documentation, https://daitum-core.readthedocs.io
199
+ Project-URL: Repository, https://github.com/daitumapi/daitum-core
200
+ Keywords: optimisation,modelling,daitum
201
+ Classifier: Development Status :: 3 - Alpha
202
+ Classifier: Intended Audience :: Developers
203
+ Classifier: License :: OSI Approved :: Apache Software License
204
+ Classifier: Programming Language :: Python :: 3
205
+ Classifier: Programming Language :: Python :: 3.10
206
+ Classifier: Programming Language :: Python :: 3.11
207
+ Classifier: Programming Language :: Python :: 3.12
208
+ Requires-Python: >=3.10
209
+ Description-Content-Type: text/markdown
210
+ License-File: LICENSE
211
+ Requires-Dist: daitum-model==0.1.0
212
+ Requires-Dist: daitum-ui==0.1.0
213
+ Requires-Dist: daitum-configuration==0.1.0
214
+ Provides-Extra: dev
215
+ Requires-Dist: black==26.1.0; extra == "dev"
216
+ Requires-Dist: ruff==0.14.13; extra == "dev"
217
+ Requires-Dist: mypy==1.19.1; extra == "dev"
218
+ Requires-Dist: pytest==9.0.2; extra == "dev"
219
+ Requires-Dist: types-setuptools>=80.9.0; extra == "dev"
220
+ Provides-Extra: docs
221
+ Requires-Dist: sphinx>=7.0; extra == "docs"
222
+ Requires-Dist: sphinx-autodoc-typehints>=1.25; extra == "docs"
223
+ Requires-Dist: furo>=2024.1.29; extra == "docs"
224
+ Dynamic: license-file
225
+
226
+ # daitum-core
227
+
228
+ Meta-package for the Daitum Python SDK. Installing `daitum-core` installs all three
229
+ sub-packages in one step.
230
+
231
+ ## Installation
232
+
233
+ ```bash
234
+ pip install daitum-core
235
+ ```
236
+
237
+ ## Sub-packages
238
+
239
+ | Package | Description | PyPI |
240
+ |---------|-------------|------|
241
+ | [`daitum-model`](https://pypi.org/project/daitum-model/) | Model and formula generation | `pip install daitum-model` |
242
+ | [`daitum-ui`](https://pypi.org/project/daitum-ui/) | UI definition generation | `pip install daitum-ui` |
243
+ | [`daitum-configuration`](https://pypi.org/project/daitum-configuration/) | Model configuration generation | `pip install daitum-configuration` |
244
+
245
+ ## Documentation
246
+
247
+ Full documentation is available at [daitum-core.readthedocs.io](https://daitum-core.readthedocs.io).
248
+
249
+ ## Licence
250
+
251
+ Apache 2.0 — see [LICENSE](https://github.com/daitumapi/daitum-core/blob/main/LICENSE).
@@ -0,0 +1,10 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ daitum_core.egg-info/PKG-INFO
5
+ daitum_core.egg-info/SOURCES.txt
6
+ daitum_core.egg-info/dependency_links.txt
7
+ daitum_core.egg-info/requires.txt
8
+ daitum_core.egg-info/top_level.txt
9
+ pipelines/check_changelog.py
10
+ pipelines/check_version.py
@@ -0,0 +1,15 @@
1
+ daitum-model==0.1.0
2
+ daitum-ui==0.1.0
3
+ daitum-configuration==0.1.0
4
+
5
+ [dev]
6
+ black==26.1.0
7
+ ruff==0.14.13
8
+ mypy==1.19.1
9
+ pytest==9.0.2
10
+ types-setuptools>=80.9.0
11
+
12
+ [docs]
13
+ sphinx>=7.0
14
+ sphinx-autodoc-typehints>=1.25
15
+ furo>=2024.1.29
@@ -0,0 +1 @@
1
+ pipelines
@@ -0,0 +1,130 @@
1
+ """
2
+ Verifies that each changed sub-package has a new CHANGELOG.md entry matching its current
3
+ version.
4
+
5
+ For each changed sub-package:
6
+ - Reads the current version from pyproject.toml.
7
+ - Checks that CHANGELOG.md contains a heading ## [X.Y.Z] for that version.
8
+ - If a prior tag exists, confirms the heading was absent at that tag (so it is genuinely new).
9
+
10
+ The root daitum-core package has no CHANGELOG and is not checked.
11
+
12
+ Exit code 1 if any required changelog entry is missing.
13
+ """
14
+
15
+ import re
16
+ import subprocess
17
+ import sys
18
+ from pathlib import Path
19
+
20
+ VERSION_PATTERN = re.compile(r'^version\s*=\s*"(\d+\.\d+\.\d+)"', re.MULTILINE)
21
+
22
+ SUB_PACKAGES = [
23
+ # (label, package_dir, pyproject_path, changelog_path)
24
+ ("daitum-model", "daitum-model", "daitum-model/pyproject.toml", "daitum-model/CHANGELOG.md"),
25
+ ("daitum-ui", "daitum-ui", "daitum-ui/pyproject.toml", "daitum-ui/CHANGELOG.md"),
26
+ (
27
+ "daitum-configuration",
28
+ "daitum-configuration",
29
+ "daitum-configuration/pyproject.toml",
30
+ "daitum-configuration/CHANGELOG.md",
31
+ ),
32
+ ]
33
+
34
+
35
+ def read_version(pyproject_path: str) -> str:
36
+ text = Path(pyproject_path).read_text()
37
+ m = VERSION_PATTERN.search(text)
38
+ if not m:
39
+ raise ValueError(f"No version found in {pyproject_path}")
40
+ return m.group(1)
41
+
42
+
43
+ def changelog_heading_pattern(version: str) -> re.Pattern[str]:
44
+ escaped = re.escape(version)
45
+ return re.compile(rf"^## \[{escaped}\]", re.MULTILINE)
46
+
47
+
48
+ def get_last_tag() -> str | None:
49
+ result = subprocess.run(
50
+ ["git", "tag", "--list", "v*", "--sort=-version:refname"],
51
+ capture_output=True,
52
+ text=True,
53
+ check=False,
54
+ )
55
+ tags = [t.strip() for t in result.stdout.splitlines() if t.strip()]
56
+ return tags[0] if tags else None
57
+
58
+
59
+ def has_changes(tag: str, package_dir: str) -> bool:
60
+ result = subprocess.run(
61
+ ["git", "diff", "--name-only", tag, "HEAD", "--", package_dir],
62
+ capture_output=True,
63
+ text=True,
64
+ check=False,
65
+ )
66
+ return bool(result.stdout.strip())
67
+
68
+
69
+ def old_changelog_content(tag: str, changelog_path: str) -> str | None:
70
+ result = subprocess.run(
71
+ ["git", "show", f"{tag}:{changelog_path}"],
72
+ capture_output=True,
73
+ text=True,
74
+ check=False,
75
+ )
76
+ return result.stdout if result.returncode == 0 else None
77
+
78
+
79
+ def main() -> None:
80
+ last_tag = get_last_tag()
81
+ failures: list[str] = []
82
+
83
+ for label, package_dir, pyproject_path, changelog_path in SUB_PACKAGES:
84
+ try:
85
+ version = read_version(pyproject_path)
86
+ except ValueError as e:
87
+ print(f"FAIL {label}: {e}")
88
+ failures.append(label)
89
+ continue
90
+
91
+ if last_tag is not None and not has_changes(last_tag, package_dir):
92
+ print(f"SKIP {label}: no changes since {last_tag}")
93
+ continue
94
+
95
+ heading_re = changelog_heading_pattern(version)
96
+
97
+ changelog_file = Path(changelog_path)
98
+ if not changelog_file.exists():
99
+ print(f"FAIL {label}: {changelog_path} does not exist")
100
+ failures.append(label)
101
+ continue
102
+
103
+ current_content = changelog_file.read_text()
104
+ if not heading_re.search(current_content):
105
+ print(f"FAIL {label}: no '## [{version}]' heading found in {changelog_path}")
106
+ failures.append(label)
107
+ continue
108
+
109
+ if last_tag is not None:
110
+ old_content = old_changelog_content(last_tag, changelog_path)
111
+ if old_content is not None and heading_re.search(old_content):
112
+ print(
113
+ f"FAIL {label}: '## [{version}]' heading already existed at {last_tag} — "
114
+ "bump the version and add a new changelog entry"
115
+ )
116
+ failures.append(label)
117
+ continue
118
+
119
+ print(f"PASS {label}: ## [{version}] found in {changelog_path}")
120
+
121
+ if failures:
122
+ print(
123
+ f"\n{len(failures)} package(s) failed changelog check: {', '.join(failures)}",
124
+ file=sys.stderr,
125
+ )
126
+ sys.exit(1)
127
+
128
+
129
+ if __name__ == "__main__":
130
+ main()
@@ -0,0 +1,123 @@
1
+ """
2
+ Verifies that every package whose source has changed since the last git tag has had its
3
+ version bumped.
4
+
5
+ Rules:
6
+ - Root daitum-core must always have a higher version than at the last tag (or any valid
7
+ semver if there is no tag yet).
8
+ - Each sub-package whose directory has changed files must also have a higher version.
9
+ - Sub-packages that have NOT changed may keep the same version.
10
+
11
+ Exit code 1 if any required version bump is missing.
12
+ """
13
+
14
+ import re
15
+ import subprocess
16
+ import sys
17
+ from pathlib import Path
18
+
19
+ VERSION_PATTERN = re.compile(r'^version\s*=\s*"(\d+\.\d+\.\d+)"', re.MULTILINE)
20
+
21
+ PACKAGES = [
22
+ # (label, package_dir, pyproject_path, always_changed)
23
+ ("daitum-core (root)", ".", "pyproject.toml", True),
24
+ ("daitum-model", "daitum-model", "daitum-model/pyproject.toml", False),
25
+ ("daitum-ui", "daitum-ui", "daitum-ui/pyproject.toml", False),
26
+ ("daitum-configuration", "daitum-configuration", "daitum-configuration/pyproject.toml", False),
27
+ ]
28
+
29
+
30
+ def parse_version(text: str) -> tuple[int, ...]:
31
+ m = VERSION_PATTERN.search(text)
32
+ if not m:
33
+ raise ValueError("No version found")
34
+ return tuple(int(x) for x in m.group(1).split("."))
35
+
36
+
37
+ def get_last_tag() -> str | None:
38
+ result = subprocess.run(
39
+ ["git", "tag", "--list", "v*", "--sort=-version:refname"],
40
+ capture_output=True,
41
+ text=True,
42
+ check=False,
43
+ )
44
+ tags = [t.strip() for t in result.stdout.splitlines() if t.strip()]
45
+ return tags[0] if tags else None
46
+
47
+
48
+ def has_changes(tag: str, package_dir: str) -> bool:
49
+ result = subprocess.run(
50
+ ["git", "diff", "--name-only", tag, "HEAD", "--", package_dir],
51
+ capture_output=True,
52
+ text=True,
53
+ check=False,
54
+ )
55
+ return bool(result.stdout.strip())
56
+
57
+
58
+ def read_old_version(tag: str, pyproject_path: str) -> tuple[int, ...] | None:
59
+ result = subprocess.run(
60
+ ["git", "show", f"{tag}:{pyproject_path}"],
61
+ capture_output=True,
62
+ text=True,
63
+ check=False,
64
+ )
65
+ if result.returncode != 0:
66
+ return None
67
+ try:
68
+ return parse_version(result.stdout)
69
+ except ValueError:
70
+ return None
71
+
72
+
73
+ def main() -> None:
74
+ last_tag = get_last_tag()
75
+ failures: list[str] = []
76
+
77
+ for label, package_dir, pyproject_path, always_changed in PACKAGES:
78
+ current_text = Path(pyproject_path).read_text()
79
+ try:
80
+ current_version = parse_version(current_text)
81
+ except ValueError:
82
+ print(f"FAIL {label}: could not read version from {pyproject_path}")
83
+ failures.append(label)
84
+ continue
85
+
86
+ version_str = ".".join(str(x) for x in current_version)
87
+
88
+ if last_tag is None:
89
+ # No prior tag — any valid semver is acceptable.
90
+ print(f"PASS {label}: {version_str} (no prior tag)")
91
+ continue
92
+
93
+ changed = always_changed or has_changes(last_tag, package_dir)
94
+
95
+ if not changed:
96
+ print(f"SKIP {label}: no changes since {last_tag}")
97
+ continue
98
+
99
+ old_version = read_old_version(last_tag, pyproject_path)
100
+ if old_version is None:
101
+ # Package didn't exist at the last tag — any version is fine.
102
+ print(f"PASS {label}: {version_str} (new package)")
103
+ continue
104
+
105
+ old_str = ".".join(str(x) for x in old_version)
106
+ if current_version > old_version:
107
+ print(f"PASS {label}: {old_str} → {version_str}")
108
+ else:
109
+ print(
110
+ f"FAIL {label}: version {version_str} must be greater than {old_str} at {last_tag}"
111
+ )
112
+ failures.append(label)
113
+
114
+ if failures:
115
+ print(
116
+ f"\n{len(failures)} package(s) failed version check: {', '.join(failures)}",
117
+ file=sys.stderr,
118
+ )
119
+ sys.exit(1)
120
+
121
+
122
+ if __name__ == "__main__":
123
+ main()
@@ -0,0 +1,136 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "daitum-core"
7
+ version = "0.1.0"
8
+ description = "Meta-package installing daitum-model, daitum-ui, and daitum-configuration"
9
+ readme = "README.md"
10
+ license = { file = "LICENSE" }
11
+ authors = [{ name = "Daitum" }]
12
+ requires-python = ">=3.10"
13
+ keywords = ["optimisation", "modelling", "daitum"]
14
+ classifiers = [
15
+ "Development Status :: 3 - Alpha",
16
+ "Intended Audience :: Developers",
17
+ "License :: OSI Approved :: Apache Software License",
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3.10",
20
+ "Programming Language :: Python :: 3.11",
21
+ "Programming Language :: Python :: 3.12",
22
+ ]
23
+ dependencies = [
24
+ "daitum-model==0.1.0",
25
+ "daitum-ui==0.1.0",
26
+ "daitum-configuration==0.1.0",
27
+ ]
28
+
29
+ [project.urls]
30
+ Homepage = "https://daitum.com"
31
+ Documentation = "https://daitum-core.readthedocs.io"
32
+ Repository = "https://github.com/daitumapi/daitum-core"
33
+
34
+ [project.optional-dependencies]
35
+ dev = [
36
+ "black==26.1.0",
37
+ "ruff==0.14.13",
38
+ "mypy==1.19.1",
39
+ "pytest==9.0.2",
40
+ "types-setuptools>=80.9.0",
41
+ ]
42
+ docs = [
43
+ "sphinx>=7.0",
44
+ "sphinx-autodoc-typehints>=1.25",
45
+ "furo>=2024.1.29",
46
+ ]
47
+
48
+ # -----------------------------
49
+ # Ruff formatting + linting
50
+ # -----------------------------
51
+ [tool.ruff]
52
+ line-length = 100
53
+ target-version = "py310"
54
+ fix = true
55
+ exclude = ["tests"]
56
+
57
+ # -----------------------------
58
+ # Lint rules
59
+ # -----------------------------
60
+ [tool.ruff.lint]
61
+ # Select rules to enable:
62
+ # E = Pycodestyle errors (syntax/whitespace)
63
+ # F = Pyflakes checks (undefined names, unused imports)
64
+ # B = Bugbear rules (common mistakes / best practices)
65
+ # UP = Unused Python code
66
+ # I = Import-related issues (isort-like)
67
+ # N = Naming conventions (from PyLint/Ruff)
68
+ # PL = PyLint rules
69
+ # TID = All Ruff Type / Import / Docstring rules
70
+ # Optional / not currently applied:
71
+ # S = Security issues
72
+ # D = Docstring conventions
73
+ # ERA = Experimental rules
74
+ select = ["E", "F", "B", "UP", "I", "N", "PL", "TID"]
75
+ # PLR0402 conflicts with the architecture rule requiring 'import X.Y as Y' for module aliases.
76
+ ignore = ["PLR0402"]
77
+ exclude = ["tests"]
78
+
79
+ # -----------------------------
80
+ # Import sorting (replaces isort)
81
+ # -----------------------------
82
+ [tool.ruff.lint.isort]
83
+ known-first-party = ["src", "daitum"]
84
+ known-third-party = ["requests"]
85
+ combine-as-imports = true
86
+
87
+ # -----------------------------
88
+ # Black (formatting)
89
+ # -----------------------------
90
+ [tool.black]
91
+ line-length = 100
92
+ target-version = ['py310']
93
+ include = '\.pyi?$'
94
+ exclude = '''
95
+ /(
96
+ .git
97
+ | venv
98
+ | .venv
99
+ | model-files
100
+ | dist
101
+ | __pycache__
102
+ | .mypy_cache
103
+ | .idea
104
+ )/
105
+ '''
106
+
107
+ # -----------------------------
108
+ # Per-file ignores
109
+ # -----------------------------
110
+ [tool.ruff.lint.per-file-ignores]
111
+ "**/*.py" = ["PLC0415"] # typing-only import warnings
112
+
113
+ # -----------------------------
114
+ # Mypy config
115
+ # -----------------------------
116
+ [tool.mypy]
117
+ python_version = "3.10"
118
+ warn_return_any = true
119
+ warn_unused_configs = true
120
+ check_untyped_defs = true
121
+ exclude = [
122
+ "venv",
123
+ ".venv",
124
+ "model-files",
125
+ "__pycache__",
126
+ ".mypy_cache",
127
+ ".idea",
128
+ "tests"
129
+ ]
130
+
131
+ [tool.pytest.ini_options]
132
+ testpaths = [
133
+ "daitum-model/tests",
134
+ "daitum-ui/tests",
135
+ "daitum-configuration/tests",
136
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+