Skip to content

Release 0.2.0 - #3

Merged
andremsouza merged 1 commit into
masterfrom
release/0.2.0
Jul 28, 2026
Merged

Release 0.2.0#3
andremsouza merged 1 commit into
masterfrom
release/0.2.0

Conversation

@andremsouza

Copy link
Copy Markdown
Owner

Ships the corrected Mexican hat from #2, plus three packaging fixes.

Changes

  • Version 0.2.0. The repository said 0.1.2 while PyPI was already at 0.1.3.
  • Restored the cli extra. It shipped in 0.1.3 on PyPI but was never committed. Releasing from
    the repository as-is would have silently broken pip install python-som[cli] for existing users.
  • requires-python corrected to >=3.10. The declared >=3.9 was never accurate: the module
    uses PEP 604 unions (int | None) in runtime-evaluated annotations with no
    from __future__ import annotations, so importing it on 3.9 raises TypeError. Installers now
    decline the package there rather than install something unimportable. 3.9 reached EOL in
    October 2025.
  • Added CHANGELOG.md, documenting the behavior changes with their citations, and recording
    that 0.1.3 was published from an uncommitted working tree and has no corresponding commit.

Verification

twine check dist/*                          both artifacts PASSED
wheel -> clean venv -> import               version 0.2.0
h(c)                                        1.0
mexican hat diagonal at 2 sigma             -0.054947  (negative, as required)
mexican hat minimum                         -0.135335  (= -exp(-2))
batch + mexicanhat                          ValueError raised
pip install 'python_som[cli]'               tqdm 4.70.0 pulled in

Also removed a stray untracked SOM_atualizado.py from the working tree, which hatchling had been
sweeping 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.

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.
@andremsouza
andremsouza merged commit e7ed683 into master Jul 28, 2026
@andremsouza
andremsouza deleted the release/0.2.0 branch July 28, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant