- Patch: bug fixes only, no compatibility changes.
- Minor: backward-compatible features/packaging improvements.
- Major: intentional breaking changes.
For this modernization, use at least a minor bump if you changed supported Python versions.
Update these files together:
pyproject.toml→[project].versionnrclex/__init__.py→__version__
python -m pip install --upgrade pip
pip install -e . pytest build twine
pytest -q -m "not integration"
python -m build
twine check dist/*Optional integration tests (requires corpora):
python -m textblob.download_corpora
pytest -qEnsure both files exist:
dist/NRCLex-<version>.tar.gzdist/NRCLex-<version>-py3-none-any.whl
twine upload dist/*- Confirm
from nrclex import NRCLexworks from a clean environment. - Confirm
NRCLex()loads bundled lexicon without manual file path. - Confirm dependency metadata does not list stdlib modules.
- Confirm
Requires-Pythonmatches supported versions (>=3.9). - Tag release in git and add release notes.