Modernise packaging and clean up Python 2 residue#100
Merged
Conversation
- Replace setup.py with pyproject.toml (hatchling build backend, uv-native) - Add uv.lock and dependency-groups for dev dependencies (pytest, pytest-cov) - Drop tox.ini in favour of direct `uv run pytest` - Replace .travis.yml with GitHub Actions CI (uv, Python 3.10–3.13 matrix) - Drop Python <3.10 support (3.6–3.9 all EOL) - Remove (object) base class and super() call on ArabicReshaper - Switch _ligatures_re from @Property with hidden mutation to @cached_property - Add -> str type hint and sentinel comment to reshape() - Add ArabicReshaperConfigurationError(ValueError); replace bare Exception raises - Add docstring and ImportError to config_for_true_type_font() - Fix LETTERS -> letters parameter naming in letters.py helper functions - Add comment explaining the RIAL SIGN regex pattern in ligatures.py - Remove unused import os from __init__.py; export ArabicReshaperConfigurationError - Remove debug print() from test_003_reshaping.py Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Wire pytest-cov into addopts so `uv run pytest` always reports coverage - Add type hints to auto_config() and config_for_true_type_font() Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add fonts/ to .gitignore so local test fonts are never committed - Skip tests gracefully when fonts/ is absent or contains no .otf files - Replace smoke tests with correctness tests: _expected_config() independently reads the font's cmap via fonttools and computes the expected config, then asserts config_for_true_type_font() == expected — catches any mis-detection of glyph support rather than just checking the function doesn't crash - Add fonttools to dev dependency group so the tests run out of the box Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Remove .travis.yml, MANIFEST.in, meta.yaml, and upload-to-anaconda.sh which are all superseded by the modernised pyproject.toml/hatchling setup and GitHub Actions CI. Update README version history accordingly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Uses OIDC trusted publishing (no API token needed). Runs the full test matrix first, then builds and publishes on success. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.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.
Modernise packaging, drop legacy CI, and prepare for automated PyPI releases.
setuptools/setup.pytohatchlingviapyproject.tomlci.yml)release.yml) that runs the full test matrix then publishes to PyPI via OIDC trusted publishing — no API token requiredMANIFEST.in,.travis.yml,meta.yaml,upload-to-anaconda.sh