Conversation
Owner
lord63
commented
Mar 16, 2026
- migrate branch name from master to main. Thanks @jackblk
- drop 2.x support, add 3.10+ support. Thanks @iamgodot
- migrate travis to github aciton
- migrate to uv
- readme clean. Thanks @a1346054
Replace .travis.yml with .github/workflows/ci.yml. Test matrix updated to Python 3.10-3.13.
Replace setup.py, setup.cfg, dev-requirements.txt, tox.ini, Makefile, and MANIFEST.in with pyproject.toml (hatchling backend) and uv.lock. Update GitHub Actions CI to use uv for dependency management.
- Remove `from __future__ import absolute_import` from all files - Remove `# -*- coding: utf-8 -*-` headers (unnecessary in Python 3) - Replace `io.open` with builtin `open` in source and tests - Update mock targets from `io.open` to `builtins.open` in tests - Use `super()` without arguments (Python 3 style)
Modernize project
There was a problem hiding this comment.
Pull request overview
Release prep for v0.9.0, modernizing the project by moving to a pyproject.toml/uv-based workflow and updating CI accordingly.
Changes:
- Migrate packaging to
pyproject.toml(hatchling) and adduv.lock; remove legacysetup.py,tox.ini, and dev requirements tooling. - Update CI from Travis to GitHub Actions and test against Python 3.10–3.13.
- Drop Python 2-era compatibility shims (
__future__,io.open, encoding headers) and bump version to 0.9.0.
Reviewed changes
Copilot reviewed 24 out of 25 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| uv.lock | Adds uv lockfile pinning dependencies and Python >=3.10 requirement. |
| tox.ini | Removes tox configuration for older Python envs. |
| tldr/parser.py | Switches file reading from io.open to built-in open (Py3-only cleanup). |
| tldr/config.py | Switches config reading from io.open to built-in open (Py3-only cleanup). |
| tldr/cli.py | Switches index reading from io.open to built-in open (Py3-only cleanup). |
| tldr/init.py | Bumps package __version__ to 0.9.0. |
| tests/test_update.py | Removes legacy encoding header. |
| tests/test_reindex.py | Uses super() (Py3-only cleanup) and removes legacy imports/headers. |
| tests/test_parse.py | Updates mocks to patch builtins.open instead of io.open. |
| tests/test_locate.py | Removes legacy __future__ import and encoding header. |
| tests/test_list.py | Removes legacy __future__ import and encoding header. |
| tests/test_init.py | Switches from io.open to open and removes legacy imports/headers. |
| tests/test_find.py | Removes legacy __future__ import and encoding header. |
| tests/test_config.py | Updates mocks to patch builtins.open instead of io.open. |
| tests/basic.py | Removes legacy encoding header. |
| setup.py | Removes legacy setuptools packaging entrypoint. |
| setup.cfg | Removes legacy wheel config. |
| pyproject.toml | Introduces PEP 621 metadata + hatchling build + pytest config + dev dependency group. |
| dev-requirements.txt | Removes legacy dev requirements list (replaced by pyproject/uv). |
| README.rst | Cleans up badges/links to remove Travis/coverage references. |
| Makefile | Removes legacy test/build/upload commands. |
| MANIFEST.in | Removes legacy manifest entries. |
| ChangeLog.md | Adds v0.9.0 changelog entry. |
| .travis.yml | Removes Travis CI configuration. |
| .github/workflows/ci.yml | Adds GitHub Actions CI using uv across Python 3.10–3.13. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
| run: uv python install ${{ matrix.python-version }} | ||
|
|
||
| - name: Install dependencies | ||
| run: uv sync --python ${{ matrix.python-version }} |
| 2026.03.16 v0.9.0 | ||
| - migrate branch name from master to main | ||
| - drop 2.x support, add 3.10+ support | ||
| - migrate travis to github aciton |
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.