AdsorPy 1.2.2b3__tar.gz → 1.3.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.
@@ -1,6 +1,6 @@
1
1
  # MIT License
2
2
 
3
- Copyright (c) 2025 J.F.W. Maas
3
+ Copyright (c) 2025-2026 J.F.W. Maas
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: adsorpy
3
- Version: 1.2.2b3
3
+ Version: 1.3.0
4
4
  Summary: Random sequential adsorption (RSA) simulation, 2D lattice-based.
5
- Project-URL: github, https://github.com/JoostFWMaas/AdsorPy
5
+ Project-URL: github, https://github.com/JoosFWMaas/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/
@@ -33,37 +33,109 @@ Classifier: Topic :: Scientific/Engineering :: Physics
33
33
  Classifier: Topic :: Software Development
34
34
  Classifier: Typing :: Typed
35
35
  Requires-Python: >=3.10
36
+ Requires-Dist: beautifulsoup4>=4.10.0
37
+ Requires-Dist: defusedxml>=0.7.1
38
+ Requires-Dist: entrypoints>=0.2.3
39
+ Requires-Dist: enum34>=1.1.10
40
+ Requires-Dist: future>=1.0.0
41
+ Requires-Dist: html5lib>=1.1
42
+ Requires-Dist: ipaddress>=1.0.23
36
43
  Requires-Dist: matplotlib>=3.10.9
37
- Requires-Dist: numba>=0.65.1
44
+ Requires-Dist: numba>=0.67.0
38
45
  Requires-Dist: numpy>=2.2.6
46
+ Requires-Dist: ply>=3.11
47
+ Requires-Dist: pycparser>=3.0.0
48
+ Requires-Dist: pydantic-extra-types>=2.11.1
39
49
  Requires-Dist: pydantic>=2.13.4
50
+ Requires-Dist: pyproject-hooks>=1.0.0
51
+ Requires-Dist: pyside6>=6.11.1
52
+ Requires-Dist: pywin32-ctypes>=0.2.3
40
53
  Requires-Dist: rtree>=1.4.1
54
+ Requires-Dist: secretstorage>=3.5.0
41
55
  Requires-Dist: shapely>=2.1.2
56
+ Requires-Dist: svg-py>=1.10.0
57
+ Requires-Dist: typing-extensions>=4.16.0
58
+ Requires-Dist: wcwidth>=0.7.0
59
+ Requires-Dist: webencodings>=0.5.1
60
+ Provides-Extra: dev-complete
61
+ Requires-Dist: basedpyright==1.39.9; extra == 'dev-complete'
62
+ Requires-Dist: build>=1.5.0; extra == 'dev-complete'
63
+ Requires-Dist: check-wheel-contents>=0.6.3; extra == 'dev-complete'
64
+ Requires-Dist: codecov>=2.1.13; extra == 'dev-complete'
65
+ Requires-Dist: cryptography>=50.0.0; extra == 'dev-complete'
66
+ Requires-Dist: dask[distributed]>=2026.7.1; extra == 'dev-complete'
67
+ Requires-Dist: easyprocess>=1.1; (sys_platform == 'linux') and extra == 'dev-complete'
68
+ Requires-Dist: furo>=2025.12.19; extra == 'dev-complete'
69
+ Requires-Dist: gitpython>=3.1.59; extra == 'dev-complete'
70
+ Requires-Dist: h5py>=3.16.0; extra == 'dev-complete'
71
+ Requires-Dist: hypothesis>=6.165.5; extra == 'dev-complete'
72
+ Requires-Dist: mypy==2.3.0; extra == 'dev-complete'
73
+ Requires-Dist: nodeenv>=1.10.0; extra == 'dev-complete'
74
+ Requires-Dist: pandas>=2.3.3; extra == 'dev-complete'
75
+ Requires-Dist: pre-commit>=4.6.2; extra == 'dev-complete'
76
+ Requires-Dist: pyside6-stubs==6.7.3.0; extra == 'dev-complete'
77
+ Requires-Dist: pytest-cov>=7.1.0; extra == 'dev-complete'
78
+ Requires-Dist: pytest-qt>=4.5.0; extra == 'dev-complete'
79
+ Requires-Dist: pytest-xvfb>=3.1.1; (sys_platform == 'linux') and extra == 'dev-complete'
80
+ Requires-Dist: pytest>=9.1.1; extra == 'dev-complete'
81
+ Requires-Dist: pyvirtualdisplay>=1.3; (sys_platform == 'linux') and extra == 'dev-complete'
82
+ Requires-Dist: ruff==0.16.2; extra == 'dev-complete'
83
+ Requires-Dist: scipy>=1.15.3; extra == 'dev-complete'
84
+ Requires-Dist: seaborn>=0.13.2; extra == 'dev-complete'
85
+ Requires-Dist: slotscheck==0.20.1; extra == 'dev-complete'
86
+ Requires-Dist: sphinx-autodoc-typehints>=3.0.1; extra == 'dev-complete'
87
+ Requires-Dist: sphinx-design>=0.6.1; extra == 'dev-complete'
88
+ Requires-Dist: sphinx-pyproject>=0.3.0; extra == 'dev-complete'
89
+ Requires-Dist: sphinx>=8.1.3; extra == 'dev-complete'
90
+ 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.59.0; extra == 'dev-complete'
93
+ Requires-Dist: twine>=6.0; extra == 'dev-complete'
94
+ Requires-Dist: uv>=0.12.3; extra == 'dev-complete'
42
95
  Provides-Extra: dev-misc
