qcdata 0.20.2__tar.gz → 0.22.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.
Files changed (91) hide show
  1. {qcdata-0.20.2 → qcdata-0.22.0}/.github/workflows/ci.yaml +1 -1
  2. qcdata-0.22.0/.python-version +1 -0
  3. {qcdata-0.20.2 → qcdata-0.22.0}/AGENTS.md +1 -1
  4. {qcdata-0.20.2 → qcdata-0.22.0}/CHANGELOG.md +19 -1
  5. {qcdata-0.20.2 → qcdata-0.22.0}/PKG-INFO +3 -3
  6. {qcdata-0.20.2 → qcdata-0.22.0}/pyproject.toml +8 -6
  7. {qcdata-0.20.2 → qcdata-0.22.0}/src/qcdata/models/base_models.py +4 -5
  8. {qcdata-0.20.2 → qcdata-0.22.0}/src/qcdata/models/data.py +1 -2
  9. {qcdata-0.20.2 → qcdata-0.22.0}/src/qcdata/models/inputs.py +1 -2
  10. {qcdata-0.20.2 → qcdata-0.22.0}/src/qcdata/models/outputs.py +1 -2
  11. {qcdata-0.20.2 → qcdata-0.22.0}/src/qcdata/models/structure.py +1 -2
  12. qcdata-0.22.0/tests/test_base_models.py +7 -0
  13. {qcdata-0.20.2 → qcdata-0.22.0}/uv.lock +875 -977
  14. qcdata-0.20.2/.python-version +0 -1
  15. {qcdata-0.20.2 → qcdata-0.22.0}/.codex +0 -0
  16. {qcdata-0.20.2 → qcdata-0.22.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  17. {qcdata-0.20.2 → qcdata-0.22.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  18. {qcdata-0.20.2 → qcdata-0.22.0}/.github/dependabot.yml +0 -0
  19. {qcdata-0.20.2 → qcdata-0.22.0}/.github/workflows/docs.yaml +0 -0
  20. {qcdata-0.20.2 → qcdata-0.22.0}/.github/workflows/publish-to-pypi.yaml +0 -0
  21. {qcdata-0.20.2 → qcdata-0.22.0}/.gitignore +0 -0
  22. {qcdata-0.20.2 → qcdata-0.22.0}/.pre-commit-config.yaml +0 -0
  23. {qcdata-0.20.2 → qcdata-0.22.0}/.vscode/settings.json +0 -0
  24. {qcdata-0.20.2 → qcdata-0.22.0}/CLAUDE.md +0 -0
  25. {qcdata-0.20.2 → qcdata-0.22.0}/CONTRIBUTING.md +0 -0
  26. {qcdata-0.20.2 → qcdata-0.22.0}/LICENSE +0 -0
  27. {qcdata-0.20.2 → qcdata-0.22.0}/README.md +0 -0
  28. {qcdata-0.20.2 → qcdata-0.22.0}/_typos.toml +0 -0
  29. {qcdata-0.20.2 → qcdata-0.22.0}/docs/CNAME +0 -0
  30. {qcdata-0.20.2 → qcdata-0.22.0}/docs/api/calctype.md +0 -0
  31. {qcdata-0.20.2 → qcdata-0.22.0}/docs/api/data.md +0 -0
  32. {qcdata-0.20.2 → qcdata-0.22.0}/docs/api/execution.md +0 -0
  33. {qcdata-0.20.2 → qcdata-0.22.0}/docs/api/files.md +0 -0
  34. {qcdata-0.20.2 → qcdata-0.22.0}/docs/api/inputs.md +0 -0
  35. {qcdata-0.20.2 → qcdata-0.22.0}/docs/api/lengthunit.md +0 -0
  36. {qcdata-0.20.2 → qcdata-0.22.0}/docs/api/model.md +0 -0
  37. {qcdata-0.20.2 → qcdata-0.22.0}/docs/api/outputs.md +0 -0
  38. {qcdata-0.20.2 → qcdata-0.22.0}/docs/api/overview.md +0 -0
  39. {qcdata-0.20.2 → qcdata-0.22.0}/docs/api/provenance.md +0 -0
  40. {qcdata-0.20.2 → qcdata-0.22.0}/docs/api/qcdatabasemodel.md +0 -0
  41. {qcdata-0.20.2 → qcdata-0.22.0}/docs/api/structure.md +0 -0
  42. {qcdata-0.20.2 → qcdata-0.22.0}/docs/api/utils.md +0 -0
  43. {qcdata-0.20.2 → qcdata-0.22.0}/docs/api/view.md +0 -0
  44. {qcdata-0.20.2 → qcdata-0.22.0}/docs/assets/optimization_viewer.png +0 -0
  45. {qcdata-0.20.2 → qcdata-0.22.0}/docs/assets/single_point_viewer.png +0 -0
  46. {qcdata-0.20.2 → qcdata-0.22.0}/docs/dev-docs/dev-decisions.md +0 -0
  47. {qcdata-0.20.2 → qcdata-0.22.0}/docs/index.md +0 -0
  48. {qcdata-0.20.2 → qcdata-0.22.0}/docs/visualizations/U1-_180_mmff94s-opt-xtb.json +0 -0
  49. {qcdata-0.20.2 → qcdata-0.22.0}/docs/visualizations/U1-_confsearch-crest.json +0 -0
  50. {qcdata-0.20.2 → qcdata-0.22.0}/docs/visualizations/U1-_mmff94s_180-opt-terachem-thf.json +0 -0
  51. {qcdata-0.20.2 → qcdata-0.22.0}/docs/visualizations/coreviews.ipynb +0 -0
  52. {qcdata-0.20.2 → qcdata-0.22.0}/docs/visualizations/overview.md +0 -0
  53. {qcdata-0.20.2 → qcdata-0.22.0}/docs/visualizations/results.ipynb +0 -0
  54. {qcdata-0.20.2 → qcdata-0.22.0}/docs/visualizations/structure.ipynb +0 -0
  55. {qcdata-0.20.2 → qcdata-0.22.0}/docs/why.md +0 -0
  56. {qcdata-0.20.2 → qcdata-0.22.0}/mkdocs.yml +0 -0
  57. {qcdata-0.20.2 → qcdata-0.22.0}/scripts/prepare_release.py +0 -0
  58. {qcdata-0.20.2 → qcdata-0.22.0}/src/qcdata/__init__.py +0 -0
  59. {qcdata-0.20.2 → qcdata-0.22.0}/src/qcdata/_version.py +0 -0
  60. {qcdata-0.20.2 → qcdata-0.22.0}/src/qcdata/helper_types.py +0 -0
  61. {qcdata-0.20.2 → qcdata-0.22.0}/src/qcdata/models/__init__.py +0 -0
  62. {qcdata-0.20.2 → qcdata-0.22.0}/src/qcdata/models/utils.py +0 -0
  63. {qcdata-0.20.2 → qcdata-0.22.0}/src/qcdata/py.typed +0 -0
  64. {qcdata-0.20.2 → qcdata-0.22.0}/src/qcdata/utils.py +0 -0
  65. {qcdata-0.20.2 → qcdata-0.22.0}/src/qcdata/view.py +0 -0
  66. {qcdata-0.20.2 → qcdata-0.22.0}/tests/__init__.py +0 -0
  67. {qcdata-0.20.2 → qcdata-0.22.0}/tests/conftest.py +0 -0
  68. {qcdata-0.20.2 → qcdata-0.22.0}/tests/data/__init__.py +0 -0
  69. {qcdata-0.20.2 → qcdata-0.22.0}/tests/data/caffeine.xyz +0 -0
  70. {qcdata-0.20.2 → qcdata-0.22.0}/tests/data/file_inputs/c0 +0 -0
  71. {qcdata-0.20.2 → qcdata-0.22.0}/tests/data/file_inputs/scr/scratch.txt +0 -0
  72. {qcdata-0.20.2 → qcdata-0.22.0}/tests/data/file_inputs/tc.in +0 -0
  73. {qcdata-0.20.2 → qcdata-0.22.0}/tests/data/file_inputs/water.xyz +0 -0
  74. {qcdata-0.20.2 → qcdata-0.22.0}/tests/data/multi.xyz +0 -0
  75. {qcdata-0.20.2 → qcdata-0.22.0}/tests/data/po_noresults.json +0 -0
  76. {qcdata-0.20.2 → qcdata-0.22.0}/tests/data/structures.py +0 -0
  77. {qcdata-0.20.2 → qcdata-0.22.0}/tests/test_conformer_search_data.py +0 -0
  78. {qcdata-0.20.2 → qcdata-0.22.0}/tests/test_file_input.py +0 -0
  79. {qcdata-0.20.2 → qcdata-0.22.0}/tests/test_files.py +0 -0
  80. {qcdata-0.20.2 → qcdata-0.22.0}/tests/test_optimization_data.py +0 -0
  81. {qcdata-0.20.2 → qcdata-0.22.0}/tests/test_outputs.py +0 -0
  82. {qcdata-0.20.2 → qcdata-0.22.0}/tests/test_package_api.py +0 -0
  83. {qcdata-0.20.2 → qcdata-0.22.0}/tests/test_prepare_release.py +0 -0
  84. {qcdata-0.20.2 → qcdata-0.22.0}/tests/test_program_spec.py +0 -0
  85. {qcdata-0.20.2 → qcdata-0.22.0}/tests/test_provenance_execution.py +0 -0
  86. {qcdata-0.20.2 → qcdata-0.22.0}/tests/test_results_api.py +0 -0
  87. {qcdata-0.20.2 → qcdata-0.22.0}/tests/test_scan_data.py +0 -0
  88. {qcdata-0.20.2 → qcdata-0.22.0}/tests/test_serialization.py +0 -0
  89. {qcdata-0.20.2 → qcdata-0.22.0}/tests/test_single_point_data.py +0 -0
  90. {qcdata-0.20.2 → qcdata-0.22.0}/tests/test_structure.py +0 -0
  91. {qcdata-0.20.2 → qcdata-0.22.0}/tests/test_view.py +0 -0
@@ -39,7 +39,7 @@ jobs:
39
39
  strategy:
40
40
  fail-fast: false
41
41
  matrix:
42
- python-version: ["3.10", "3.14"]
42
+ python-version: ["3.11", "3.15"]
43
43
  steps:
44
44
  - uses: actions/checkout@v7
45
45
  - uses: astral-sh/setup-uv@v7
@@ -0,0 +1 @@
1
+ 3.11
@@ -33,7 +33,7 @@ Use `uv add` / `uv remove` for dependencies; never edit `uv.lock` by hand.
33
33
  - Annotate class and instance attributes, including dataclass and pydantic fields. Annotate local variables only when inference is insufficient.
34
34
  - Prefer precise types; avoid `Any` unless genuinely necessary.
35
35
  - Write Google-style docstrings for all public modules, classes, functions, and methods (ruff enforces this). Start with a one-line summary ending in a period; add Args, Returns, Yields, and Raises sections where applicable; describe meaning and units without repeating types already in annotations.
36
- - Use `X | None`, not `Optional[X]`. Target Python 3.10.
36
+ - Use `X | None`, not `Optional[X]`. Target Python 3.11.
37
37
  - Keep changes focused. Do not reformat or refactor unrelated code.
38
38
 
39
39
  ## Before you finish
@@ -6,6 +6,22 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
 
7
7
  ## [unreleased]
8
8
 
9
+ ## [0.22.0] - 2026-10-21
10
+
11
+ ### Added
12
+
13
+ - Supports Python 3.15; CI tests the oldest (3.11) and newest (3.15) supported versions.
14
+
15
+ ### Changed
16
+
17
+ - `CalcType` and `LengthUnit` are `enum.StrEnum`s: `str()`, `format()`, and f-strings give the value (`"energy"`) on every supported Python. With `(str, Enum)`, f-strings gave `"energy"` on Python 3.11 but `"CalcType.energy"` on 3.12 and later, as `str()` always did. Equality with strings, JSON, and validation are unchanged.
18
+
19
+ ## [0.21.0] - 2026-10-21
20
+
21
+ ### Changed
22
+
23
+ - 🚨 Requires Python 3.11 or newer. Python 3.10 reached end of life in October 2026.
24
+
9
25
  ## [0.20.2] - 2026-10-20
10
26
 
11
27
  ### Changed
@@ -728,7 +744,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
728
744
  - `SinglePointComputedProperties`
729
745
  - `Wavefunction`
730
746
 
731
- [unreleased]: https://github.com/atomsforhumanity/qcdata/compare/0.20.2...HEAD
747
+ [unreleased]: https://github.com/atomsforhumanity/qcdata/compare/0.22.0...HEAD
748
+ [0.22.0]: https://github.com/atomsforhumanity/qcdata/releases/tag/0.22.0
749
+ [0.21.0]: https://github.com/atomsforhumanity/qcdata/releases/tag/0.21.0
732
750
  [0.20.2]: https://github.com/atomsforhumanity/qcdata/releases/tag/0.20.2
733
751
  [0.20.1]: https://github.com/atomsforhumanity/qcdata/releases/tag/0.20.1
734
752
  [0.20.0]: https://github.com/atomsforhumanity/qcdata/releases/tag/0.20.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: qcdata
3
- Version: 0.20.2
3
+ Version: 0.22.0
4
4
  Summary: Beautiful and user friendly data structures for quantum chemistry.
5
5
  Project-URL: Homepage, https://github.com/atomsforhumanity/qcdata
6
6
  Project-URL: Documentation, https://qcdata.docs.atomsforhumanity.org
@@ -37,14 +37,14 @@ Classifier: Intended Audience :: Developers
37
37
  Classifier: Intended Audience :: Science/Research
38
38
  Classifier: License :: OSI Approved :: MIT License
39
39
  Classifier: Natural Language :: English
40
- Classifier: Programming Language :: Python :: 3.10
41
40
  Classifier: Programming Language :: Python :: 3.11
42
41
  Classifier: Programming Language :: Python :: 3.12
43
42
  Classifier: Programming Language :: Python :: 3.13
44
43
  Classifier: Programming Language :: Python :: 3.14
44
+ Classifier: Programming Language :: Python :: 3.15
45
45
  Classifier: Topic :: Scientific/Engineering
46
46
  Classifier: Topic :: Software Development :: Libraries
47
- Requires-Python: >=3.10
47
+ Requires-Python: >=3.11
48
48
  Requires-Dist: eval-type-backport>=0.2.0
49
49
  Requires-Dist: numpy>=1.20
50
50
  Requires-Dist: pydantic!=2.0.1,!=2.1.0,>=2.0.0
@@ -1,11 +1,11 @@
1
1
  [project]
2
2
  name = "qcdata"
3
- version = "0.20.2"
3
+ version = "0.22.0"
4
4
  description = "Beautiful and user friendly data structures for quantum chemistry."
5
5
  readme = "README.md"
6
6
  authors = [{ name = "Colton Hicks", email = "github@coltonhicks.com" }]
7
7
  license = { file = "LICENSE" }
8
- requires-python = ">=3.10"
8
+ requires-python = ">=3.11"
9
9
  keywords = ["quantum-chemistry", "data-structures", "cheminformatics"]
10
10
  dependencies = [
11
11
  "pydantic>=2.0.0, !=2.0.1, !=2.1.0",
@@ -22,11 +22,11 @@ classifiers = [
22
22
  "Intended Audience :: Science/Research",
23
23
  "License :: OSI Approved :: MIT License",
24
24
  "Natural Language :: English",
25
- "Programming Language :: Python :: 3.10",
26
25
  "Programming Language :: Python :: 3.11",
27
26
  "Programming Language :: Python :: 3.12",
28
27
  "Programming Language :: Python :: 3.13",
29
28
  "Programming Language :: Python :: 3.14",
29
+ "Programming Language :: Python :: 3.15",
30
30
  "Topic :: Scientific/Engineering",
31
31
  "Topic :: Software Development :: Libraries",
32
32
  ]
@@ -70,7 +70,9 @@ dev = [
70
70
  "matplotlib>=3.0.0",
71
71
  "py3Dmol>=2.2.1",
72
72
  "pint>=0.24.4",
73
- "qcinf[all]>=0.4.1",
73
+ "qcinf>=0.4.1",
74
+ # qcinf[all] adds Open Babel, which has no Python 3.15 wheels yet.
75
+ "qcinf[all]>=0.4.1; python_version < '3.15'",
74
76
  "pre-commit-hooks>=5.0",
75
77
  "detect-secrets>=1.5",
76
78
  "typos>=1.30",
@@ -92,7 +94,7 @@ build-backend = "hatchling.build"
92
94
 
93
95
  [tool.ruff]
94
96
  line-length = 88
95
- target-version = "py310"
97
+ target-version = "py311"
96
98
  extend-exclude = ["*.ipynb", "*.md"]
97
99
 
98
100
  [tool.ruff.lint]
@@ -129,7 +131,7 @@ testpaths = ["tests"]
129
131
  addopts = "--strict-markers"
130
132
 
131
133
  [tool.mypy]
132
- python_version = "3.10"
134
+ python_version = "3.11"
133
135
  files = ["src", "tests", "scripts"]
134
136
  plugins = ["pydantic.mypy"]
135
137
  ignore_missing_imports = true
@@ -3,9 +3,9 @@
3
3
  import json
4
4
  from abc import ABC
5
5
  from base64 import b64decode, b64encode
6
- from enum import Enum
6
+ from enum import StrEnum
7
7
  from pathlib import Path
8
- from typing import TYPE_CHECKING, Any
8
+ from typing import TYPE_CHECKING, Any, Self
9
9
 
10
10
  import numpy as np
11
11
  import toml
@@ -18,7 +18,6 @@ from pydantic import (
18
18
  field_validator,
19
19
  model_validator,
20
20
  )
21
- from typing_extensions import Self
22
21
 
23
22
  from .. import _version
24
23
  from ..helper_types import StrOrPath
@@ -30,7 +29,7 @@ if TYPE_CHECKING: # pragma: no cover
30
29
  __all__ = ["Files", "Provenance", "ExecutionInfo", "Model", "CalcType", "LengthUnit"]
31
30
 
32
31
 
33
- class LengthUnit(str, Enum):
32
+ class LengthUnit(StrEnum):
34
33
  """The unit of length.
35
34
 
36
35
  Attributes:
@@ -407,7 +406,7 @@ class ExecutionInfo(QCDataBaseModel):
407
406
  host_mem_gib: float | None = None
408
407
 
409
408
 
410
- class CalcType(str, Enum):
409
+ class CalcType(StrEnum):
411
410
  """The Calculation type.
412
411
 
413
412
  Attributes:
@@ -3,11 +3,10 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  from pathlib import Path
6
- from typing import TYPE_CHECKING, Any, TypeVar
6
+ from typing import TYPE_CHECKING, Any, Self, TypeVar
7
7
 
8
8
  import numpy as np
9
9
  from pydantic import BaseModel, Field, ValidationInfo, field_validator, model_validator
10
- from typing_extensions import Self
11
10
 
12
11
  from qcdata.helper_types import (
13
12
  SerializableMatrix,
@@ -1,10 +1,9 @@
1
1
  """Input models for quantum chemistry calculations."""
2
2
 
3
3
  from pathlib import Path
4
- from typing import Any, TypeVar
4
+ from typing import Any, Self, TypeVar
5
5
 
6
6
  from pydantic import FieldSerializationInfo, field_serializer, field_validator
7
- from typing_extensions import Self
8
7
 
9
8
  from .base_models import CalcType, Files, Model
10
9
  from .structure import Structure
@@ -4,10 +4,9 @@ from __future__ import annotations
4
4
 
5
5
  import sys
6
6
  import warnings
7
- from typing import Any, Generic, Literal, get_args
7
+ from typing import Any, Generic, Literal, Self, get_args
8
8
 
9
9
  from pydantic import ValidationInfo, field_validator, model_validator
10
- from typing_extensions import Self
11
10
 
12
11
  from .base_models import ExecutionInfo, QCDataBaseModel
13
12
  from .data import (
@@ -2,7 +2,7 @@
2
2
 
3
3
  from collections import Counter, defaultdict
4
4
  from pathlib import Path
5
- from typing import TYPE_CHECKING, Any, ClassVar
5
+ from typing import TYPE_CHECKING, Any, ClassVar, Self
6
6
 
7
7
  import numpy as np
8
8
  from pydantic import (
@@ -13,7 +13,6 @@ from pydantic import (
13
13
  )
14
14
  from qcref import constants
15
15
  from qcref import periodic_table as pt
16
- from typing_extensions import Self
17
16
 
18
17
  from qcdata.helper_types import SerializableMatrix
19
18
 
@@ -0,0 +1,7 @@
1
+ def test_enums_render_as_their_values():
2
+ """str(), format(), and f-strings give the value on every supported Python."""
3
+ from qcdata import CalcType, LengthUnit
4
+
5
+ assert str(CalcType.energy) == f"{CalcType.energy}" == "energy"
6
+ assert format(LengthUnit.ANGSTROM) == LengthUnit.ANGSTROM.value
7
+ assert CalcType.gradient == "gradient" and CalcType("hessian") is CalcType.hessian