AdsorPy 1.3.0a2__tar.gz → 1.3.1__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.
Files changed (25) hide show
  1. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/PKG-INFO +20 -20
  2. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/pyproject.toml +74 -23
  3. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/sbom.cdx.json +2943 -1702
  4. adsorpy-1.3.1/src/adsorpy/compiled_squared_cdist.c +30175 -0
  5. adsorpy-1.3.1/src/adsorpy/compiled_squared_cdist.cpython-313-x86_64-linux-gnu.so +0 -0
  6. adsorpy-1.3.1/src/adsorpy/compiled_squared_cdist.pyx +41 -0
  7. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/src/adsorpy/gui.py +53 -58
  8. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/src/adsorpy/molecule_lib.py +10 -14
  9. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/src/adsorpy/randomsequentialadsorption.py +1 -1
  10. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/src/adsorpy/rsa_calculator.py +20 -18
  11. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/src/adsorpy/run_simulation.py +1 -1
  12. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/LICENSE.md +0 -0
  13. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/README.md +0 -0
  14. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/src/adsorpy/VdW_Radii.csv +0 -0
  15. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/src/adsorpy/__init__.py +0 -0
  16. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/src/adsorpy/assets/Icon_attribution.txt +0 -0
  17. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/src/adsorpy/assets/book-open-list.png +0 -0
  18. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/src/adsorpy/assets/book-question.png +0 -0
  19. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/src/adsorpy/assets/bug--exclamation.png +0 -0
  20. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/src/adsorpy/assets/door-open-out.png +0 -0
  21. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/src/adsorpy/config.json +0 -0
  22. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/src/adsorpy/molecule_colour.json +0 -0
  23. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/src/adsorpy/rsa_config.py +0 -0
  24. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/src/adsorpy/types.py +0 -0
  25. {adsorpy-1.3.0a2 → adsorpy-1.3.1}/src/adsorpy/vdw_radii.json +0 -0
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: adsorpy
3
- Version: 1.3.0a2
3
+ Version: 1.3.1
4
4
  Summary: Random sequential adsorption (RSA) simulation, 2D lattice-based.
5
- Project-URL: github, https://github.com/JoosFWMaas/AdsorPy
5
+ Project-URL: github, https://github.com/JoostFWMaas/AdsorPy
6
6
  Project-URL: Documentation, https://joostfwmaas.github.io/AdsorPy
7
7
  Project-URL: Changelog, https://github.com/JoostFWMaas/AdsorPy/blob/main/CHANGELOG.md
8
8
  Project-URL: homepage, https://pypi.org/project/adsorpy/
@@ -15,7 +15,6 @@ Keywords: Monte Carlo,RSA,adsorption,computational chemistry,computational physi
15
15
  Classifier: Development Status :: 5 - Production/Stable
16
16
  Classifier: Intended Audience :: Developers
17
17
  Classifier: Intended Audience :: Science/Research
18
- Classifier: License :: OSI Approved :: MIT License
19
18
  Classifier: Natural Language :: English
20
19
  Classifier: Operating System :: OS Independent
21
20
  Classifier: Programming Language :: Python
@@ -41,7 +40,6 @@ Requires-Dist: future>=1.0.0
41
40
  Requires-Dist: html5lib>=1.1
42
41
  Requires-Dist: ipaddress>=1.0.23
43
42
  Requires-Dist: matplotlib>=3.10.9
44
- Requires-Dist: numba>=0.66.0
45
43
  Requires-Dist: numpy>=2.2.6
46
44
  Requires-Dist: ply>=3.11
47
45
  Requires-Dist: pycparser>=3.0.0
@@ -58,9 +56,10 @@ Requires-Dist: typing-extensions>=4.16.0
58
56
  Requires-Dist: wcwidth>=0.7.0
59
57
  Requires-Dist: webencodings>=0.5.1
60
58
  Provides-Extra: dev-complete
61
- Requires-Dist: basedpyright==1.39.9; extra == 'dev-complete'
59
+ Requires-Dist: basedpyright==1.39.10; extra == 'dev-complete'
62
60
  Requires-Dist: build>=1.5.0; extra == 'dev-complete'
63
61
  Requires-Dist: check-wheel-contents>=0.6.3; extra == 'dev-complete'
62
+ Requires-Dist: cibuildwheel>=2.23.4; extra == 'dev-complete'
64
63
  Requires-Dist: codecov>=2.1.13; extra == 'dev-complete'
65
64
  Requires-Dist: cryptography>=50.0.0; extra == 'dev-complete'