43
96
  Requires-Dist: build>=1.5.0; extra == 'dev-misc'
44
97
  Requires-Dist: check-wheel-contents>=0.6.3; extra == 'dev-misc'
98
+ Requires-Dist: cryptography>=50.0.0; extra == 'dev-misc'
99
+ Requires-Dist: nodeenv>=1.10.0; extra == 'dev-misc'
100
+ Requires-Dist: pre-commit>=4.6.2; extra == 'dev-misc'
45
101
  Requires-Dist: twine>=6.0; extra == 'dev-misc'
46
102
  Provides-Extra: docs
47
103
  Requires-Dist: furo>=2025.12.19; extra == 'docs'
48
- Requires-Dist: sphinx-autodoc-typehints>=3.0; extra == 'docs'
49
- Requires-Dist: sphinx-design>=0.6.0; extra == 'docs'
104
+ Requires-Dist: sphinx-autodoc-typehints>=3.0.1; extra == 'docs'
105
+ Requires-Dist: sphinx-design>=0.6.1; extra == 'docs'
50
106
  Requires-Dist: sphinx-pyproject>=0.3.0; extra == 'docs'
51
- Requires-Dist: sphinx>=8.0; extra == 'docs'
107
+ Requires-Dist: sphinx>=8.1.3; extra == 'docs'
52
108
  Provides-Extra: envs
53
- Requires-Dist: tox-uv>=1.35.2; extra == 'envs'
54
- Requires-Dist: tox>=4.54; extra == 'envs'
109
+ Requires-Dist: tox-uv>=1.36.0; extra == 'envs'
110
+ Requires-Dist: tox>=4.59.0; extra == 'envs'
111
+ Requires-Dist: uv>=0.12.3; extra == 'envs'
112
+ Provides-Extra: gui-deps
113
+ Requires-Dist: dask[distributed]>=2026.7.1; extra == 'gui-deps'
114
+ Requires-Dist: h5py>=3.16.0; extra == 'gui-deps'
115
+ Requires-Dist: pandas>=2.3.3; extra == 'gui-deps'
116
+ Requires-Dist: seaborn>=0.13.2; extra == 'gui-deps'
55
117
  Provides-Extra: lint
