Make it glow with uv#154
Merged
Merged
Conversation
7affd9f to
b185755
Compare
- pyproject.toml (PEP 621) is the single source of truth, hatchling as the PEP 517 backend; livelossplot/version.py reads __version__ from installed metadata (importlib.metadata) so there is no duplication - Drop setup.py, setup.cfg, requirements-dev.txt, .yapfignore, publish.sh - Bump python floor 3.7 -> 3.10; drop the py<3.8 conditional pins on numpy and ipython - Add classifier for 3.13 - PEP 639 SPDX 'license = "MIT"' + license-files; drop the now-redundant License :: classifier - Add Changelog URL to project.urls - Replace flake8 + yapf with ruff (conservative ruleset, no auto-rewrites, __init__.py re-exports allowed via per-file ignores, examples excluded) - Add ty (Astral type checker) — runs in CI but is informational until optional-integration imports get a follow-up types pass - Move dev/docs deps into PEP 735 [dependency-groups] - .gitignore covers the uv/ruff/pytest/ty cache dirs - Remove the now-unused 'import re' in tests/test_main_logger.py - Bump to 0.6.0 (breaking: minimum Python 3.10, Neptune already removed) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
All workflows now run via astral-sh/setup-uv@v4 with built-in caching, replacing the actions/setup-python + pip dance. - tests.yml (was pythonpackage.yml): matrix bumped to 3.10–3.13, uses 'uv sync --group dev' + 'uv run pytest' - lint.yml (was flake8_yapf.yml): drops the third-party yapf-action. Runs 'ruff check' + 'ty check' (informational) - external_packages.yml: ad-hoc deps via 'uv run --with <pkg>' instead of cumulative pip install. Keras step explicitly installs tensorflow alongside (Keras 3.x needs a backend at import time) - docs.yml: pulls pdoc3 from the [docs] group; bumps actions-gh-pages to v4; adds 'permissions: contents: write' so peaceiris can actually push to gh-pages (GitHub flipped GITHUB_TOKEN to read-only by default in 2023, which is why issue #148's broken docs link was unfixable) - release.yml (new): on push of a v* tag, asserts pyproject version matches the tag, builds with 'uv build', publishes to PyPI via 'uv publish' (PYPI_API_TOKEN secret), then creates a GitHub Release with the matching ## [x.y.z] section from CHANGELOG attached Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
CHANGELOG: 0.6.0 entry covering Bokeh-in-Colab (issue #109), Plot2d (issue #137), max_cols=1 (PR #147), groups starting at different steps (PR #149), Neptune integration removal, and the py3.10 floor. README: - Update CI badges to point at the renamed workflows (tests.yml, lint.yml) and link each badge to its workflow page - Switch the install section to uv-first ('uv add livelossplot'), with pip kept as the alternative; add a 'Run without installing' section covering 'uv run --with' for one-off scripts, inline script dependencies, and Jupyter - Replace the dead 'git+git://' source-install URL with the working 'git+https://' form - Fix the master->main branch in the header GIF link Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
b185755 to
3d03dfb
Compare
This was referenced May 4, 2026
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.
pyproject.toml