-
Notifications
You must be signed in to change notification settings - Fork 6
feat: modernize project with CI/CD, update function, and multiple bug fixes #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… matching (=~)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR modernizes the jsonpath-python project with a comprehensive infrastructure overhaul and important feature additions. The changes migrate from legacy setup.py to modern pyproject.toml, introduce a new update() method for modifying JSON data, and fix multiple reported bugs in path handling, filtering, and sorting operations.
Key Changes
- Infrastructure: Migration to
pyproject.tomlwithuvpackage manager, addition of CI/CD workflows, and test directory reorganization - New Feature:
JSONPath.update()method for in-place JSON modification with support for both static values and callback functions - Bug Fixes: Fixed path output format, filter expression handling with bracket notation and quoted keys, field extractor null filtering, and mixed-type sorting errors
Reviewed changes
Copilot reviewed 18 out of 22 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| uv.lock | Dependency lockfile with multiple package versions (contains future-dated version references that need verification) |
| pyproject.toml | Modern Python project configuration with build system, dependencies, and development tools |
| tests/test_update.py | Comprehensive test suite for the new update() functionality |
| tests/test_issues.py | Test cases validating bug fixes for issues #9, #10, #13, #15, #16, #17 |
| tests/test_jsonpath.py | Simplified existing test structure |
| tests/conftest.py | Updated test fixtures with corrected path format expectations |
| tests/data/*.json | Test data files relocated to tests directory |
| jsonpath/init.py | Simplified module interface with clean imports |
| jsonpath/jsonpath.py | Core implementation with update() method, path format changes, and bug fixes |
| setup.py | Removed in favor of pyproject.toml |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🎉 This PR is included in version 1.1.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Overview
This PR modernizes the jsonpath-python project with significant improvements to infrastructure, features, and bug fixes.
Major Changes
🏗️ Infrastructure Modernization
setup.pytopyproject.tomlwithuvpackage managersemantic-releasefor automated versioning and changelog generationrufffor code qualitytest/→tests/)✨ New Features
JSONPath.update()method to modify JSON data using JSONPath expressionsinoperator and regex matching (=~) in filter expressions🐛 Bug Fixes
JSONPathTypeErroron mixed type sorting attempts📚 Documentation
Breaking Changes
None - This is backward compatible.
Testing