Define an LTS channel and add nx lts upgrade

Open
#731 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
cli

Research direction

Start with the existing nx upgrade implementation and tests to learn how it detects package managers and handles --check and --dry-run; the issue names docs/deployment/ and docs/reference/cli.md for documentation. Define a machine-readable LTS channel with supported versions, end dates, and release references, then add and document nx lts upgrade. Done means tests cover channel parsing, expired lines, downgrade rejection, and installation in a temporary project, with translations regenerated.

Written by the indexing model from the issue text.

Description

Problem

There is no LTS channel in the repository or in the published releases. nx upgrade targets the
newest stable version, which can cross minor versions. A project that needs a supported line has
neither a way to declare that line nor a way to query it, so nx lts upgrade cannot be written
yet.

Change to make

Define and publish the channel first: a machine-readable list of LTS lines, with the version, the
support end date and the release reference, documented under docs/deployment/. Then add an lts
command group with an upgrade subcommand. It reads the current version, selects the newest
release in the declared LTS line that is still supported, updates the project's nexy>= floor and
installs it through the detected package manager. It offers --check and --dry-run with the same
meaning as nx upgrade.

Out of scope

Backporting fixes into an LTS line, changing the stable release workflow and module updates
(nx update).

Checks

Tests parse the channel file, reject an expired line and a downgrade, and install the selected
version in a temporary project. docs/reference/cli.md and the deployment docs describe the
channel and the command, with translations regenerated.

Dominant language
Python
Stars
11
Forks
6
Avg merge
2h 14m
Merged PRs (30d)
265

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NexyPy/nexy

All issues in NexyPy/nexy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.