summaryrefslogtreecommitdiff
path: root/LICENSE-MIT
diff options
context:
space:
mode:
authorHarmen Stoppels <me@harmenstoppels.nl>2024-11-04 13:52:05 +0100
committerGitHub <noreply@github.com>2024-11-04 13:52:05 +0100
commit8d0856d1cc3f8d097b8f4a7e5a18ad662b8434c5 (patch)
treec4d150a1189ac05738e7dda3f8c7feed6f18e217 /LICENSE-MIT
parent10f7014addebfe1a104f558f9cf1901fd1702452 (diff)
downloadspack-8d0856d1cc3f8d097b8f4a7e5a18ad662b8434c5.tar.gz
spack-8d0856d1cc3f8d097b8f4a7e5a18ad662b8434c5.tar.bz2
spack-8d0856d1cc3f8d097b8f4a7e5a18ad662b8434c5.tar.xz
spack-8d0856d1cc3f8d097b8f4a7e5a18ad662b8434c5.zip
packaging_guide.rst: explain forward and backward compat before the less common cases (#47402)
The idea is to go from most to least used: backward compat -> forward compat -> pinning on major or major.minor version -> pinning specific, concrete versions. Further, the following ```python # backward compatibility with Python depends_on("python@3.8:") depends_on("python@3.9:", when="@1.2:") depends_on("python@3.10:", when="@1.4:") # forward compatibility with Python depends_on("python@:3.12", when="@:1.10") depends_on("python@:3.13", when="@:1.12") depends_on("python@:3.14") ``` is better than disjoint when ranges causing repetition of the rules on dependencies, and requiring frequent editing of existing lines after new releases are done: ```python depends_on("python@3.8:3.12", when="@:1.1") depends_on("python@3.9:3.12", when="@1.2:1.3") depends_on("python@3.10:3.12", when="@1.4:1.10") depends_on("python@3.10:3.13", when="@1.11:1.12") depends_on("python@3.10:3.14", when="@1.13:")
Diffstat (limited to 'LICENSE-MIT')
0 files changed, 0 insertions, 0 deletions