Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.astroid: 2.4.2 -> 2.5.0 #112908

Merged
merged 3 commits into from
Mar 6, 2021

Conversation

mweinelt
Copy link
Member

@mweinelt mweinelt commented Feb 12, 2021

Motivation for this change

Python 3.9 ❤️

Updates to 2.5.0 which was released today (2020-02-16).
https://github.com/PyCQA/astroid/releases/tag/astroid-2.5

Applies patches that fix Python 3.9 support in the testsuite:

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@mweinelt mweinelt mentioned this pull request Feb 12, 2021
10 tasks
@@ -23,7 +56,9 @@ buildPythonPackage rec {
++ lib.optional (pythonOlder "3.5") typing
++ lib.optional (!isPyPy) typed-ast;
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

In fact we only need it < 3.8.

@mweinelt
Copy link
Member Author

/rebase-staging

@github-actions github-actions bot changed the base branch from master to staging February 12, 2021 15:08
@mweinelt mweinelt changed the title python39Packages.astroid: fix tests and reenable python3Packages.astroid: 2.4.2 -> 2.5.0 Feb 15, 2021
@mweinelt
Copy link
Member Author

Meanwhile a new upstream release happened and that simplifies the situation alot.

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 112908 run on x86_64-linux 1

2 packages failed to build and are new build failures:
  • home-assistant: log was empty
  • hydra-unstable: log was empty
3 packages built:
  • python37Packages.astroid
  • python38Packages.astroid
  • python39Packages.astroid

The following issues got detected with the above build packages.
Please fix at least the ones listed with your changed packages:

hydra-unstable:

gpl3 is a deprecated license, check if project uses gpl3Plus or gpl3Only and change meta.license accordingly.

Near pkgs/development/tools/misc/hydra/common.nix:133:5:

    |
133 |     license = licenses.gpl3;
    |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/unclear-gpl.md
autoconf is a build tool so it likely goes to nativeBuildInputs, not buildInputs.

Near pkgs/development/tools/misc/hydra/common.nix:81:3:

   |
81 |   buildInputs =
   |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/build-tools-in-build-inputs.md
automake is a build tool so it likely goes to nativeBuildInputs, not buildInputs.

Near pkgs/development/tools/misc/hydra/common.nix:81:3:

   |
81 |   buildInputs =
   |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/build-tools-in-build-inputs.md
libtool is a build tool so it likely goes to nativeBuildInputs, not buildInputs.

Near pkgs/development/tools/misc/hydra/common.nix:81:3:

   |
81 |   buildInputs =
   |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/build-tools-in-build-inputs.md
makeWrapper is a build tool so it likely goes to nativeBuildInputs, not buildInputs.

Near pkgs/development/tools/misc/hydra/common.nix:81:3:

   |
81 |   buildInputs =
   |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/build-tools-in-build-inputs.md
perl is a build tool so it likely goes to nativeBuildInputs, not buildInputs.

Near pkgs/development/tools/misc/hydra/common.nix:81:3:

   |
81 |   buildInputs =
   |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/build-tools-in-build-inputs.md
subversion is a build tool so it likely goes to nativeBuildInputs, not buildInputs.

Near pkgs/development/tools/misc/hydra/common.nix:81:3:

   |
81 |   buildInputs =
   |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/build-tools-in-build-inputs.md
unzip is a build tool so it likely goes to nativeBuildInputs, not buildInputs.

Near pkgs/development/tools/misc/hydra/common.nix:81:3:

   |
81 |   buildInputs =
   |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/build-tools-in-build-inputs.md
Unused argument: fetchFromGitHub.
Near pkgs/development/tools/misc/hydra/common.nix:1:40:

  |
1 | { stdenv, nix, perlPackages, buildEnv, fetchFromGitHub
  |                                        ^

Unused argument: darcs.
Near pkgs/development/tools/misc/hydra/common.nix:3:23:

  |
3 | , top-git, mercurial, darcs, subversion, breezy, openssl, bzip2, libxslt
  |                       ^

Unused argument: guile.
Near pkgs/development/tools/misc/hydra/common.nix:4:3:

  |
4 | , guile, perl, postgresql, nukeReferences, git, boehmgc, nlohmann_json
  |   ^
python37Packages.astroid:

lgpl2 is a deprecated license, check if project uses lgpl2Plus or lgpl2Only and change meta.license accordingly.

Near pkgs/development/python-modules/astroid/default.nix:36:5:

   |
36 |     license = licenses.lgpl2;
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/unclear-gpl.md

python38Packages.astroid:

lgpl2 is a deprecated license, check if project uses lgpl2Plus or lgpl2Only and change meta.license accordingly.

Near pkgs/development/python-modules/astroid/default.nix:36:5:

   |
36 |     license = licenses.lgpl2;
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/unclear-gpl.md

python39Packages.astroid:

lgpl2 is a deprecated license, check if project uses lgpl2Plus or lgpl2Only and change meta.license accordingly.

Near pkgs/development/python-modules/astroid/default.nix:36:5:

   |
36 |     license = licenses.lgpl2;
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/unclear-gpl.md

@SuperSandro2000
Copy link
Member

home-assistant and hydra-unstable fail because of pylint.

builder for '/nix/store/8wpmpz95mfjk0dni2615lbdc5zqg3x58-python3.8-pylint-2.6.2.drv' failed with exit code 1;
setuptoolsBuildPhase
installing
Executing pipInstallPhase
/build/pylint-2.6.2/dist /build/pylint-2.6.2
Processing ./pylint-2.6.2-py3-none-any.whl
Requirement already satisfied: isort<6,>=4.2.5 in /nix/store/s5zcphj9zjcq1pfywhd4jnhdg26m60n8-python3.8-isort-5.6.4/lib/python3.8/site-packages (from pylint==2.6.2) (5.6.4)
Requirement already satisfied: mccabe<0.7,>=0.6 in /nix/store/lxmvlrkj6iw53cvcizl13pj7kg1922n5-python3.8-mccabe-0.6.1/lib/python3.8/site-packages (from pylint==2.6.2) (0.6.1)
Requirement already satisfied: toml>=0.7.1 in /nix/store/pi4w43xlpjdgd3prhy6xajzxjv5a8lz2-python3.8-toml-0.10.2/lib/python3.8/site-packages (from pylint==2.6.2) (0.10.2)
ERROR: Could not find a version that satisfies the requirement astroid<2.5,>=2.4.0 (from pylint)                                                                                            ERROR: No matching distribution found for astroid<2.5,>=2.4.0
cannot build derivation '/nix/store/am7x7wanma6l6cgkw0mdnqc2jsk61wfg-python3.8-trio-0.17.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/7h0xd0v0qy1ln9y6hc3j16cyw1ik7bgc-python3.8-jeepney-0.6.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/x99jr39mmpafrkq0a05sn789sph9lcb6-python3.8-pytest-trio-0.7.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/psq4mg96gk33f5wz1lx0akwla44r2m8g-python3.8-httpx-0.16.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/jag9m4p0hxwvfssrikfqwryh10hpmqyf-python3.8-secretstorage-3.3.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/y5wvr0c2c5c3kwy55cmf1w0g53j2wlzw-homeassistant-2021.2.3.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/x3cz8ml6dp7v8sm2xxjih5pz5p88zxpx-python3.8-keyring-21.5.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/rg7w78lvj4r05rygkqfk5ziv4pz5jb97-python3.8-launchpadlib-1.10.13.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/ip69k8g13svg3a9g0y69nnnijj09w8i8-python3.8-breezy-3.1.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/xlracj47dm51wa56q4pl9vn47lx67mji-hydra-2020-10-20.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/jza91fhl9dnnhxyfvz39nbi51kngrzqz-review-shell.drv': 2 dependencies couldn't be built

@mweinelt
Copy link
Member Author

mweinelt commented Feb 18, 2021

The latest pylint release (2.6.2, 2 days ago) is apparently not yet compatible with astroid 2.5.0.

pylint-dev/pylint@pylint-2.6.0...pylint-2.6.2#diff-91c5b46dc84a94604a4e4d0caed9bf85590a2eddbb12d2e8dc80badf324a9dfbR8

TLDR : We've released astroid 2.5 yesterday which caused the problem with 2.6 that we had to fix, and we're going to release 2.7 very soon (once we make sure there is no problem with astroid 2.5 by checking the issues that were reported today).

pylint-dev/pylint#4099 (comment) (2 days ago)

@mweinelt mweinelt added the 2.status: wait-for-upstream Waiting for upstream fix (or their other action). label Feb 18, 2021
@mweinelt
Copy link
Member Author

@FRidh This is good to go.

@dotlambda
Copy link
Member

/rebase staging

@github-actions github-actions bot changed the base branch from python-unstable to staging March 5, 2021 14:06
@github-actions github-actions bot closed this Mar 5, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Mar 5, 2021

Rebased, please reopen the pull request to restart CI

@mweinelt mweinelt reopened this Mar 5, 2021
@dotlambda dotlambda merged commit 14674eb into NixOS:staging Mar 6, 2021
@mweinelt mweinelt deleted the python/astroid branch March 13, 2021 02:52
@bobrik
Copy link
Contributor

bobrik commented Mar 19, 2021

#116814 fixes darwin build of pylint after this PR.

bobrik added a commit to bobrik/nixpkgs that referenced this pull request Mar 19, 2021
The test no longer exists after NixOS#112908:

```
Disabled tests path "pylint/test/test_functional.py" does not exist. Aborting
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants