Skip to content

Make it glow with uv#154

Merged
stared merged 3 commits into
mainfrom
make-it-glow-with-uv
May 4, 2026
Merged

Make it glow with uv#154
stared merged 3 commits into
mainfrom
make-it-glow-with-uv

Conversation

@stared
Copy link
Copy Markdown
Owner

@stared stared commented May 4, 2026

  • pyproject.toml
  • ruff, ty
  • uv for publishing
  • releases with GitHub Actions and tied to tag versions

@stared stared force-pushed the make-it-glow-with-uv branch 4 times, most recently from 7affd9f to b185755 Compare May 4, 2026 15:29
stared and others added 3 commits May 4, 2026 18:10
- 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>
@stared stared force-pushed the make-it-glow-with-uv branch from b185755 to 3d03dfb Compare May 4, 2026 16:15
@stared stared changed the title [WIP] Make it glow with uv Make it glow with uv May 4, 2026
@stared stared merged commit b2e8d86 into main May 4, 2026
6 checks passed
@stared stared deleted the make-it-glow-with-uv branch May 4, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant