AdsorPy 1.3.4a8__tar.gz → 1.3.5__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.
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/PKG-INFO +17 -110
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/README.md +4 -4
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/pyproject.toml +108 -84
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/sbom.cdx.json +9561 -15976
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/src/adsorpy/compiled_squared_cdist.c +294 -328
- adsorpy-1.3.5/src/adsorpy/compiled_squared_cdist.cpython-314-x86_64-linux-gnu.so +0 -0
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/src/adsorpy/gui.py +79 -52
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/src/adsorpy/randomsequentialadsorption.py +120 -37
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/src/adsorpy/rsa_config.py +1 -6
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/src/adsorpy/run_simulation.py +9 -16
- adsorpy-1.3.5/src/adsorpy/scripts/__init__.py +2 -0
- adsorpy-1.3.5/src/adsorpy/scripts/schrodinger_interface.py +144 -0
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/src/adsorpy/types.py +1 -1
- adsorpy-1.3.4a8/src/adsorpy/compiled_squared_cdist.cpython-313-x86_64-linux-gnu.so +0 -0
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/LICENSE.md +0 -0
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/src/adsorpy/VdW_Radii.csv +0 -0
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/src/adsorpy/__init__.py +0 -0
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/src/adsorpy/assets/Icon_attribution.txt +0 -0
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/src/adsorpy/assets/book-open-list.png +0 -0
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/src/adsorpy/assets/book-question.png +0 -0
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/src/adsorpy/assets/bug--exclamation.png +0 -0
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/src/adsorpy/assets/door-open-out.png +0 -0
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/src/adsorpy/compiled_squared_cdist.pyx +0 -0
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/src/adsorpy/config.json +0 -0
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/src/adsorpy/molecule_colour.json +0 -0
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/src/adsorpy/molecule_lib.py +0 -0
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/src/adsorpy/rsa_calculator.py +0 -0
- {adsorpy-1.3.4a8 → adsorpy-1.3.5}/src/adsorpy/vdw_radii.json +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: adsorpy
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.5
|
|
4
4
|
Summary: Random sequential adsorption (RSA) simulation, 2D lattice-based.
|
|
5
5
|
Project-URL: github, https://github.com/JoostFWMaas/AdsorPy
|
|
6
6
|
Project-URL: Documentation, https://joostfwmaas.github.io/AdsorPy
|
|
@@ -16,11 +16,12 @@ Classifier: Development Status :: 5 - Production/Stable
|
|
|
16
16
|
Classifier: Intended Audience :: Developers
|
|
17
17
|
Classifier: Intended Audience :: Science/Research
|
|
18
18
|
Classifier: Natural Language :: English
|
|
19
|
-
Classifier: Operating System ::
|
|
19
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
20
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
21
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
20
22
|
Classifier: Programming Language :: Python
|
|
21
23
|
Classifier: Programming Language :: Python :: 3
|
|
22
24
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
23
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
24
25
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
26
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
27
|
Classifier: Programming Language :: Python :: 3.13
|
|
@@ -31,131 +32,37 @@ Classifier: Topic :: Scientific/Engineering :: Mathematics
|
|
|
31
32
|
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
32
33
|
Classifier: Topic :: Software Development
|
|
33
34
|
Classifier: Typing :: Typed
|
|
34
|
-
Requires-Python:
|
|
35
|
-
Requires-Dist: beautifulsoup4>=4.10.0
|
|
35
|
+
Requires-Python: <3.15,>=3.11
|
|
36
36
|
Requires-Dist: defusedxml>=0.7.1
|
|
37
|
-
Requires-Dist:
|
|
38
|
-
Requires-Dist:
|
|
39
|
-
Requires-Dist:
|
|
40
|
-
Requires-Dist: future>=1.0.0
|
|
41
|
-
Requires-Dist: html5lib>=1.1
|
|
42
|
-
Requires-Dist: ipaddress>=1.0.23
|
|
43
|
-
Requires-Dist: matplotlib>=3.8.9
|
|
44
|
-
Requires-Dist: numpy>=2.2.6
|
|
45
|
-
Requires-Dist: ply>=3.11
|
|
46
|
-
Requires-Dist: pre-commit>=4.6.2
|
|
47
|
-
Requires-Dist: pycparser>=3.0.0
|
|
37
|
+
Requires-Dist: frozendict>=2.5.1; python_version <= '3.14'
|
|
38
|
+
Requires-Dist: matplotlib>=3.11.2
|
|
39
|
+
Requires-Dist: numpy>=2.4.6
|
|
48
40
|
Requires-Dist: pydantic-extra-types>=2.11.1
|
|
49
|
-
Requires-Dist: pydantic>=2.
|
|
50
|
-
Requires-Dist:
|
|
51
|
-
Requires-Dist: pyside6>=6.11.1
|
|
52
|
-
Requires-Dist: pywin32-ctypes>=0.2.3
|
|
41
|
+
Requires-Dist: pydantic>=2.14.3
|
|
42
|
+
Requires-Dist: pyside6>=6.12.0
|
|
53
43
|
Requires-Dist: rtree>=1.4.1
|
|
54
|
-
Requires-Dist:
|
|
55
|
-
Requires-Dist: shapely>=2.1.2
|
|
44
|
+
Requires-Dist: shapely>=2.2.0
|
|
56
45
|
Requires-Dist: svg-py>=1.10.0
|
|
57
46
|
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.40.1; extra == 'dev-complete'
|
|
62
|
-
Requires-Dist: build>=1.6.1; extra == 'dev-complete'
|
|
63
|
-
Requires-Dist: check-wheel-contents>=0.6.3; extra == 'dev-complete'
|
|
64
|
-
Requires-Dist: cibuildwheel>=2.23.4; extra == 'dev-complete'
|
|
65
|
-
Requires-Dist: codecov>=2.1.13; extra == 'dev-complete'
|
|
66
|
-
Requires-Dist: cryptography>=50.0.1; extra == 'dev-complete'
|
|
67
|
-
Requires-Dist: dask[distributed]>=2026.8.0; extra == 'dev-complete'
|
|
68
|
-
Requires-Dist: easyprocess>=1.1; (sys_platform == 'linux') and extra == 'dev-complete'
|
|
69
|
-
Requires-Dist: furo>=2025.12.19; extra == 'dev-complete'
|
|
70
|
-
Requires-Dist: gitpython>=3.2.0; extra == 'dev-complete'
|
|
71
|
-
Requires-Dist: h5py>=3.16.0; extra == 'dev-complete'
|
|
72
|
-
Requires-Dist: hypothesis>=6.168.3; extra == 'dev-complete'
|
|
73
|
-
Requires-Dist: mypy==2.3.1; extra == 'dev-complete'
|
|
74
|
-
Requires-Dist: nodeenv>=1.10.0; extra == 'dev-complete'
|
|
75
|
-
Requires-Dist: pandas>=2.3.3; extra == 'dev-complete'
|
|
76
|
-
Requires-Dist: pre-commit>=4.6.2; extra == 'dev-complete'
|
|
77
|
-
Requires-Dist: pyside6-stubs==6.7.3.0; extra == 'dev-complete'
|
|
78
|
-
Requires-Dist: pytest-cov>=7.1.0; extra == 'dev-complete'
|
|
79
|
-
Requires-Dist: pytest-env>=1.7.1; extra == 'dev-complete'
|
|
80
|
-
Requires-Dist: pytest-qt>=4.5.0; extra == 'dev-complete'
|
|
81
|
-
Requires-Dist: pytest-xvfb>=3.1.1; (sys_platform == 'linux') and extra == 'dev-complete'
|
|
82
|
-
Requires-Dist: pytest>=9.1.1; extra == 'dev-complete'
|
|
83
|
-
Requires-Dist: pyvirtualdisplay>=1.3; (sys_platform == 'linux') and extra == 'dev-complete'
|
|
84
|
-
Requires-Dist: ruff==0.16.9; extra == 'dev-complete'
|
|
85
|
-
Requires-Dist: scipy>=1.15.3; extra == 'dev-complete'
|
|
86
|
-
Requires-Dist: seaborn>=0.13.2; extra == 'dev-complete'
|
|
87
|
-
Requires-Dist: slotscheck==0.21.0; extra == 'dev-complete'
|
|
88
|
-
Requires-Dist: sphinx-autodoc-typehints>=3.0.1; extra == 'dev-complete'
|
|
89
|
-
Requires-Dist: sphinx-design>=0.6.1; extra == 'dev-complete'
|
|
90
|
-
Requires-Dist: sphinx-pyproject>=0.3.0; extra == 'dev-complete'
|
|
91
|
-
Requires-Dist: sphinx>=8.1.3; extra == 'dev-complete'
|
|
92
|
-
Requires-Dist: tach==0.35.2; extra == 'dev-complete'
|
|
93
|
-
Requires-Dist: tox-uv==1.36.0; extra == 'dev-complete'
|
|
94
|
-
Requires-Dist: tox==4.64.6; extra == 'dev-complete'
|
|
95
|
-
Requires-Dist: twine>=7.0.0; extra == 'dev-complete'
|
|
96
|
-
Requires-Dist: types-shapely>=2.1.0.20260728; extra == 'dev-complete'
|
|
97
|
-
Requires-Dist: uv==0.12.21; extra == 'dev-complete'
|
|
98
|
-
Provides-Extra: dev-misc
|
|
99
|
-
Requires-Dist: build>=1.6.1; extra == 'dev-misc'
|
|
100
|
-
Requires-Dist: check-wheel-contents>=0.6.3; extra == 'dev-misc'
|
|
101
|
-
Requires-Dist: cibuildwheel>=2.23.4; extra == 'dev-misc'
|
|
102
|
-
Requires-Dist: cryptography>=50.0.1; extra == 'dev-misc'
|
|
103
|
-
Requires-Dist: nodeenv>=1.10.0; extra == 'dev-misc'
|
|
104
|
-
Requires-Dist: pre-commit>=4.6.2; extra == 'dev-misc'
|
|
105
|
-
Requires-Dist: twine>=7.0.0; extra == 'dev-misc'
|
|
106
|
-
Provides-Extra: docs
|
|
107
|
-
Requires-Dist: furo>=2025.12.19; extra == 'docs'
|
|
108
|
-
Requires-Dist: sphinx-autodoc-typehints>=3.0.1; extra == 'docs'
|
|
109
|
-
Requires-Dist: sphinx-design>=0.6.1; extra == 'docs'
|
|
110
|
-
Requires-Dist: sphinx-pyproject>=0.3.0; extra == 'docs'
|
|
111
|
-
Requires-Dist: sphinx>=8.1.3; extra == 'docs'
|
|
112
|
-
Provides-Extra: envs
|
|
113
|
-
Requires-Dist: tox-uv==1.36.0; extra == 'envs'
|
|
114
|
-
Requires-Dist: tox==4.64.6; extra == 'envs'
|
|
115
|
-
Requires-Dist: uv==0.12.21; extra == 'envs'
|
|
116
47
|
Provides-Extra: gui-deps
|
|
117
|
-
Requires-Dist: dask[distributed]>=2026.
|
|
48
|
+
Requires-Dist: dask[distributed]>=2026.11.0; extra == 'gui-deps'
|
|
118
49
|
Requires-Dist: h5py>=3.16.0; extra == 'gui-deps'
|
|
119
|
-
Requires-Dist: pandas>=
|
|
50
|
+
Requires-Dist: pandas>=3.1.0; extra == 'gui-deps'
|
|
120
51
|
Requires-Dist: seaborn>=0.13.2; extra == 'gui-deps'
|
|
121
|
-
Provides-Extra: lint
|
|
122
|
-
Requires-Dist: basedpyright==1.40.1; extra == 'lint'
|
|
123
|
-
Requires-Dist: gitpython>=3.2.0; extra == 'lint'
|
|
124
|
-
Requires-Dist: mypy==2.3.1; extra == 'lint'
|
|
125
|
-
Requires-Dist: pyside6-stubs==6.7.3.0; extra == 'lint'
|
|
126
|
-
Requires-Dist: ruff==0.16.9; extra == 'lint'
|
|
127
|
-
Requires-Dist: slotscheck==0.21.0; extra == 'lint'
|
|
128
|
-
Requires-Dist: tach==0.35.2; extra == 'lint'
|
|
129
|
-
Requires-Dist: types-shapely>=2.1.0.20260728; extra == 'lint'
|
|
130
|
-
Provides-Extra: test
|
|
131
|
-
Requires-Dist: codecov>=2.1.13; extra == 'test'
|
|
132
|
-
Requires-Dist: dask[distributed]>=2026.8.0; extra == 'test'
|
|
133
|
-
Requires-Dist: easyprocess>=1.1; (sys_platform == 'linux') and extra == 'test'
|
|
134
|
-
Requires-Dist: h5py>=3.16.0; extra == 'test'
|
|
135
|
-
Requires-Dist: hypothesis>=6.168.3; extra == 'test'
|
|
136
|
-
Requires-Dist: pandas>=2.3.3; extra == 'test'
|
|
137
|
-
Requires-Dist: pytest-cov>=7.1.0; extra == 'test'
|
|
138
|
-
Requires-Dist: pytest-env>=1.7.1; extra == 'test'
|
|
139
|
-
Requires-Dist: pytest-qt>=4.5.0; extra == 'test'
|
|
140
|
-
Requires-Dist: pytest-xvfb>=3.1.1; (sys_platform == 'linux') and extra == 'test'
|
|
141
|
-
Requires-Dist: pytest>=9.1.1; extra == 'test'
|
|
142
|
-
Requires-Dist: pyvirtualdisplay>=1.3; (sys_platform == 'linux') and extra == 'test'
|
|
143
|
-
Requires-Dist: scipy>=1.15.3; extra == 'test'
|
|
144
|
-
Requires-Dist: seaborn>=0.13.2; extra == 'test'
|
|
145
52
|
Description-Content-Type: text/markdown
|
|
146
53
|
|
|
147
54
|
# AdsorPy
|
|
148
55
|
|
|
149
56
|
[](https://pypi.python.org/pypi/adsorpy) <!-- [](https://anaconda.org/conda-forge/adsorpy) -->
|
|
57
|
+
[](https://pypi.python.org/pypi/adsorpy)
|
|
150
58
|

|
|
151
59
|
[](https://joostfwmaas.github.io/AdsorPy/)
|
|
152
60
|
[](https://codecov.io/github/JoostFWMaas/AdsorPy)
|
|
153
61
|
[](https://scorecard.dev/viewer/?uri=github.com/JoostFWMaas/AdsorPy)
|
|
154
|
-
[](https://www.bestpractices.dev/projects/12810)
|
|
62
|
+
[](https://app.sbomify.com/public/product/jmtLHQbIeZLD/)
|
|
156
63
|
|
|
157
64
|
|
|
158
|
-
Lattice-based random sequential adsorption (RSA) Python 3.
|
|
65
|
+
Lattice-based random sequential adsorption (RSA) Python 3.11+ script.
|
|
159
66
|
|
|
160
67
|
In RSA, molecules arrive one by one at a surface. Adsorption takes place if the molecule does not overlap with molecules
|
|
161
68
|
already on the surface.
|
|
@@ -202,7 +109,7 @@ In a future update, the code will be expanded with diffusion, desorption, and sp
|
|
|
202
109
|
Because AdsorPy has been made with scientific rigour in mind, the package is tested in multiple ways:
|
|
203
110
|
- Unit tests (`pytest`) of the code ensure correct behaviour for expected input.
|
|
204
111
|
- Property tests (`hypothesis`) of the most critical code components ensure correct behaviour for unexpected input as well.
|
|
205
|
-
- `mypy` (in `--strict` mode) and `
|
|
112
|
+
- `mypy` (in `--strict` mode) and `basedpyright` (`strict`) ensure that the package is correctly-typed, as if it were static. The `py.typed` file, a promise that the code is type-hinted properly, is added because the code passes this test.
|
|
206
113
|
- `ruff` is used as a linter with almost all rules enabled (see the `pyproject.toml` for the list of exclusions and reasons).
|
|
207
114
|
- `slotscheck` ensures that all dataclass slots are set up correctly.
|
|
208
115
|
- `tach` ensures that internal dependencies are handled correctly (from low level to high), preventing circular dependencies.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# AdsorPy
|
|
2
2
|
|
|
3
3
|
[](https://pypi.python.org/pypi/adsorpy) <!-- [](https://anaconda.org/conda-forge/adsorpy) -->
|
|
4
|
+
[](https://pypi.python.org/pypi/adsorpy)
|
|
4
5
|

|
|
5
6
|
[](https://joostfwmaas.github.io/AdsorPy/)
|
|
6
7
|
[](https://codecov.io/github/JoostFWMaas/AdsorPy)
|
|
7
8
|
[](https://scorecard.dev/viewer/?uri=github.com/JoostFWMaas/AdsorPy)
|
|
8
|
-
[](https://www.bestpractices.dev/projects/12810)
|
|
9
|
+
[](https://app.sbomify.com/public/product/jmtLHQbIeZLD/)
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
Lattice-based random sequential adsorption (RSA) Python 3.
|
|
12
|
+
Lattice-based random sequential adsorption (RSA) Python 3.11+ script.
|
|
13
13
|
|
|
14
14
|
In RSA, molecules arrive one by one at a surface. Adsorption takes place if the molecule does not overlap with molecules
|
|
15
15
|
already on the surface.
|
|
@@ -56,7 +56,7 @@ In a future update, the code will be expanded with diffusion, desorption, and sp
|
|
|
56
56
|
Because AdsorPy has been made with scientific rigour in mind, the package is tested in multiple ways:
|
|
57
57
|
- Unit tests (`pytest`) of the code ensure correct behaviour for expected input.
|
|
58
58
|
- Property tests (`hypothesis`) of the most critical code components ensure correct behaviour for unexpected input as well.
|
|
59
|
-
- `mypy` (in `--strict` mode) and `
|
|
59
|
+
- `mypy` (in `--strict` mode) and `basedpyright` (`strict`) ensure that the package is correctly-typed, as if it were static. The `py.typed` file, a promise that the code is type-hinted properly, is added because the code passes this test.
|
|
60
60
|
- `ruff` is used as a linter with almost all rules enabled (see the `pyproject.toml` for the list of exclusions and reasons).
|
|
61
61
|
- `slotscheck` ensures that all dataclass slots are set up correctly.
|
|
62
62
|
- `tach` ensures that internal dependencies are handled correctly (from low level to high), preventing circular dependencies.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["hatchling", "hatch-cython"]
|
|
2
|
+
requires = ["hatchling>=1.18.2", "hatch-cython"]
|
|
3
3
|
build-backend = "hatchling.build"
|
|
4
4
|
|
|
5
5
|
|
|
@@ -7,17 +7,16 @@ build-backend = "hatchling.build"
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "adsorpy"
|
|
9
9
|
#dynamic = ["version"] # The Python guide says that this will use the Git tag to fill it in.
|
|
10
|
-
version = "1.3.
|
|
10
|
+
version = "1.3.5" # Edit manually.
|
|
11
11
|
description = "Random sequential adsorption (RSA) simulation, 2D lattice-based."
|
|
12
12
|
authors = [{ name = "J.F.W. Maas", email = "j.f.w.maas@tue.nl" }]
|
|
13
13
|
readme = "README.md"
|
|
14
|
-
requires-python = ">=3.
|
|
14
|
+
requires-python = ">=3.11,<3.15"
|
|
15
15
|
license = "MIT"
|
|
16
16
|
license-files = ["LICEN[CS]E.md"]
|
|
17
17
|
classifiers = [
|
|
18
18
|
# Project maturity:
|
|
19
19
|
"Development Status :: 5 - Production/Stable",
|
|
20
|
-
# "License :: OSI Approved :: MIT License",
|
|
21
20
|
"Typing :: Typed",
|
|
22
21
|
# Intended users of project:
|
|
23
22
|
"Natural Language :: English",
|
|
@@ -32,13 +31,14 @@ classifiers = [
|
|
|
32
31
|
"Programming Language :: Python",
|
|
33
32
|
"Programming Language :: Python :: 3",
|
|
34
33
|
"Programming Language :: Python :: 3 :: Only",
|
|
35
|
-
"Programming Language :: Python :: 3.10",
|
|
36
34
|
"Programming Language :: Python :: 3.11",
|
|
37
35
|
"Programming Language :: Python :: 3.12",
|
|
38
36
|
"Programming Language :: Python :: 3.13",
|
|
39
37
|
"Programming Language :: Python :: 3.14",
|
|
40
|
-
# This does not run on mobile because of Shapely. It runs
|
|
41
|
-
"Operating System ::
|
|
38
|
+
# This does not run on mobile because of Shapely. It runs on most other platforms, see matrix tests in CI.
|
|
39
|
+
"Operating System :: Microsoft :: Windows",
|
|
40
|
+
"Operating System :: POSIX :: Linux",
|
|
41
|
+
"Operating System :: MacOS :: MacOS X",
|
|
42
42
|
]
|
|
43
43
|
keywords = [
|
|
44
44
|
"RSA",
|
|
@@ -59,90 +59,124 @@ keywords = [
|
|
|
59
59
|
]
|
|
60
60
|
|
|
61
61
|
dependencies = [
|
|
62
|
-
"numpy>=2.
|
|
63
|
-
"matplotlib>=3.
|
|
64
|
-
"shapely>=2.
|
|
65
|
-
"pydantic>=2.
|
|
62
|
+
"numpy>=2.4.6",
|
|
63
|
+
"matplotlib>=3.11.2",
|
|
64
|
+
"shapely>=2.2.0",
|
|
65
|
+
"pydantic>=2.14.3",
|
|
66
66
|
"pydantic-extra-types>=2.11.1",
|
|
67
67
|
"rtree>=1.4.1",
|
|
68
68
|
"svg-py>=1.10.0",
|
|
69
69
|
"defusedxml>=0.7.1",
|
|
70
|
-
"PySide6>=6.
|
|
70
|
+
"PySide6>=6.12.0",
|
|
71
71
|
"typing-extensions>=4.16.0",
|
|
72
|
-
"frozendict>=2.
|
|
73
|
-
|
|
72
|
+
"frozendict>=2.5.1; python_version <= '3.14'", # This exists in default Python starting 3.15.
|
|
73
|
+
]
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
[project.optional-dependencies]
|
|
77
|
+
|
|
78
|
+
gui-deps = [
|
|
79
|
+
"pandas>=3.1.0",
|
|
80
|
+
"h5py>=3.16.0",
|
|
81
|
+
"seaborn>=0.13.2",
|
|
82
|
+
"dask[distributed]>=2026.11.0",
|
|
83
|
+
]
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
[tool.uv]
|
|
87
|
+
required-version = ">=0.13.5"
|
|
88
|
+
environments = [
|
|
89
|
+
"platform_system != 'Emscripten'"
|
|
90
|
+
]
|
|
91
|
+
#exclude-newer = "3 days"
|
|
92
|
+
|
|
93
|
+
constraint-dependencies = [
|
|
74
94
|
"html5lib>=1.1",
|
|
75
|
-
"wcwidth>=0.
|
|
95
|
+
"wcwidth>=0.9.3",
|
|
76
96
|
"webencodings>=0.5.1",
|
|
77
|
-
"pyproject-hooks>=1.
|
|
78
|
-
"beautifulsoup4>=4.
|
|
97
|
+
"pyproject-hooks>=1.3.3",
|
|
98
|
+
"beautifulsoup4>=4.15.0",
|
|
79
99
|
"entrypoints>=0.2.3",
|
|
80
100
|
"future>=1.0.0",
|
|
81
101
|
"secretstorage>=3.5.0",
|
|
82
102
|
"pywin32-ctypes>=0.2.3",
|
|
83
|
-
"pycparser>=3.
|
|
103
|
+
"pycparser>=3.12",
|
|
84
104
|
"enum34>=1.1.10",
|
|
85
105
|
"ipaddress>=1.0.23",
|
|
86
106
|
"ply>=3.11",
|
|
87
|
-
"
|
|
107
|
+
"cryptography>=50.0.2",
|
|
108
|
+
"check-wheel-contents>=0.6.3",
|
|
109
|
+
"nodeenv>=1.11.0",
|
|
110
|
+
"gitpython>=3.2.1",
|
|
111
|
+
"bashlex>=0.18",
|
|
112
|
+
"bracex>=3.2",
|
|
113
|
+
"id>=1.6.1",
|
|
114
|
+
"pyyaml>=6.0.3",
|
|
115
|
+
"pillow>=13.0.0",
|
|
116
|
+
"pip>=26.3.0",
|
|
117
|
+
"certifi>=2026.10.23",
|
|
118
|
+
"sigstore>=4.5.1",
|
|
119
|
+
"conda>=26.9.4",
|
|
120
|
+
"pixi>=0.82.1",
|
|
121
|
+
"soupsieve>=4.0.0",
|
|
122
|
+
"virtualenv>=21.14.12",
|
|
123
|
+
"pipx>=1.18.7",
|
|
124
|
+
"pixi>=0.82.1",
|
|
125
|
+
"pipenv>=2026.10.2",
|
|
126
|
+
"PDM>=2.29.4",
|
|
127
|
+
"Pex>=2.105.1",
|
|
128
|
+
"pyenv>=2.8.14"
|
|
88
129
|
]
|
|
89
130
|
|
|
90
|
-
|
|
91
|
-
[project.optional-dependencies]
|
|
131
|
+
[dependency-groups]
|
|
92
132
|
test = [
|
|
93
|
-
"pytest>=9.
|
|
133
|
+
"pytest>=9.2.0",
|
|
94
134
|
"pytest-cov>=7.1.0",
|
|
95
|
-
"hypothesis>=6.
|
|
96
|
-
"scipy>=1.15.3",
|
|
97
|
-
"codecov>=2.1.13",
|
|
135
|
+
"hypothesis>=6.170.17",
|
|
98
136
|
"pytest-qt>=4.5.0",
|
|
99
|
-
"adsorpy[gui-deps]",
|
|
100
137
|
"pytest-xvfb>=3.1.1; sys_platform == 'linux'",
|
|
101
|
-
"pyvirtualdisplay>=
|
|
138
|
+
"pyvirtualdisplay>=3.0; sys_platform == 'linux'",
|
|
102
139
|
"easyprocess>=1.1; sys_platform == 'linux'",
|
|
103
|
-
"pytest-env>=1.
|
|
140
|
+
"pytest-env>=1.8.5",
|
|
104
141
|
]
|
|
105
142
|
lint = [
|
|
106
|
-
"mypy==2.
|
|
107
|
-
"ruff==0.
|
|
108
|
-
"basedpyright==1.40.
|
|
109
|
-
"tach==0.35.
|
|
143
|
+
"mypy==2.4.1",
|
|
144
|
+
"ruff==0.17.6",
|
|
145
|
+
"basedpyright==1.40.2",
|
|
146
|
+
"tach==0.35.3",
|
|
110
147
|
"slotscheck==0.21.0",
|
|
111
148
|
"pyside6-stubs==6.7.3.0",
|
|
112
|
-
"
|
|
113
|
-
"types-shapely>=2.1.0.20260728",
|
|
149
|
+
"types-shapely>=2.2.0.20261122",
|
|
114
150
|
]
|
|
115
151
|
docs = [
|
|
116
|
-
"sphinx>=
|
|
152
|
+
"sphinx>=9.0.0",
|
|
117
153
|
"furo>=2025.12.19",
|
|
118
|
-
"sphinx_design>=0.
|
|
119
|
-
"sphinx-autodoc-typehints>=3.
|
|
154
|
+
"sphinx_design>=0.8.0",
|
|
155
|
+
"sphinx-autodoc-typehints>=3.17.7",
|
|
120
156
|
"sphinx-pyproject>=0.3.0",
|
|
121
157
|
]
|
|
122
158
|
envs = [
|
|
123
|
-
"tox
|
|
124
|
-
"tox-uv
|
|
125
|
-
"uv==0.12.21",
|
|
159
|
+
"tox>=4.67.15",
|
|
160
|
+
"tox-uv>=1.37.9",
|
|
126
161
|
]
|
|
127
162
|
dev-misc = [
|
|
128
163
|
"build>=1.6.1",
|
|
129
164
|
"twine>=7.0.0",
|
|
130
|
-
"
|
|
131
|
-
"check-wheel-contents>=0.6.3",
|
|
132
|
-
"pre-commit>=4.6.2",
|
|
133
|
-
"nodeenv>=1.10.0",
|
|
134
|
-
"cibuildwheel>=2.23.4",
|
|
165
|
+
"cibuildwheel>=4.3.5",
|
|
135
166
|
]
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
"
|
|
139
|
-
"seaborn>=0.13.2",
|
|
140
|
-
"dask[distributed]>=2026.8.0",
|
|
167
|
+
|
|
168
|
+
dev-gui = [
|
|
169
|
+
"adsorpy[gui-deps]"
|
|
141
170
|
]
|
|
142
|
-
dev
|
|
143
|
-
"
|
|
171
|
+
dev = [
|
|
172
|
+
"pre-commit>=4.7.0",
|
|
173
|
+
{include-group = "test"},
|
|
174
|
+
{include-group = "dev-gui"},
|
|
175
|
+
{include-group = "envs"},
|
|
144
176
|
]
|
|
145
177
|
|
|
178
|
+
[tool.uv.dependency-groups]
|
|
179
|
+
docs = { requires-python = "==3.14.*" }
|
|
146
180
|
|
|
147
181
|
[project.urls]
|
|
148
182
|
github = "https://github.com/JoostFWMaas/AdsorPy"
|
|
@@ -183,21 +217,24 @@ include = [
|
|
|
183
217
|
[tool.pytest.ini_options]
|
|
184
218
|
testpaths = ["tests"]
|
|
185
219
|
pythonpath = ["."]
|
|
186
|
-
addopts = ["--cov=adsorpy", "--cov-report=term", "--cov-report=html", "--strict-markers", "--import-mode=importlib"]
|
|
220
|
+
#addopts = ["--cov=adsorpy", "--cov-report=term", "--cov-report=html", "--strict-markers", "--import-mode=importlib"]
|
|
187
221
|
qt_api = "pyside6"
|
|
188
222
|
env = ["QT_QPA_PLATFORM=offscreen"]
|
|
189
223
|
|
|
190
224
|
|
|
225
|
+
|
|
191
226
|
[tool.coverage.run]
|
|
192
227
|
omit = [
|
|
193
228
|
"*/tests/*",
|
|
194
229
|
"*/Output/*",
|
|
195
230
|
"*/__main__.py",
|
|
196
231
|
"*/__init__.py",
|
|
197
|
-
# "*/molecule_lib*.py", # There is no point in testing the individual molecules.
|
|
198
232
|
"*/sensitivity.py", # Demonstrator, not included.
|
|
199
|
-
"*/
|
|
233
|
+
"*/[sS]cripts/*",
|
|
200
234
|
]
|
|
235
|
+
parallel = true
|
|
236
|
+
source = ["src", "adsorpy"]
|
|
237
|
+
branch = true
|
|
201
238
|
|
|
202
239
|
|
|
203
240
|
[tool.coverage.report]
|
|
@@ -213,11 +250,8 @@ exclude_also = [
|
|
|
213
250
|
"if plot_",
|
|
214
251
|
"while temp_results_folder.is_dir()", # Checks for collision in saving folders. Nothing is saved for tests.
|
|
215
252
|
"if self.flux_flag:", # Experimental feature, not yet usable.
|
|
216
|
-
"
|
|
253
|
+
"_run_flux", # See above.
|
|
217
254
|
"if not self.simple_shape_flag", # Idem ditto.
|
|
218
|
-
"if (sys\\.)?version_info", # Is tested with Tox (between instances of Pytest). False negative.
|
|
219
|
-
"from datetime import", # Used for compatibility between versions. Only tests for one version at a time.
|
|
220
|
-
"@njit", # Compiled code is not seen by coverage. This code is tested with Hypothesis though. False negative.
|
|
221
255
|
"svg",
|
|
222
256
|
"css",
|
|
223
257
|
"def show_",
|
|
@@ -230,9 +264,11 @@ exclude_also = [
|
|
|
230
264
|
|
|
231
265
|
[tool.coverage.paths]
|
|
232
266
|
source = [
|
|
233
|
-
"
|
|
234
|
-
"
|
|
235
|
-
"
|
|
267
|
+
"adsorpy/", # Local path
|
|
268
|
+
"*/src/adsorpy/",
|
|
269
|
+
"*\\src\\adsorpy/",
|
|
270
|
+
"*/site-packages/adsorpy", # Linux / MacOS / CI path
|
|
271
|
+
"*\\site-packages\\adsorpy", # Windows path
|
|
236
272
|
]
|
|
237
273
|
|
|
238
274
|
|
|
@@ -241,7 +277,7 @@ mypy_path = ["."]
|
|
|
241
277
|
ignore_missing_imports = true
|
|
242
278
|
strict = true
|
|
243
279
|
disallow_any_explicit = true
|
|
244
|
-
exclude = ['/
|
|
280
|
+
exclude = ['/[sS]cripts']
|
|
245
281
|
plugins = ["pydantic.mypy"]
|
|
246
282
|
allow_untyped_decorators = true
|
|
247
283
|
native_parser = true
|
|
@@ -259,17 +295,11 @@ disallow_untyped_calls = false
|
|
|
259
295
|
init_forbid_extra = true
|
|
260
296
|
init_typed = true
|
|
261
297
|
warn_required_dynamic_aliases = true
|
|
262
|
-
disallow_subclassing_any = false
|
|
263
|
-
exhaustive-match = true
|
|
264
|
-
show-error-end = true
|
|
265
|
-
show-error-code-links = true
|
|
266
|
-
native-parser = true
|
|
267
298
|
|
|
268
299
|
[tool.flake8]
|
|
269
300
|
max-line-length = 120
|
|
270
301
|
exclude = [
|
|
271
|
-
"
|
|
272
|
-
"venv",
|
|
302
|
+
"?venv",
|
|
273
303
|
"tests",
|
|
274
304
|
"Lib",
|
|
275
305
|
]
|
|
@@ -290,7 +320,7 @@ sections = [
|
|
|
290
320
|
include_trailing_comma = true
|
|
291
321
|
#remove_unused_imports = true
|
|
292
322
|
skip = [".json", ".venv", ".tox"]
|
|
293
|
-
known_first_party = ["
|
|
323
|
+
known_first_party = ["adsorpy"]
|
|
294
324
|
known_local_folder = ["molcule_lib", "RSA_Calculator", "rsa_config"]
|
|
295
325
|
|
|
296
326
|
|
|
@@ -298,10 +328,6 @@ known_local_folder = ["molcule_lib", "RSA_Calculator", "rsa_config"]
|
|
|
298
328
|
line-length = 88
|
|
299
329
|
|
|
300
330
|
|
|
301
|
-
#[tool.uv]
|
|
302
|
-
#required-version = "0.12.5"
|
|
303
|
-
|
|
304
|
-
|
|
305
331
|
[tool.ruff]
|
|
306
332
|
line-length = 120
|
|
307
333
|
include = ["pyproject.toml", "src/**/*.py", "tests/**/*.py"]
|
|
@@ -328,7 +354,7 @@ ignore = [
|
|
|
328
354
|
"TD",
|
|
329
355
|
"T201",
|
|
330
356
|
"FIX", # This is for me to fix over several versions. These functions are never used unless they are fixed.
|
|
331
|
-
"DTZ003", # The datetime warning or utcnow()
|
|
357
|
+
# "DTZ003", # The datetime warning or utcnow()
|
|
332
358
|
"FBT001", # Disallows booleans in functions. (I can see its use case, but no.)
|
|
333
359
|
"FBT002", # Disallows booleans default arguments in functions.
|
|
334
360
|
"ARG002", # Unused method argument.
|
|
@@ -340,7 +366,7 @@ ignore = [
|
|
|
340
366
|
|
|
341
367
|
[tool.ruff.lint.per-file-ignores]
|
|
342
368
|
"__init__.py" = ["D104"] # Missing docstring in public package. Not needed, package is empty.
|
|
343
|
-
"tests/*" = ["S101", "TC", "SLF001"] # Assert should
|
|
369
|
+
"tests/*" = ["S101", "TC", "SLF001"] # Assert should never be used in production code! But this is test code, so here it is expected.
|
|
344
370
|
|
|
345
371
|
|
|
346
372
|
[tool.ruff.lint.flake8-type-checking]
|
|
@@ -361,10 +387,8 @@ reportUnknownMemberType = "none"
|
|
|
361
387
|
reportUnknownVariableType = "none"
|
|
362
388
|
reportUnknownParameterType = "none"
|
|
363
389
|
reportUnknownArgumentType = "none"
|
|
364
|
-
#reportUnnecessaryCast = "none" # These are needed for mypy.
|
|
365
|
-
#reportUnnecessaryIsInstance = "none" # These are needed for mypy.
|
|
366
390
|
|
|
367
|
-
#
|
|
391
|
+
# Useful strict checks.
|
|
368
392
|
reportImplicitOverride = "error"
|
|
369
393
|
reportPrivateUsage = "warning"
|
|
370
394
|
reportUnnecessaryComparison = "warning" # These are usually included to prevent the user from breaking things.
|
|
@@ -382,16 +406,16 @@ strict-imports = true
|
|
|
382
406
|
[tool.pyside6-deploy]
|
|
383
407
|
# Basic application configuration overrides
|
|
384
408
|
title = "AdsorPy"
|
|
385
|
-
input_file = "
|
|
409
|
+
input_file = "molecule_lib.py"
|
|
410
|
+
exec_directory = "dist"
|
|
386
411
|
#icon = "assets/something_something.ico"
|
|
387
|
-
|
|
388
|
-
project_dir = "./src/adsorpy"
|
|
412
|
+
#project_dir = "./src/adsorpy"
|
|
389
413
|
|
|
390
414
|
|
|
391
415
|
|
|
392
416
|
[tool.cibuildwheel]
|
|
393
417
|
build-frontend = "build[uv]"
|
|
394
|
-
build = "
|
|
418
|
+
build = "cp311-* cp312-* cp313-* cp314-*"
|
|
395
419
|
test-skip = "*-win_arm64 *-manylinux_aarch64 *-musllinux_aarch64"
|
|
396
420
|
before-build = "python -c \"import shutil, glob, os; [shutil.rmtree(p, ignore_errors=True) for p in [\\\"build\\\", \\\"dist\\\"]]; [os.remove(f) for f in set(glob.glob(\\\"**/*.c\\\", recursive=True) + glob.glob(\\\"**/*.cpp\\\", recursive=True) + glob.glob(\\\"**/*.so\\\", recursive=True) + glob.glob(\\\"**/*.pyd\\\", recursive=True)) if os.path.exists(f)]\""
|
|
397
421
|
test-command = "python -c \"import adsorpy; print('Successfully verified version:', adsorpy.__version__)\""
|