66
65
  Requires-Dist: dask[distributed]>=2026.7.1; extra == 'dev-complete'
@@ -68,18 +67,18 @@ Requires-Dist: easyprocess>=1.1; (sys_platform == 'linux') and extra == 'dev-com
68
67
  Requires-Dist: furo>=2025.12.19; extra == 'dev-complete'
69
68
  Requires-Dist: gitpython>=3.1.59; extra == 'dev-complete'
70
69
  Requires-Dist: h5py>=3.16.0; extra == 'dev-complete'
71
- Requires-Dist: hypothesis>=6.165.2; extra == 'dev-complete'
72
- Requires-Dist: mypy==2.3.0; extra == 'dev-complete'
70
+ Requires-Dist: hypothesis>=6.165.5; extra == 'dev-complete'
71
+ Requires-Dist: mypy==2.3.1; extra == 'dev-complete'
73
72
  Requires-Dist: nodeenv>=1.10.0; extra == 'dev-complete'
74
73
  Requires-Dist: pandas>=2.3.3; extra == 'dev-complete'
75
- Requires-Dist: pre-commit>=4.6.1; extra == 'dev-complete'
74
+ Requires-Dist: pre-commit>=4.6.2; extra == 'dev-complete'
76
75
  Requires-Dist: pyside6-stubs==6.7.3.0; extra == 'dev-complete'
77
76
  Requires-Dist: pytest-cov>=7.1.0; extra == 'dev-complete'
78
77
  Requires-Dist: pytest-qt>=4.5.0; extra == 'dev-complete'
79
78
  Requires-Dist: pytest-xvfb>=3.1.1; (sys_platform == 'linux') and extra == 'dev-complete'
80
79
  Requires-Dist: pytest>=9.1.1; extra == 'dev-complete'
81
80
  Requires-Dist: pyvirtualdisplay>=1.3; (sys_platform == 'linux') and extra == 'dev-complete'
82
- Requires-Dist: ruff==0.16.2; extra == 'dev-complete'
81
+ Requires-Dist: ruff==0.16.3; extra == 'dev-complete'
83
82
  Requires-Dist: scipy>=1.15.3; extra == 'dev-complete'
84
83
  Requires-Dist: seaborn>=0.13.2; extra == 'dev-complete'
85
84
  Requires-Dist: slotscheck==0.20.1; extra == 'dev-complete'
@@ -88,16 +87,17 @@ Requires-Dist: sphinx-design>=0.6.1; extra == 'dev-complete'
88
87
  Requires-Dist: sphinx-pyproject>=0.3.0; extra == 'dev-complete'
89
88
  Requires-Dist: sphinx>=8.1.3; extra == 'dev-complete'
90
89
  Requires-Dist: tach==0.35.0; extra == 'dev-complete'
91
- Requires-Dist: tox-uv>=1.36.0; extra == 'dev-complete'
92
- Requires-Dist: tox>=4.58.0; extra == 'dev-complete'
90
+ Requires-Dist: tox-uv==1.36.0; extra == 'dev-complete'
91
+ Requires-Dist: tox==4.60.0; extra == 'dev-complete'
93
92
  Requires-Dist: twine>=6.0; extra == 'dev-complete'
94
- Requires-Dist: uv>=0.12.3; extra == 'dev-complete'
93
+ Requires-Dist: uv==0.12.5; extra == 'dev-complete'
95
94
  Provides-Extra: dev-misc
96
95
  Requires-Dist: build>=1.5.0; extra == 'dev-misc'
97
96
  Requires-Dist: check-wheel-contents>=0.6.3; extra == 'dev-misc'
97
+ Requires-Dist: cibuildwheel>=2.23.4; extra == 'dev-misc'
98
98
  Requires-Dist: cryptography>=50.0.0; extra == 'dev-misc'
99
99
  Requires-Dist: nodeenv>=1.10.0; extra == 'dev-misc'
100
- Requires-Dist: pre-commit>=4.6.1; extra == 'dev-misc'
100
+ Requires-Dist: pre-commit>=4.6.2; extra == 'dev-misc'
101
101
  Requires-Dist: twine>=6.0; extra == 'dev-misc'
102
102
  Provides-Extra: docs
103
103
  Requires-Dist: furo>=2025.12.19; extra == 'docs'
@@ -106,20 +106,20 @@ Requires-Dist: sphinx-design>=0.6.1; extra == 'docs'
106
106
  Requires-Dist: sphinx-pyproject>=0.3.0; extra == 'docs'
107
107
  Requires-Dist: sphinx>=8.1.3; extra == 'docs'