56
- Requires-Dist: mypy>=2.0.0; extra == 'lint'
57
- Requires-Dist: pyright>=1.1.409; extra == 'lint'
58
- Requires-Dist: ruff>=0.15.12; extra == 'lint'
59
- Requires-Dist: slotscheck>=0.19.1; extra == 'lint'
60
- Requires-Dist: tach>=0.34.1; extra == 'lint'
118
+ Requires-Dist: basedpyright==1.39.9; extra == 'lint'
119
+ Requires-Dist: gitpython>=3.1.59; extra == 'lint'
120
+ Requires-Dist: mypy==2.3.0; extra == 'lint'
121
+ Requires-Dist: pyside6-stubs==6.7.3.0; extra == 'lint'
122
+ Requires-Dist: ruff==0.16.2; extra == 'lint'
123
+ Requires-Dist: slotscheck==0.20.1; extra == 'lint'
124
+ Requires-Dist: tach==0.35.0; extra == 'lint'
61
125
  Provides-Extra: test
62
126
  Requires-Dist: codecov>=2.1.13; extra == 'test'
63
- Requires-Dist: hypothesis>=6.152.4; extra == 'test'
127
+ Requires-Dist: dask[distributed]>=2026.7.1; extra == 'test'
128
+ Requires-Dist: easyprocess>=1.1; (sys_platform == 'linux') and extra == 'test'
129
+ Requires-Dist: h5py>=3.16.0; extra == 'test'
130
+ Requires-Dist: hypothesis>=6.165.5; extra == 'test'
131
+ Requires-Dist: pandas>=2.3.3; extra == 'test'
64
132
  Requires-Dist: pytest-cov>=7.1.0; extra == 'test'
65
- Requires-Dist: pytest>=9.0.3; extra == 'test'
133
+ Requires-Dist: pytest-qt>=4.5.0; extra == 'test'
134
+ Requires-Dist: pytest-xvfb>=3.1.1; (sys_platform == 'linux') and extra == 'test'
135
+ Requires-Dist: pytest>=9.1.1; extra == 'test'
136
+ Requires-Dist: pyvirtualdisplay>=1.3; (sys_platform == 'linux') and extra == 'test'
66
137
  Requires-Dist: scipy>=1.15.3; extra == 'test'
138
+ Requires-Dist: seaborn>=0.13.2; extra == 'test'
67
139
  Description-Content-Type: text/markdown
68
140
 
69
141
  # AdsorPy
@@ -90,8 +162,8 @@ gap size distribution.
90
162
 
91
163
  ## How to use
92
164
 
