begonia 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,75 @@
1
+ /target
2
+
3
+ # Temporary
4
+ .github/
5
+
6
+ # Byte-compiled / optimized / DLL files
7
+ __pycache__/
8
+ .pytest_cache/
9
+ *.py[cod]
10
+
11
+ # C extensions
12
+ *.so
13
+
14
+ # Distribution / packaging
15
+ .Python
16
+ .venv/
17
+ env/
18
+ bin/
19
+ build/
20
+ develop-eggs/
21
+ dist/
22
+ eggs/
23
+ lib/
24
+ lib64/
25
+ parts/
26
+ sdist/
27
+ var/
28
+ include/
29
+ man/
30
+ venv/
31
+ *.egg-info/
32
+ .installed.cfg
33
+ *.egg
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+ pip-selfcheck.json
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .coverage
44
+ .cache
45
+ nosetests.xml
46
+ coverage.xml
47
+
48
+ # Translations
49
+ *.mo
50
+
51
+ # Mr Developer
52
+ .mr.developer.cfg
53
+ .project
54
+ .pydevproject
55
+
56
+ # Rope
57
+ .ropeproject
58
+
59
+ # Django stuff:
60
+ *.log
61
+ *.pot
62
+
63
+ .DS_Store
64
+
65
+ # Sphinx documentation
66
+ docs/_build/
67
+
68
+ # PyCharm
69
+ .idea/
70
+
71
+ # VSCode
72
+ .vscode/
73
+
74
+ # Pyenv
75
+ .python-version
@@ -0,0 +1,379 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "approx"
7
+ version = "0.5.1"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6"
10
+ dependencies = [
11
+ "num-traits",
12
+ ]
13
+
14
+ [[package]]
15
+ name = "autocfg"
16
+ version = "1.4.0"
17
+ source = "registry+https://github.com/rust-lang/crates.io-index"
18
+ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
19
+
20
+ [[package]]
21
+ name = "begonia"
22
+ version = "0.1.0"
23
+ dependencies = [
24
+ "lstsq",
25
+ "nalgebra",
26
+ "numpy",
27
+ "pyo3",
28
+ ]
29
+
30
+ [[package]]
31
+ name = "bytemuck"
32
+ version = "1.23.1"
33
+ source = "registry+https://github.com/rust-lang/crates.io-index"
34
+ checksum = "5c76a5792e44e4abe34d3abf15636779261d45a7450612059293d1d2cfc63422"
35
+
36
+ [[package]]
37
+ name = "cfg-if"
38
+ version = "1.0.0"
39
+ source = "registry+https://github.com/rust-lang/crates.io-index"
40
+ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
41
+
42
+ [[package]]
43
+ name = "heck"
44
+ version = "0.5.0"
45
+ source = "registry+https://github.com/rust-lang/crates.io-index"
46
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
47
+
48
+ [[package]]
49
+ name = "indoc"
50
+ version = "2.0.6"
51
+ source = "registry+https://github.com/rust-lang/crates.io-index"
52
+ checksum = "f4c7245a08504955605670dbf141fceab975f15ca21570696aebe9d2e71576bd"
53
+
54
+ [[package]]
55
+ name = "libc"
56
+ version = "0.2.171"
57
+ source = "registry+https://github.com/rust-lang/crates.io-index"
58
+ checksum = "c19937216e9d3aa9956d9bb8dfc0b0c8beb6058fc4f7a4dc4d850edf86a237d6"
59
+
60
+ [[package]]
61
+ name = "lstsq"
62
+ version = "0.6.0"
63
+ source = "registry+https://github.com/rust-lang/crates.io-index"
64
+ checksum = "d0767b5d1bcb5c7a99647520963706322bdabd5e5ba18530fd9c9c02ab04029e"
65
+ dependencies = [
66
+ "nalgebra",
67
+ ]
68
+
69
+ [[package]]
70
+ name = "matrixmultiply"
71
+ version = "0.3.9"
72
+ source = "registry+https://github.com/rust-lang/crates.io-index"
73
+ checksum = "9380b911e3e96d10c1f415da0876389aaf1b56759054eeb0de7df940c456ba1a"
74
+ dependencies = [
75
+ "autocfg",
76
+ "rawpointer",
77
+ ]
78
+
79
+ [[package]]
80
+ name = "memoffset"
81
+ version = "0.9.1"
82
+ source = "registry+https://github.com/rust-lang/crates.io-index"
83
+ checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
84
+ dependencies = [
85
+ "autocfg",
86
+ ]
87
+
88
+ [[package]]
89
+ name = "nalgebra"
90
+ version = "0.33.2"
91
+ source = "registry+https://github.com/rust-lang/crates.io-index"
92
+ checksum = "26aecdf64b707efd1310e3544d709c5c0ac61c13756046aaaba41be5c4f66a3b"
93
+ dependencies = [
94
+ "approx",
95
+ "matrixmultiply",
96
+ "nalgebra-macros",
97
+ "num-complex",
98
+ "num-rational",
99
+ "num-traits",
100
+ "simba",
101
+ "typenum",
102
+ ]
103
+
104
+ [[package]]
105
+ name = "nalgebra-macros"
106
+ version = "0.2.2"
107
+ source = "registry+https://github.com/rust-lang/crates.io-index"
108
+ checksum = "254a5372af8fc138e36684761d3c0cdb758a4410e938babcff1c860ce14ddbfc"
109
+ dependencies = [
110
+ "proc-macro2",
111
+ "quote",
112
+ "syn",
113
+ ]
114
+
115
+ [[package]]
116
+ name = "ndarray"
117
+ version = "0.16.1"
118
+ source = "registry+https://github.com/rust-lang/crates.io-index"
119
+ checksum = "882ed72dce9365842bf196bdeedf5055305f11fc8c03dee7bb0194a6cad34841"
120
+ dependencies = [
121
+ "matrixmultiply",
122
+ "num-complex",
123
+ "num-integer",
124
+ "num-traits",
125
+ "portable-atomic",
126
+ "portable-atomic-util",
127
+ "rawpointer",
128
+ ]
129
+
130
+ [[package]]
131
+ name = "num-bigint"
132
+ version = "0.4.6"
133
+ source = "registry+https://github.com/rust-lang/crates.io-index"
134
+ checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9"
135
+ dependencies = [
136
+ "num-integer",
137
+ "num-traits",
138
+ ]
139
+
140
+ [[package]]
141
+ name = "num-complex"
142
+ version = "0.4.6"
143
+ source = "registry+https://github.com/rust-lang/crates.io-index"
144
+ checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
145
+ dependencies = [
146
+ "num-traits",
147
+ ]
148
+
149
+ [[package]]
150
+ name = "num-integer"
151
+ version = "0.1.46"
152
+ source = "registry+https://github.com/rust-lang/crates.io-index"
153
+ checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
154
+ dependencies = [
155
+ "num-traits",
156
+ ]
157
+
158
+ [[package]]
159
+ name = "num-rational"
160
+ version = "0.4.2"
161
+ source = "registry+https://github.com/rust-lang/crates.io-index"
162
+ checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"
163
+ dependencies = [
164
+ "num-bigint",
165
+ "num-integer",
166
+ "num-traits",
167
+ ]
168
+
169
+ [[package]]
170
+ name = "num-traits"
171
+ version = "0.2.19"
172
+ source = "registry+https://github.com/rust-lang/crates.io-index"
173
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
174
+ dependencies = [
175
+ "autocfg",
176
+ ]
177
+
178
+ [[package]]
179
+ name = "numpy"
180
+ version = "0.24.0"
181
+ source = "registry+https://github.com/rust-lang/crates.io-index"
182
+ checksum = "a7cfbf3f0feededcaa4d289fe3079b03659e85c5b5a177f4ba6fb01ab4fb3e39"
183
+ dependencies = [
184
+ "libc",
185
+ "ndarray",
186
+ "num-complex",
187
+ "num-integer",
188
+ "num-traits",
189
+ "pyo3",
190
+ "pyo3-build-config",
191
+ "rustc-hash",
192
+ ]
193
+
194
+ [[package]]
195
+ name = "once_cell"
196
+ version = "1.21.1"
197
+ source = "registry+https://github.com/rust-lang/crates.io-index"
198
+ checksum = "d75b0bedcc4fe52caa0e03d9f1151a323e4aa5e2d78ba3580400cd3c9e2bc4bc"
199
+
200
+ [[package]]
201
+ name = "paste"
202
+ version = "1.0.15"
203
+ source = "registry+https://github.com/rust-lang/crates.io-index"
204
+ checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
205
+
206
+ [[package]]
207
+ name = "portable-atomic"
208
+ version = "1.11.0"
209
+ source = "registry+https://github.com/rust-lang/crates.io-index"
210
+ checksum = "350e9b48cbc6b0e028b0473b114454c6316e57336ee184ceab6e53f72c178b3e"
211
+
212
+ [[package]]
213
+ name = "portable-atomic-util"
214
+ version = "0.2.4"
215
+ source = "registry+https://github.com/rust-lang/crates.io-index"
216
+ checksum = "d8a2f0d8d040d7848a709caf78912debcc3f33ee4b3cac47d73d1e1069e83507"
217
+ dependencies = [
218
+ "portable-atomic",
219
+ ]
220
+
221
+ [[package]]
222
+ name = "proc-macro2"
223
+ version = "1.0.94"
224
+ source = "registry+https://github.com/rust-lang/crates.io-index"
225
+ checksum = "a31971752e70b8b2686d7e46ec17fb38dad4051d94024c88df49b667caea9c84"
226
+ dependencies = [
227
+ "unicode-ident",
228
+ ]
229
+
230
+ [[package]]
231
+ name = "pyo3"
232
+ version = "0.24.0"
233
+ source = "registry+https://github.com/rust-lang/crates.io-index"
234
+ checksum = "7f1c6c3591120564d64db2261bec5f910ae454f01def849b9c22835a84695e86"
235
+ dependencies = [
236
+ "cfg-if",
237
+ "indoc",
238
+ "libc",
239
+ "memoffset",
240
+ "once_cell",
241
+ "portable-atomic",
242
+ "pyo3-build-config",
243
+ "pyo3-ffi",
244
+ "pyo3-macros",
245
+ "unindent",
246
+ ]
247
+
248
+ [[package]]
249
+ name = "pyo3-build-config"
250
+ version = "0.24.0"
251
+ source = "registry+https://github.com/rust-lang/crates.io-index"
252
+ checksum = "e9b6c2b34cf71427ea37c7001aefbaeb85886a074795e35f161f5aecc7620a7a"
253
+ dependencies = [
254
+ "once_cell",
255
+ "target-lexicon",
256
+ ]
257
+
258
+ [[package]]
259
+ name = "pyo3-ffi"
260
+ version = "0.24.0"
261
+ source = "registry+https://github.com/rust-lang/crates.io-index"
262
+ checksum = "5507651906a46432cdda02cd02dd0319f6064f1374c9147c45b978621d2c3a9c"
263
+ dependencies = [
264
+ "libc",
265
+ "pyo3-build-config",
266
+ ]
267
+
268
+ [[package]]
269
+ name = "pyo3-macros"
270
+ version = "0.24.0"
271
+ source = "registry+https://github.com/rust-lang/crates.io-index"
272
+ checksum = "b0d394b5b4fd8d97d48336bb0dd2aebabad39f1d294edd6bcd2cccf2eefe6f42"
273
+ dependencies = [
274
+ "proc-macro2",
275
+ "pyo3-macros-backend",
276
+ "quote",
277
+ "syn",
278
+ ]
279
+
280
+ [[package]]
281
+ name = "pyo3-macros-backend"
282
+ version = "0.24.0"
283
+ source = "registry+https://github.com/rust-lang/crates.io-index"
284
+ checksum = "fd72da09cfa943b1080f621f024d2ef7e2773df7badd51aa30a2be1f8caa7c8e"
285
+ dependencies = [
286
+ "heck",
287
+ "proc-macro2",
288
+ "pyo3-build-config",
289
+ "quote",
290
+ "syn",
291
+ ]
292
+
293
+ [[package]]
294
+ name = "quote"
295
+ version = "1.0.40"
296
+ source = "registry+https://github.com/rust-lang/crates.io-index"
297
+ checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
298
+ dependencies = [
299
+ "proc-macro2",
300
+ ]
301
+
302
+ [[package]]
303
+ name = "rawpointer"
304
+ version = "0.2.1"
305
+ source = "registry+https://github.com/rust-lang/crates.io-index"
306
+ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
307
+
308
+ [[package]]
309
+ name = "rustc-hash"
310
+ version = "2.1.1"
311
+ source = "registry+https://github.com/rust-lang/crates.io-index"
312
+ checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d"
313
+
314
+ [[package]]
315
+ name = "safe_arch"
316
+ version = "0.7.4"
317
+ source = "registry+https://github.com/rust-lang/crates.io-index"
318
+ checksum = "96b02de82ddbe1b636e6170c21be622223aea188ef2e139be0a5b219ec215323"
319
+ dependencies = [
320
+ "bytemuck",
321
+ ]
322
+
323
+ [[package]]
324
+ name = "simba"
325
+ version = "0.9.0"
326
+ source = "registry+https://github.com/rust-lang/crates.io-index"
327
+ checksum = "b3a386a501cd104797982c15ae17aafe8b9261315b5d07e3ec803f2ea26be0fa"
328
+ dependencies = [
329
+ "approx",
330
+ "num-complex",
331
+ "num-traits",
332
+ "paste",
333
+ "wide",
334
+ ]
335
+
336
+ [[package]]
337
+ name = "syn"
338
+ version = "2.0.100"
339
+ source = "registry+https://github.com/rust-lang/crates.io-index"
340
+ checksum = "b09a44accad81e1ba1cd74a32461ba89dee89095ba17b32f5d03683b1b1fc2a0"
341
+ dependencies = [
342
+ "proc-macro2",
343
+ "quote",
344
+ "unicode-ident",
345
+ ]
346
+
347
+ [[package]]
348
+ name = "target-lexicon"
349
+ version = "0.13.2"
350
+ source = "registry+https://github.com/rust-lang/crates.io-index"
351
+ checksum = "e502f78cdbb8ba4718f566c418c52bc729126ffd16baee5baa718cf25dd5a69a"
352
+
353
+ [[package]]
354
+ name = "typenum"
355
+ version = "1.18.0"
356
+ source = "registry+https://github.com/rust-lang/crates.io-index"
357
+ checksum = "1dccffe3ce07af9386bfd29e80c0ab1a8205a2fc34e4bcd40364df902cfa8f3f"
358
+
359
+ [[package]]
360
+ name = "unicode-ident"
361
+ version = "1.0.18"
362
+ source = "registry+https://github.com/rust-lang/crates.io-index"
363
+ checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
364
+
365
+ [[package]]
366
+ name = "unindent"
367
+ version = "0.2.4"
368
+ source = "registry+https://github.com/rust-lang/crates.io-index"
369
+ checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
370
+
371
+ [[package]]
372
+ name = "wide"
373
+ version = "0.7.32"
374
+ source = "registry+https://github.com/rust-lang/crates.io-index"
375
+ checksum = "41b5576b9a81633f3e8df296ce0063042a73507636cbe956c61133dd7034ab22"
376
+ dependencies = [
377
+ "bytemuck",
378
+ "safe_arch",
379
+ ]
@@ -0,0 +1,14 @@
1
+ [package]
2
+ name = "begonia"
3
+ version = "0.1.0"
4
+ edition = "2021"
5
+
6
+ [lib]
7
+ name = "begonia"
8
+ crate-type = ["cdylib"]
9
+
10
+ [dependencies]
11
+ pyo3 = "0.24.0"
12
+ numpy = "0.24.0"
13
+ nalgebra = "0.33.2"
14
+ lstsq = "0.6.0"
begonia-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,11 @@
1
+ Metadata-Version: 2.4
2
+ Name: begonia
3
+ Version: 0.1.0
4
+ Classifier: Programming Language :: Rust
5
+ Classifier: Programming Language :: Python :: Implementation :: CPython
6
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
7
+ Requires-Python: >=3.8
8
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
9
+
10
+ # :begonia: begonia
11
+
@@ -0,0 +1 @@
1
+ # :begonia: begonia
begonia-0.1.0/justfile ADDED
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env -S just --justfile
2
+
3
+ [group: 'dev']
4
+ install:
5
+ maturin build --release; python3 -m pip install -e .
6
+
7
+ [group: 'dev']
8
+ test:
9
+ python3 -m pytest python/tests/
10
+
11
+ [group: 'bench']
12
+ runtime:
13
+ #!/bin/bash
14
+ README="python/benches/README.md"
15
+
16
+ if [ -f $README ]; then
17
+ rm $README
18
+ fi
19
+
20
+ touch $README
21
+ echo "# benches" >> $README
22
+ echo "" >> $README
23
+ python3 python/benches/bench_polygon.py >> $README
24
+
25
+
26
+ [group: 'check']
27
+ clippy:
28
+ cargo clippy --all --all-targets --all-features -- --deny warnings
@@ -0,0 +1,20 @@
1
+ [build-system]
2
+ requires = ["maturin>=1.8,<2.0"]
3
+ build-backend = "maturin"
4
+
5
+ [project]
6
+ name = "begonia"
7
+ requires-python = ">=3.8"
8
+ classifiers = [
9
+ "Programming Language :: Rust",
10
+ "Programming Language :: Python :: Implementation :: CPython",
11
+ "Programming Language :: Python :: Implementation :: PyPy",
12
+ ]
13
+ dynamic = ["version"]
14
+
15
+ [tool.maturin]
16
+ python-source = "python"
17
+ features = ["pyo3/extension-module"]
18
+
19
+ [tool.pytest.ini_options]
20
+ pythonpath = [".", "python"]
@@ -0,0 +1,6 @@
1
+ from .pear import *
2
+
3
+
4
+ __doc__ = pear.__doc__
5
+ if hasattr(pear, "__all__"):
6
+ __all__ = pear.__all__