108
108
  Provides-Extra: envs
109
- Requires-Dist: tox-uv>=1.36.0; extra == 'envs'
110
- Requires-Dist: tox>=4.58.0; extra == 'envs'
111
- Requires-Dist: uv>=0.12.3; extra == 'envs'
109
+ Requires-Dist: tox-uv==1.36.0; extra == 'envs'
110
+ Requires-Dist: tox==4.60.0; extra == 'envs'
111
+ Requires-Dist: uv==0.12.5; extra == 'envs'
112
112
  Provides-Extra: gui-deps
113
113
  Requires-Dist: dask[distributed]>=2026.7.1; extra == 'gui-deps'
114
114
  Requires-Dist: h5py>=3.16.0; extra == 'gui-deps'
115
115
  Requires-Dist: pandas>=2.3.3; extra == 'gui-deps'
116
116
  Requires-Dist: seaborn>=0.13.2; extra == 'gui-deps'
117
117
  Provides-Extra: lint
118
- Requires-Dist: basedpyright==1.39.9; extra == 'lint'
118
+ Requires-Dist: basedpyright==1.39.10; extra == 'lint'
119
119
  Requires-Dist: gitpython>=3.1.59; extra == 'lint'
120
- Requires-Dist: mypy==2.3.0; extra == 'lint'
120
+ Requires-Dist: mypy==2.3.1; extra == 'lint'
121
121
  Requires-Dist: pyside6-stubs==6.7.3.0; extra == 'lint'
122
- Requires-Dist: ruff==0.16.2; extra == 'lint'
122
+ Requires-Dist: ruff==0.16.3; extra == 'lint'
123
123
  Requires-Dist: slotscheck==0.20.1; extra == 'lint'
124
124
  Requires-Dist: tach==0.35.0; extra == 'lint'
125
125
  Provides-Extra: test
@@ -127,7 +127,7 @@ Requires-Dist: codecov>=2.1.13; extra == 'test'
127
127
  Requires-Dist: dask[distributed]>=2026.7.1; extra == 'test'
128
128
  Requires-Dist: easyprocess>=1.1; (sys_platform == 'linux') and extra == 'test'
129
129
  Requires-Dist: h5py>=3.16.0; extra == 'test'
130
- Requires-Dist: hypothesis>=6.165.2; extra == 'test'
130
+ Requires-Dist: hypothesis>=6.165.5; extra == 'test'
131
131
  Requires-Dist: pandas>=2.3.3; extra == 'test'
132
132
  Requires-Dist: pytest-cov>=7.1.0; extra == 'test'
133
133
  Requires-Dist: pytest-qt>=4.5.0; extra == 'test'
@@ -1,11 +1,33 @@
1
1
  [build-system]
2
- requires = ["hatchling"]
2
+ requires = ["hatchling", "hatch-cython"]
3
3
  build-backend = "hatchling.build"
4
4
 
5
+
6
+ [tool.hatch.build.targets.wheel.hooks.cython]
7
+ dependencies = ["hatch-cython", "numpy"]
8
+
9
+
10
+ [tool.hatch.build.targets.wheel.hooks.cython.options]
11
+ compile_py = false
12
+
13
+
14
+ [tool.hatch.build.targets.wheel.hooks.cython.options.platform.windows]
15
+ extra_compile_args = ["/openmp"]
16
+ extra_link_args = ["/openmp"]
17
+
18
+ [tool.hatch.build.targets.wheel.hooks.cython.options.platform.linux]
19
+ extra_compile_args = ["-fopenmp"]
20
+ extra_link_args = ["-fopenmp"]
21
+
22
+ [tool.hatch.build.targets.wheel.hooks.cython.options.platform.darwin]
23
+ extra_compile_args = ["-Xpreprocessor", "-fopenmp"]
24
+ extra_link_args = ["-lomp"]
25
+
26
+
5
27
  [project]
6
28
  name = "adsorpy"
7
29
  #dynamic = ["version"] # The Python guide says that this will use the Git tag to fill it in.
8
- version = "1.3.0-alpha.2" # Edit manually.
30
+ version = "1.3.1" # Edit manually.
9
31
  description = "Random sequential adsorption (RSA) simulation, 2D lattice-based."
10
32
  authors = [{ name = "J.F.W. Maas", email = "j.f.w.maas@tue.nl" }]
11
33
  readme = "README.md"
