Rename package from pensive to sofic#2
Merged
Conversation
Renames the distribution and import package pensive -> sofic throughout: the package directory (pensive/ -> sofic/), every import, the exception classes (PensiveError -> SoficError, PensiveValidationError -> SoficValidationError), PEP 621 metadata and project URLs, the PyPI publish workflow, the Sphinx docs, and the uv lockfile. Co-authored-by: Cursor <cursoragent@cursor.com>
Resolves the pre-existing CI failures in the preceding symbolic-HMM commit: - Add missing `from typing import Any` in generators/stochastic.py - Remove unused sofic.generators.prob imports and convert an if/else to a ternary (ruff), and apply ruff formatting to the symbolic modules - Allow unresolved `sympy` imports in ty (optional symbolic extra, mirrors pymc) - Add sofic[symbolic] to the docs extra so sympy is available at docs-build time - Rewrite the symbolic_hmm IPython directive (split the multi-statement import cell, drop inline comment lines) and lengthen a short title underline so `sphinx-build -W` passes Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
Renames the distribution and import package
pensive->soficthroughout, in preparation for publishing to PyPI (the namepensiveis already taken on PyPI by an unrelated 2019 project;soficis available on PyPI, GitHub, and ReadTheDocs).pensive/->sofic/(puregit mv, history preserved)import pensive/from pensive...->soficPensiveError->SoficError,PensiveValidationError->SoficValidationErrorgithub.com/dit/sofic,sofic.readthedocs.io)sofic-*artifact glob,pypi.org/p/soficenvironment URL)conf.py, module directives) anduv.lock(regenerated)Verification
uv run pytest: 642 passed, 1 skippeduv build: producessofic-*sdist + wheelimport soficand the renamed exceptions import cleanlypensivereferences; no brokensoficreferencesNote on CI (pre-existing, not from this rename)
The
lint,typecheck, anddocsjobs currently fail due to issues in the precedingAdd symbolic HMM support...commit (unusedprob.pyimports, a missingfrom typing import Any,sympyimports not covered by thedevextra /tyallowed-imports, and aNameErrorin an IPython docs example). These are unrelated to the rename and are tracked separately.Made with Cursor