Release 0.2.0 - #3
Merged
Merged
Conversation
Ships the corrected Mexican hat neighborhood function and the cyclic fold-back fix from #2. Three packaging changes go with it: - Restore the `cli` extra. It shipped in 0.1.3 on PyPI but was never committed, so releasing from the repository as-is would have silently removed `pip install python-som[cli]` for existing users. - Correct `requires-python` to >=3.10. The declared floor of >=3.9 was never accurate: the module uses PEP 604 unions in runtime-evaluated annotations without `from __future__ import annotations`, so importing it on 3.9 raises TypeError. Installers now decline the package there instead of installing something that cannot be imported. Python 3.9 reached end of life in October 2025. - Add CHANGELOG.md, recording the behavior changes with their citations and noting that 0.1.3 was published from an uncommitted tree and has no corresponding commit. Verified: twine check passes on both artifacts; the wheel installs into a clean venv and imports; the mexican hat is inhibitory on the diagonal (-0.054947) with its minimum at -exp(-2); the batch-mode guard raises; and `pip install 'python_som[cli]'` pulls in tqdm.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ships the corrected Mexican hat from #2, plus three packaging fixes.
Changes
0.1.2while PyPI was already at0.1.3.cliextra. It shipped in 0.1.3 on PyPI but was never committed. Releasing fromthe repository as-is would have silently broken
pip install python-som[cli]for existing users.requires-pythoncorrected to>=3.10. The declared>=3.9was never accurate: the moduleuses PEP 604 unions (
int | None) in runtime-evaluated annotations with nofrom __future__ import annotations, so importing it on 3.9 raisesTypeError. Installers nowdecline the package there rather than install something unimportable. 3.9 reached EOL in
October 2025.
CHANGELOG.md, documenting the behavior changes with their citations, and recordingthat 0.1.3 was published from an uncommitted working tree and has no corresponding commit.
Verification
Also removed a stray untracked
SOM_atualizado.pyfrom the working tree, which hatchling had beensweeping into the sdist. It was an abandoned experimental variant and would have been published to
PyPI otherwise. Preserved outside the repository rather than deleted.
Next up is the packaging modernization to 0.3.0.