@@ -15,7 +37,7 @@ license-files = ["LICEN[CS]E.md"]
15
37
  classifiers = [
16
38
  # Project maturity:
17
39
  "Development Status :: 5 - Production/Stable",
18
- "License :: OSI Approved :: MIT License",
40
+ # "License :: OSI Approved :: MIT License",
19
41
  "Typing :: Typed",
20
42
  # Intended users of project:
21
43
  "Natural Language :: English",
@@ -58,7 +80,7 @@ keywords = [
58
80
 
59
81
  dependencies = [
60
82
  "numpy>=2.2.6",
61
- "numba>=0.66.0",
83
+ # "numba>=0.67.0",
62
84
  "matplotlib>=3.10.9",
63
85
  "shapely>=2.1.2",
64
86
  "pydantic>=2.13.4",
@@ -84,11 +106,12 @@ dependencies = [
84
106
  "ply>=3.11",
85
107
  ]
86
108
 
109
+
87
110
  [project.optional-dependencies]
88
111
  test = [
89
112
  "pytest>=9.1.1",
90
113
  "pytest-cov>=7.1.0",
91
- "hypothesis>=6.165.2",
114
+ "hypothesis>=6.165.5",
92
115
  "scipy>=1.15.3",
93
116
  "codecov>=2.1.13",
94
117
  "pytest-qt>=4.5.0",
@@ -98,9 +121,9 @@ test = [
98
121
  "easyprocess>=1.1; sys_platform == 'linux'",
99
122
  ]
100
123
  lint = [
101
- "mypy==2.3.0",
102
- "ruff==0.16.2",
103
- "basedpyright==1.39.9",
124
+ "mypy==2.3.1",
125
+ "ruff==0.16.3",
126
+ "basedpyright==1.39.10",
104
127
  "tach==0.35.0",
105
128
  "slotscheck==0.20.1",
106
129
  "pyside6-stubs==6.7.3.0",
@@ -114,17 +137,18 @@ docs = [
114
137
  "sphinx-pyproject>=0.3.0",
115
138
  ]
116
139
  envs = [
117
- "tox>=4.58.0",
118
- "tox-uv>=1.36.0",
119
- "uv>=0.12.3",
140
+ "tox==4.60.0",
141
+ "tox-uv==1.36.0",
142
+ "uv==0.12.5",
120
143
  ]
121
144
  dev-misc = [
122
145
  "build>=1.5.0",
123
146
  "twine>=6.0",
124
147
  "cryptography>=50.0.0",
125
148
  "check-wheel-contents>=0.6.3",
126
- "pre-commit>=4.6.1",
149
+ "pre-commit>=4.6.2",
127
150
  "nodeenv>=1.10.0",
151
+ "cibuildwheel>=2.23.4",
128
152
  ]
129
153
  gui-deps = [
130
154
  "pandas>=2.3.3",
@@ -136,24 +160,29 @@ dev-complete = [
136
160
  "adsorpy[test,lint,docs,envs,dev-misc,gui-deps]"
137
161
  ]
138
162
 
163
+
139
164
  [project.urls]
140
- github = "https://github.com/JoosFWMaas/AdsorPy"
165
+ github = "https://github.com/JoostFWMaas/AdsorPy"
141
166
  Documentation = "https://joostfwmaas.github.io/AdsorPy"
142
167
  Changelog = "https://github.com/JoostFWMaas/AdsorPy/blob/main/CHANGELOG.md"
143
168
  homepage = "https://pypi.org/project/adsorpy/"
144
169
  issues = "https://github.com/JoostFWMaas/AdsorPy/issues"
145
170
  download = "https://pypi.org/project/adsorpy/#files"
146
171
 
172
+
147
173
  [tool.hatch.package_data]
148
174
  "adsorpy" = ["py.typed"]
149
175
 
176
+
150
177
  [tool.hatch.build]
151
178
  deterministic = true
152
179
 
180
+
153
181
  [tool.hatch.build.targets.wheel]
154
182
  sbom-files = ["sbom.cdx.json"]
155
183
  packages = ["src/adsorpy"]
156
184
 
185
+
157
186
  [tool.hatch.build.targets.sdist]
158
187
  include = [
159
188
  "/src/adsorpy",
@@ -163,12 +192,14 @@ include = [
163
192
  "sbom.cdx.json",
164
193
  ]
165
194
 
195
+
166
196
  [tool.pytest.ini_options]
167
197
  testpaths = ["tests"]
168
198
  pythonpath = ["."]
169
199
  addopts = ["--cov=adsorpy", "--cov-report=term", "--cov-report=html", "--strict-markers", "--import-mode=importlib"]
170
200
  qt_api = "pyside6"
171
201
 
202
+
172
203
  [tool.coverage.run]
173
204
  omit = [
174
205
  "*/tests/*",
@@ -181,6 +212,7 @@ omit = [
181
212
  "*/Scripts/*",
182
213
  ]
183
214
 
215
+
184
216
  [tool.coverage.report]
185
217
  #fail_under = 20
186
218
  exclude_also = [
@@ -208,12 +240,14 @@ exclude_also = [
208
240
  "batch_simulation",
209
241
  ]
210
242
 
243
+
211
244
  [tool.coverage.paths]
212
245
  source = [
213
246
  "src/", # Local path
214
247
  ".tox/*lib//site-packages/", # Tox path
215
248
  ]
216
249
 
250
+
217
251
  [tool.mypy]
218
252
  mypy_path = ["."]
219
253
  ignore_missing_imports = true
@@ -224,12 +258,14 @@ disallow_any_explicit = true
224
258
  exclude = ['/Scripts']
225
259
  plugins = ["pydantic.mypy"]
226
260
 
261
+
227
262
  [tool.pydantic-mypy]
228
263
  init_forbid_extra = true
229
264
  init_typed = true
230
265
  warn_required_dynamic_aliases = true
231
266
  disallow_subclassing_any = false
232
267
 
268
+
233
269
  [tool.flake8]
234
270
  max-line-length = 120
235
271
  exclude = [
@@ -240,6 +276,7 @@ exclude = [
240
276
  ]
241
277
  count = true
242
278
 
279
+
243
280
  [tool.isort]
244
281
  src_paths = ["src"]
245
282
  line_length = 88
@@ -261,14 +298,17 @@ known_local_folder = ["molcule_lib", "RSA_Calculator", "rsa_config"]
261
298
  [tool.black]
262
299
  line-length = 88
263
300
 
264
- [tool.uv]
265
- required-version = "0.12.3"
301
+
302
+ #[tool.uv]
303
+ #required-version = "0.12.5"
304
+
266
305
 
267
306
  [tool.ruff]
268
307
  line-length = 120
269
308
  include = ["pyproject.toml", "src/**/*.py", "tests/**/*.py"]
270
309
  src = ["src"]
271
310
 
311
+
272
312
  [tool.ruff.format]
273
313
  quote-style = "double"
274
314
  indent-style = "space"
@@ -298,13 +338,16 @@ ignore = [
298
338
  "D213", # Conflicts with D212: multi-line summary first line.
299
339
  ]
300
340
 
341
+
301
342
  [tool.ruff.lint.per-file-ignores]
302
343
  "__init__.py" = ["D104"] # Missing docstring in public package. Not needed, package is empty.
303
344
  "tests/*" = ["S101", "TC", "SLF001"] # Assert should not be used in production code! But this is test code, so here it is expected.
304
345
 
346
+
305
347
  [tool.ruff.lint.flake8-type-checking]
306
348
  runtime-evaluated-decorators = ["pydantic.dataclasses.dataclass"]
307
349
 
350
+
308
351
  [tool.basedpyright]
309
352
  include = ["src", "tests"]
310
353
  extraPaths = ["src"]
@@ -329,15 +372,23 @@ reportUnnecessaryTypeIgnoreComment = "warning"
329
372
  reportUnnecessaryComparison = "warning" # These are usually included to prevent the user from breaking things.
330
373
 
331
374
  # Basedpyright options, comment these out when falling back on pyright:
332
- typeCheckingMode = "strict" # Comment when using pyright. Options are: "strict", "recommended", "all".
333
- failOnWarnings = false
375
+ typeCheckingMode = "strict" # Comment when using pyright. Options (increasingly strict): "strict", "recommended", "all".
376
+ failOnWarnings = false # basedpyright by default allows warnings on check but fails warnings on CI. That is inconsistent behaviour, so this disables that.
334
377
  executionEnvironments = [{ root = "tests", reportPrivateUsage = "none", reportUnnecessaryTypeIgnoreComment = "none" }]
335
378
 
379
+
336
380
  [tool.slotscheck]
337
381
  strict-imports = true
338
- include-modules = """
339
- (
340
- src
341
- # |tests
342
- )
343
- """
382
+
383
+
384
+ [tool.pyside6-deploy]
385
+ # Basic application configuration overrides
386
+ title = "AdsorPy"
387
+ input_file = "gui.py"
388
+ #icon = "assets/something_something.ico"
389
+ exec_directory = "build"
390
+ project_dir = "./src/adsorpy"
391
+
392
+
393
+ [tool.cibuildwheel]
394
+ build-frontend = "build[uv]"