93
- This package can be found on PyPI as [adsorpy](https://pypi.org/project/adsorpy/), so we recommend the following:
94
- ```bash
165
+ This package can be found on PyPI as [adsorpy](https://pypi.org/project/adsorpy/), so we recommend the following:
166
+ ```bash
95
167
  pip install adsorpy
96
168
  ```
97
169
 
@@ -135,5 +207,5 @@ The package also makes use of an optional config file that falls back on standar
135
207
 
136
208
  ## Openness and academic collaboration
137
209
 
138
- The script was made public for the sake of openness and academic collaboration. Please let me know if you have questions about the script, or if you have discovered any issues/bugs.
210
+ The script was made public for the sake of openness and academic collaboration. Please let me know if you have questions about the script, or if you have discovered any issues/bugs.
139
211
  At the end of this file, I will place a list of papers that make use of this work. Feel free to contact me if you want your work to be added to the list as well.
@@ -22,8 +22,8 @@ gap size distribution.
22
22
 
23
23
  ## How to use
24
24
 
25
- This package can be found on PyPI as [adsorpy](https://pypi.org/project/adsorpy/), so we recommend the following:
26
- ```bash
25
+ This package can be found on PyPI as [adsorpy](https://pypi.org/project/adsorpy/), so we recommend the following:
26
+ ```bash
27
27
  pip install adsorpy
28
28
  ```
29
29
 
@@ -67,5 +67,5 @@ The package also makes use of an optional config file that falls back on standar
67
67
 
68
68
  ## Openness and academic collaboration
69
69
 
70
- The script was made public for the sake of openness and academic collaboration. Please let me know if you have questions about the script, or if you have discovered any issues/bugs.
70
+ The script was made public for the sake of openness and academic collaboration. Please let me know if you have questions about the script, or if you have discovered any issues/bugs.
71
71
  At the end of this file, I will place a list of papers that make use of this work. Feel free to contact me if you want your work to be added to the list as well.
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
5
5
  [project]
6
6
  name = "adsorpy"
7
7
  #dynamic = ["version"] # The Python guide says that this will use the Git tag to fill it in.
8
- version = "1.2.2-beta.3" # The Python guide says that this will use the Git tag to fill it in.
8
+ version = "1.3.0" # Edit manually.
9
9
  description = "Random sequential adsorption (RSA) simulation, 2D lattice-based."
10
10
  authors = [{ name = "J.F.W. Maas", email = "j.f.w.maas@tue.nl" }]
11
11
  readme = "README.md"
@@ -17,8 +17,8 @@ classifiers = [
17
17
  "Development Status :: 5 - Production/Stable",
18
18
  "License :: OSI Approved :: MIT License",
19
19
  "Typing :: Typed",
20
- "Natural Language :: English",
21
20
  # Intended users of project:
21
+ "Natural Language :: English",
22
22
  "Intended Audience :: Developers",
23
23
  "Intended Audience :: Science/Research",
24
24
  "Topic :: Software Development",
@@ -58,47 +58,86 @@ keywords = [
58
58
 
59
59
  dependencies = [
60
60
  "numpy>=2.2.6",
61
- "numba>=0.65.1",
61
+ "numba>=0.67.0",
62
62
  "matplotlib>=3.10.9",
63
63
  "shapely>=2.1.2",
64
64
  "pydantic>=2.13.4",
65
+ "pydantic-extra-types>=2.11.1",
65
66
  "rtree>=1.4.1",
67
+ "svg-py>=1.10.0",
68
+ "defusedxml>=0.7.1",
69
+ "PySide6>=6.11.1",
70
+ "typing-extensions>=4.16.0",
71
+ # Everything after this line is included so uv also runs with the lowest dependency resolution.
72
+ "html5lib>=1.1",
73
+ "wcwidth>=0.7.0",
74
+ "webencodings>=0.5.1",
75
+ "pyproject-hooks>=1.0.0",
76
+ "beautifulsoup4>=4.10.0",
77
+ "entrypoints>=0.2.3",
78
+ "future>=1.0.0",
79
+ "secretstorage>=3.5.0",
80
+ "pywin32-ctypes>=0.2.3",
81
+ "pycparser>=3.0.0",
82
+ "enum34>=1.1.10",
83
+ "ipaddress>=1.0.23",
84
+ "ply>=3.11",
66
85
  ]
67
86
 
68
87
  [project.optional-dependencies]
69
88
  test = [
70
- "pytest>=9.0.3",
89
+ "pytest>=9.1.1",
71
90
  "pytest-cov>=7.1.0",
72
- "hypothesis>=6.152.4",
91
+ "hypothesis>=6.165.5",
73
92
  "scipy>=1.15.3",
74
93
  "codecov>=2.1.13",
94
+ "pytest-qt>=4.5.0",
95
+ "adsorpy[gui-deps]",
96
+ "pytest-xvfb>=3.1.1; sys_platform == 'linux'",
97
+ "pyvirtualdisplay>=1.3; sys_platform == 'linux'",
98
+ "easyprocess>=1.1; sys_platform == 'linux'",
75
99
  ]
76
100
  lint = [
77
- "mypy>=2.0.0",
78
- "ruff>=0.15.12",
79
- "pyright>=1.1.409",
80
- "tach>=0.34.1",
81
- "slotscheck>=0.19.1",
101
+ "mypy==2.3.0",
102
+ "ruff==0.16.2",
103
+ "basedpyright==1.39.9",
104
+ "tach==0.35.0",
105
+ "slotscheck==0.20.1",
106
+ "pyside6-stubs==6.7.3.0",
107
+ "gitpython>=3.1.59",
82
108
  ]
83
109
  docs = [
84
- "sphinx>=8.0",
110
+ "sphinx>=8.1.3",
85
111
  "furo>=2025.12.19",
86
- "sphinx_design>=0.6.0",
87
- "sphinx-autodoc-typehints>=3.0",
112
+ "sphinx_design>=0.6.1",
113
+ "sphinx-autodoc-typehints>=3.0.1",
88
114
  "sphinx-pyproject>=0.3.0",
89
115
  ]
90
116
  envs = [
91
- "tox>=4.54",
92
- "tox-uv>=1.35.2",
117
+ "tox>=4.59.0",
118
+ "tox-uv>=1.36.0",
119
+ "uv>=0.12.3",
93
120
  ]
94
121
  dev-misc = [
95
122
  "build>=1.5.0",
96
123
  "twine>=6.0",
124
+ "cryptography>=50.0.0",
97
125
  "check-wheel-contents>=0.6.3",
126
+ "pre-commit>=4.6.2",
127
+ "nodeenv>=1.10.0",
128
+ ]
129
+ gui-deps = [
130
+ "pandas>=2.3.3",
131
+ "h5py>=3.16.0",
132
+ "seaborn>=0.13.2",
133
+ "dask[distributed]>=2026.7.1",
134
+ ]
135
+ dev-complete = [
136
+ "adsorpy[test,lint,docs,envs,dev-misc,gui-deps]"
98
137
  ]
99
138
 
100
139
  [project.urls]
101
- github = "https://github.com/JoostFWMaas/AdsorPy"
140
+ github = "https://github.com/JoosFWMaas/AdsorPy"
102
141
  Documentation = "https://joostfwmaas.github.io/AdsorPy"
103
142
  Changelog = "https://github.com/JoostFWMaas/AdsorPy/blob/main/CHANGELOG.md"
104
143
  homepage = "https://pypi.org/project/adsorpy/"
@@ -109,8 +148,6 @@ download = "https://pypi.org/project/adsorpy/#files"
109
148
  "adsorpy" = ["py.typed"]
110
149
 
111
150
  [tool.hatch.build]
112
- #include = ["src/**"]
113
- #only-packages = true
114
151
  deterministic = true
115
152
 
116
153
  [tool.hatch.build.targets.wheel]
@@ -126,18 +163,11 @@ include = [
126
163
  "sbom.cdx.json",
127
164
  ]
128
165
 
129
- [tool.hatch.env]
130
- requires = [
131
- "hatch-pip-compile"
132
- ]
133
-
134
- [tool.hatch.envs.default]
135
- type = "pip-compile"
136
-
137
166
  [tool.pytest.ini_options]
138
167
  testpaths = ["tests"]
139
- pythonpath = ["src/adsorpy"]
140
- addopts = ["--cov=src/adsorpy", "--cov-report=term", "--cov-report=html", "--strict-markers"]
168
+ pythonpath = ["."]
169
+ addopts = ["--cov=adsorpy", "--cov-report=term", "--cov-report=html", "--strict-markers", "--import-mode=importlib"]
170
+ qt_api = "pyside6"
141
171
 
142
172
  [tool.coverage.run]
143
173
  omit = [
@@ -152,26 +182,40 @@ omit = [
152
182
  ]
153
183
 
154
184
  [tool.coverage.report]
185
+ #fail_under = 20
155
186
  exclude_also = [
156
187
  "if __name__ == .__main__.:",
157
188
  "def main()",
158
- "if False:",
189
+ # "if False:",
159
190
  "raise NotImplementedError",
160
191
  "if TYPE_CHECKING",
161
- "def plot_*",
162
- "if print_*",
163
- "if plot_*",
192
+ "def plot_",
193
+ "if print_",
194
+ "if plot_",
164
195
  "while temp_results_folder.is_dir()", # Checks for collision in saving folders. Nothing is saved for tests.
165
196
  "if self.flux_flag:", # Experimental feature, not yet usable.
166
- "_run_flux_*", # See above.
197
+ "_run_flux_", # See above.
167
198
  "if not self.simple_shape_flag", # Idem ditto.
168
- "if version_info", # Is tested with Tox (between instances of Pytest). False negative.
199
+ "if (sys\\.)?version_info", # Is tested with Tox (between instances of Pytest). False negative.
169
200
  "from datetime import", # Used for compatibility between versions. Only tests for one version at a time.
170
201
  "@njit", # Compiled code is not seen by coverage. This code is tested with Hypothesis though. False negative.
202
+ "svg",
203
+ "css",
204
+ "def show_",
205
+ "def save_",
206
+ "from typing",
207
+ "if prlongoutput_flag",
208
+ "batch_simulation",
209
+ ]
210
+
211
+ [tool.coverage.paths]
212
+ source = [
213
+ "src/", # Local path
214
+ ".tox/*lib//site-packages/", # Tox path
171
215
  ]
172
216
 
173
217
  [tool.mypy]
174
- mypy_path = ["src", "optional", "tests"]
218
+ mypy_path = ["."]
175
219
  ignore_missing_imports = true
176
220
  strict = true
177
221
  disallow_any_explicit = true
@@ -184,6 +228,7 @@ plugins = ["pydantic.mypy"]
184
228
  init_forbid_extra = true
185
229
  init_typed = true
186
230
  warn_required_dynamic_aliases = true
231
+ disallow_subclassing_any = false
187
232
 
188
233
  [tool.flake8]
189
234
  max-line-length = 120
@@ -216,9 +261,13 @@ known_local_folder = ["molcule_lib", "RSA_Calculator", "rsa_config"]
216
261
  [tool.black]
217
262
  line-length = 88
218
263
 
264
+ [tool.uv]
265
+ required-version = "0.12.3"
266
+
219
267
  [tool.ruff]
220
268
  line-length = 120
221
269
  include = ["pyproject.toml", "src/**/*.py", "tests/**/*.py"]
270
+ src = ["src"]
222
271
 
223
272
  [tool.ruff.format]
224
273
  quote-style = "double"
@@ -251,22 +300,21 @@ ignore = [
251
300
 
252
301
  [tool.ruff.lint.per-file-ignores]
253
302
  "__init__.py" = ["D104"] # Missing docstring in public package. Not needed, package is empty.
254
- "test*.py" = ["S101", "TC"] # Assert should not be used in production code! But this is test code, so here it is expected.
303
+ "tests/*" = ["S101", "TC", "SLF001"] # Assert should not be used in production code! But this is test code, so here it is expected.
255
304
 
256
305
  [tool.ruff.lint.flake8-type-checking]
257
306
  runtime-evaluated-decorators = ["pydantic.dataclasses.dataclass"]
258
307
 
259
- [tool.pyright]
308
+ [tool.basedpyright]
260
309
  include = ["src", "tests"]
261
-
262
- typeCheckingMode = "strict"
263
-
264
- useLibraryCodeForTypes = true
310
+ extraPaths = ["src"]
311
+ #typeCheckingMode = "strict" # Comment when using basedpyright.
312
+ #useLibraryCodeForTypes = true
265
313
 
266
314
  # Avoid penalising third-party libraries.
267
315
  reportMissingTypeStubs = "none"
268
316
 
269
- # Suppress "partially unknown" noise from deps like numpy, shapely, matplotlib, etc..
317
+ # Suppress "partially unknown" noise from deps like numpy, shapely, matplotlib, etc...
270
318
  reportUnknownMemberType = "none"
271
319
  reportUnknownVariableType = "none"
272
320
  reportUnknownParameterType = "none"
@@ -280,11 +328,10 @@ reportPrivateUsage = "warning"
280
328
  reportUnnecessaryTypeIgnoreComment = "warning"
281
329
  reportUnnecessaryComparison = "warning" # These are usually included to prevent the user from breaking things.
282
330
 
331
+ # 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
334
+ executionEnvironments = [{ root = "tests", reportPrivateUsage = "none", reportUnnecessaryTypeIgnoreComment = "none" }]
335
+
283
336
  [tool.slotscheck]
284
337
  strict-imports = true
285
- include-modules = """
286
- (
287
- src
288
- # |tests
289
- )
290
- """