Skip to content

The great python3.8 purge [1] (python == 3.5) #312552

Closed
Sigmanificient wants to merge 1 commit intoNixOS:masterfrom
Sigmanificient:python-3.5-purge
Closed

The great python3.8 purge [1] (python == 3.5) #312552
Sigmanificient wants to merge 1 commit intoNixOS:masterfrom
Sigmanificient:python-3.5-purge

Conversation

@Sigmanificient
Copy link
Copy Markdown
Member

Description of changes

part of: #312288

This pr removes all the mention of pythonOlder 3.5.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added 6.topic: python Python is a high-level, general-purpose programming language. 6.topic: jupyter Interactive computing tooling: kernels, notebook, jupyterlab labels May 18, 2024
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels May 18, 2024
Copy link
Copy Markdown
Member

@fabaff fabaff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't agree with removing pythonOlder only because it mention "3.5". It should stay as it in many cases it was added manually and helps to track in some ways the state of the module in Nixpkgs. Same as going for modules which still use sha256, mention format = "setuptools"; or have six in their inputs.

While checking a couple of modules it showed that the entry is simply outdated. During mass updates pythonOlder is not checked. Also, upstream is not always aware what releases their module actually support and it doesn't have to align us. If upstream says python_requires=">=3.5" then our pythonOlder entry does reflect hat.

Copy link
Copy Markdown
Member

@fabaff fabaff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess that there are more outdated entries.

@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label May 22, 2024
@wegank wegank added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jan 2, 2025
@mweinelt
Copy link
Copy Markdown
Member

mweinelt commented Jan 11, 2026

The disabled attribute is for nixpkgs consumption only. It does not make sense to keep it around for Python versions we don't ship anymore.

I'm absolutely for structural cleanup like that.

@nixpkgs-ci nixpkgs-ci bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jan 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 6.topic: jupyter Interactive computing tooling: kernels, notebook, jupyterlab 6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants