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

Trying to fix the setuptools fallout #736

Merged
merged 1 commit into from
Oct 7, 2022
Merged

Conversation

K900
Copy link
Contributor

@K900 K900 commented Sep 30, 2022

TODO list (ongoing):

  • fix package name normalization
  • fix override updating script to not screw with existing overrides with version constraints

@K900 K900 marked this pull request as draft September 30, 2022 08:03
@cpcloud
Copy link
Collaborator

cpcloud commented Oct 1, 2022

@K900 Thanks for looking into this. I pushed a commit to the PR to format the code to get more CI to run.

@cpcloud
Copy link
Collaborator

cpcloud commented Oct 1, 2022

It looks like the pluggy dependency for hatchling isn't found because the hatchling version requires pluggy 1.0.0 but 0.13.1 is found.

@cpcloud
Copy link
Collaborator

cpcloud commented Oct 1, 2022

I'm trying this against a project I work on with complex dependencies (https://github.com/ibis-project/ibis) and this PR appears to still infinitely recurse, but in a way that isn't detectable until after evaluation has started (and eventually fails with a stack overflow), as opposed to poetry2nix/master in which the recursion is detected during evaluation and a somewhat useful error message is reported.

@K900
Copy link
Contributor Author

K900 commented Oct 1, 2022

There's definitely new circular dependencies in there somewhere, we'll have to minimize it to find out.

@cpcloud
Copy link
Collaborator

cpcloud commented Oct 1, 2022

Using poetry<1.2, setuptools is never included in a package's dependencies in poetry.lock, whereas with poetry==1.2 now packages that have a (likely incorrect) runtime dependency on setuptools have that dependency listed in the lock file.

Removing those dependencies' dependency on setuptools in the lockfile and removing setuptools itself from the lockfile allows evaluation to proceed.

@cpcloud
Copy link
Collaborator

cpcloud commented Oct 1, 2022

I have upstream'd a few PRs to help address the incorrect setuptools dependency in the ecosystem:

one to Toblerity/Fiona likely to be merged: Toblerity/Fiona#1139
one to ipdb unlikely to be merged: gotcha/ipdb#254
one to numba, not merged but addressed in another open PR: numba/numba#8366

@K900
Copy link
Contributor Author

K900 commented Oct 1, 2022

I'm still not sure why we're looping on setuptools at all tbh, especially now that there's no implicit dependency on it.

@cpcloud
Copy link
Collaborator

cpcloud commented Oct 2, 2022

I've pushed a commit to bring back the from/until version bounds on a couple of the build system overrides, since that was causing failures due to bringing in incompatible versions of transitive dependencies.

@cpcloud
Copy link
Collaborator

cpcloud commented Oct 2, 2022

I haven't yet been able isolate a smaller reproducible example than what's in ibis-project/ibis, but it appears there may be a loop in python-remove-tests-dir-hook?

When I run

nix build -f . -vvv --dry-run 2>&1 | tee /tmp/output.txt

on my cpcloud/use-our-nixpkgs branch of ibis-project/ibis

I see this output repeated ad infinitum:

instantiated 'python-remove-tests-dir-hook' -> '/nix/store/i1x50xj78xyv9zra1qpjb5dp42jqd7aj-python-remove-tests-dir-hook.drv'
instantiated 'python-setup-hook.sh' -> '/nix/store/bcjff6dn4gp7pf0knnja9ax4qrll78d5-python-setup-hook.sh.drv'
instantiated 'Python-3.10.7.tar.xz' -> '/nix/store/ap22y5ilipad2bhs555rldnir8hki1j2-Python-3.10.7.tar.xz.drv'
instantiated 'python3-3.10.7' -> '/nix/store/c5rlaqdfymd3j5v41rh98pjcv3dx3sh7-python3-3.10.7.drv'
instantiated 'hook' -> '/nix/store/z7br4z8im93lckrpxgwbrscfhwyh0ic8-hook.drv'
instantiated 'python-remove-tests-dir-hook' -> '/nix/store/i1x50xj78xyv9zra1qpjb5dp42jqd7aj-python-remove-tests-dir-hook.drv'
instantiated 'python-setup-hook.sh' -> '/nix/store/bcjff6dn4gp7pf0knnja9ax4qrll78d5-python-setup-hook.sh.drv'
instantiated 'Python-3.10.7.tar.xz' -> '/nix/store/ap22y5ilipad2bhs555rldnir8hki1j2-Python-3.10.7.tar.xz.drv'
instantiated 'python3-3.10.7' -> '/nix/store/c5rlaqdfymd3j5v41rh98pjcv3dx3sh7-python3-3.10.7.drv'
instantiated 'hook' -> '/nix/store/z7br4z8im93lckrpxgwbrscfhwyh0ic8-hook.drv'

Add this bit to the poetry-overrides doesn't seem to help:

  poetry-core = super.poetry-core.overridePythonAttrs (_: {
    dontUsePythonRemoveTestsDir = true;
  });

@cpcloud
Copy link
Collaborator

cpcloud commented Oct 2, 2022

@K900 Hope you don't mind, but I pushed what I think is a minimal test case project: it only depends on setuptools. This is sufficient to cause the infinite recursion at eval time.

@K900
Copy link
Contributor Author

K900 commented Oct 2, 2022

Please continue, I probably won't have much more time to look into this in the next few days.

default.nix Outdated
pkgMeta:
if pkgMeta.name == "setuptools" then {
name = pkgMeta.name;
value = super.setuptools;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should probably be extended to cover all the build systems we support...

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, that makes sense. I'd like to see if I can get to the bottom of the reason why the infinite recursion is happening before doing that though.

One downside to this approach is that the version of whatever the build system is always pinned to whatever version/commit nixpkgs is pinned to. For setuptools that probably doesn't matter much, but for the newer build systems I'm not so sure.

@cpcloud
Copy link
Collaborator

cpcloud commented Oct 3, 2022

I was able to get the test case I added to pass by always using super.setuptools if it's included as a dependency.

I'll admit I'm not entirely sure why this works.

My hunch is that there are two different versions of setuptools in the closure: one coming from super, and one coming from the poetry lock file and they are colliding somehow.

@adisbladis Thoughts on this?

@K900
Copy link
Contributor Author

K900 commented Oct 3, 2022

I don't think that's avoidable, and it might be better than getting whatever random thing we end up with in the lockfile.

@cpcloud
Copy link
Collaborator

cpcloud commented Oct 3, 2022

Hm, that's a good point.

Separately, I tried this branch against ibis-project/ibis and it works.

@roberth
Copy link
Contributor

roberth commented Oct 4, 2022

I've blocked a nixops_unstable update because of this issue, but it's not clear to me what's happened around setuptools. Is it because of a poetry version update? (A PR description or issue link would have clarified this)

How do you think this situation should/will affect the poetry2nix-based packages in the upcoming NixOS release?

@K900
Copy link
Contributor Author

K900 commented Oct 4, 2022

Nixpkgs' Python hooks used to propagate setuptools, but they don't anymore, so all the things that implicitly expected it to be there exploded.

@cpcloud
Copy link
Collaborator

cpcloud commented Oct 4, 2022

There's a second issue here too: poetry < 1.2 automatically removed setuptools from dependencies, whereas 1.2 doesn't resulting in infinite recursion.

@talyz
Copy link
Contributor

talyz commented Oct 4, 2022

@roberth NixOS/nixpkgs#185815 is the breaking change.

@PedroRegisPOAR
Copy link

Maybe I have found an reproducer

1. From poetry2nix master:

nix run --no-write-lock-file github:nix-community/poetry2nix#poetry -- --version

The locked URL:

# To get the locked URL run:
# nix flake metadata --no-write-lock-file github:nix-community/poetry2nix
nix run --no-write-lock-file github:nix-community/poetry2nix/c2ee667d2fd19f70a9ac256b81f2cfc248c4f04d#poetry -- --version

Results in:

warning: not writing modified lock file of flake 'github:nix-community/poetry2nix':
• Added input 'flake-utils':
    'github:numtide/flake-utils/c0e246b9b83f637f4681389ecabcb2681b4f3af0' (2022-08-07)
• Added input 'nixpkgs':
    'github:NixOS/nixpkgs/2380304ae4975ef0d6ba13b64f990e94e8c5fdbb' (2022-10-04)
error: builder for '/nix/store/avk4c6r2y4mixriryam1rgrrbkzfivmi-python3.10-packaging-21.3.drv' failed with exit code 2;
       last 10 log lines:
       >   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
       >   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
       >   File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
       >   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
       >   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
       >   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
       >   File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
       > ModuleNotFoundError: No module named 'setuptools'
       > 
       > 
       For full logs, run 'nix log /nix/store/avk4c6r2y4mixriryam1rgrrbkzfivmi-python3.10-packaging-21.3.drv'.
error: 1 dependencies of derivation '/nix/store/wb17wpkm1p8w00cajp960w8yinwh75xy-python3.10-poetry-1.2.0.drv' failed to build

2. From K900/poetry2nix/hack

nix run --no-write-lock-file github:K900/poetry2nix/hack#poetry -- --version

Results in:

warning: not writing modified lock file of flake 'github:K900/poetry2nix/hack':
• Added input 'flake-utils':
    'github:numtide/flake-utils/c0e246b9b83f637f4681389ecabcb2681b4f3af0' (2022-08-07)
• Added input 'nixpkgs':
    'github:NixOS/nixpkgs/2380304ae4975ef0d6ba13b64f990e94e8c5fdbb' (2022-10-04)
Poetry (version 1.2.0)

So, it works!

The locked URL:

# To get the locked URL run:
# nix flake metadata --no-write-lock-file github:K900/poetry2nix/hack
nix run --no-write-lock-file github:K900/poetry2nix/fc3b734766d49695b34259d68e823f3baa732c07#poetry -- --version

Extra metadata

nix run nixpkgs#nix-info -- --markdown
  • system: "x86_64-linux"
  • host os: Linux 5.15.0-48-generic, Ubuntu, 22.04.1 LTS (Jammy Jellyfish), nobuild
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.10.2
  • channels(vagrant): "nixpkgs"
  • nixpkgs: /home/vagrant/.nix-defexpr/channels/nixpkgs

About the machine that it was tested (an Ubuntu Vagrant virtual machine):

nix run nixpkgs#neofetch -- --json

Outputs:

{
    "OS": "Ubuntu 22.04.1 LTS x86_64",
    "Host": "KVM/QEMU (Standard PC (i440FX + PIIX, 1996) pc-i440fx-7.0)",
    "Kernel": "5.15.0-48-generic",
    "Uptime": "7 mins",
    "Packages": "626 (dpkg), 44 (nix-user), 3 (snap)",
    "Shell": "bash 5.1.16",
    "Resolution": "1024x768",
    "Terminal": "/dev/pts/0",
    "CPU": "Intel (Haswell, no TSX, IBRS) (4) @ 3.392GHz",
    "GPU": "Cirrus Logic QEMU Virtual Machine",
    "Memory": "331MiB / 968MiB",
    "Version": "7.1.0"
}

@K900
Copy link
Contributor Author

K900 commented Oct 4, 2022

Yes, that reproduces the missing setuptools issue, but not the infinite recursion issue.

@cpcloud
Copy link
Collaborator

cpcloud commented Oct 4, 2022

I guess the question is whether the solution to fix the infinite recursion is the correct one. I'm happy to add the other build systems to the check if people think the approach is the way forward.

kodiakhq bot added a commit to linz/geostore that referenced this pull request Oct 18, 2022
* build(deps): bump certifi from 2020.12.5 to 2022.9.24

Bumps [certifi](https://github.com/certifi/python-certifi) from 2020.12.5 to 2022.9.24.
- [Release notes](https://github.com/certifi/python-certifi/releases)
- [Commits](certifi/python-certifi@2020.12.05...2022.09.24)

---
updated-dependencies:
- dependency-name: certifi
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: Remove mention of setuptools

Upstream fix <nix-community/poetry2nix#736>.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jim Gan <jgan@linz.govt.nz>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
kodiakhq bot added a commit to linz/geostore that referenced this pull request Oct 18, 2022
* build(deps): bump platformdirs from 2.3.0 to 2.5.2

Bumps [platformdirs](https://github.com/platformdirs/platformdirs) from 2.3.0 to 2.5.2.
- [Release notes](https://github.com/platformdirs/platformdirs/releases)
- [Changelog](https://github.com/platformdirs/platformdirs/blob/main/CHANGES.rst)
- [Commits](platformdirs/platformdirs@2.3.0...2.5.2)

---
updated-dependencies:
- dependency-name: platformdirs
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: Remove mention of setuptools

Upstream fix <nix-community/poetry2nix#736>.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jim Gan <jgan@linz.govt.nz>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
kodiakhq bot added a commit to linz/geostore that referenced this pull request Oct 18, 2022
* build(deps): bump six from 1.15.0 to 1.16.0

Bumps [six](https://github.com/benjaminp/six) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/benjaminp/six/releases)
- [Changelog](https://github.com/benjaminp/six/blob/master/CHANGES)
- [Commits](benjaminp/six@1.15.0...1.16.0)

---
updated-dependencies:
- dependency-name: six
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: Remove mention of setuptools

Upstream fix <nix-community/poetry2nix#736>.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jim Gan <jgan@linz.govt.nz>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
kodiakhq bot added a commit to linz/geostore that referenced this pull request Oct 18, 2022
* build(deps): bump distlib from 0.3.1 to 0.3.6

Bumps [distlib](https://github.com/pypa/distlib) from 0.3.1 to 0.3.6.
- [Release notes](https://github.com/pypa/distlib/releases)
- [Changelog](https://github.com/pypa/distlib/blob/master/CHANGES.rst)
- [Commits](pypa/distlib@0.3.1...0.3.6)

---
updated-dependencies:
- dependency-name: distlib
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: Remove mention of setuptools

Upstream fix <nix-community/poetry2nix#736>.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jim Gan <jgan@linz.govt.nz>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
kodiakhq bot added a commit to linz/geostore that referenced this pull request Oct 18, 2022
* build(deps): bump virtualenv from 20.4.2 to 20.16.5

Bumps [virtualenv](https://github.com/pypa/virtualenv) from 20.4.2 to 20.16.5.
- [Release notes](https://github.com/pypa/virtualenv/releases)
- [Changelog](https://github.com/pypa/virtualenv/blob/main/docs/changelog.rst)
- [Commits](pypa/virtualenv@20.4.2...20.16.5)

---
updated-dependencies:
- dependency-name: virtualenv
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: Remove mention of setuptools

Upstream fix <nix-community/poetry2nix#736>.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jim Gan <jgan@linz.govt.nz>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
kodiakhq bot added a commit to linz/geostore that referenced this pull request Oct 18, 2022
…2172)

* build(deps-dev): bump types-python-dateutil from 2.8.19 to 2.8.19.1

Bumps [types-python-dateutil](https://github.com/python/typeshed) from 2.8.19 to 2.8.19.1.
- [Release notes](https://github.com/python/typeshed/releases)
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-python-dateutil
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: Remove mention of setuptools

Upstream fix <nix-community/poetry2nix#736>.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jim Gan <jgan@linz.govt.nz>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
kodiakhq bot added a commit to linz/geostore that referenced this pull request Oct 18, 2022
* build(deps): bump filelock from 3.0.12 to 3.8.0

Bumps [filelock](https://github.com/tox-dev/py-filelock) from 3.0.12 to 3.8.0.
- [Release notes](https://github.com/tox-dev/py-filelock/releases)
- [Changelog](https://github.com/tox-dev/py-filelock/blob/main/docs/changelog.rst)
- [Commits](tox-dev/filelock@v3.0.12...3.8.0)

---
updated-dependencies:
- dependency-name: filelock
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: Remove mention of setuptools

Upstream fix <nix-community/poetry2nix#736>.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jim Gan <jgan@linz.govt.nz>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
kodiakhq bot added a commit to linz/geostore that referenced this pull request Oct 18, 2022
* build(deps): bump idna from 2.10 to 3.4

Bumps [idna](https://github.com/kjd/idna) from 2.10 to 3.4.
- [Release notes](https://github.com/kjd/idna/releases)
- [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.rst)
- [Commits](kjd/idna@v2.10...v3.4)

---
updated-dependencies:
- dependency-name: idna
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: Remove mention of setuptools

Upstream fix <nix-community/poetry2nix#736>.

* fix: Add idna build dependency

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jim Gan <jgan@linz.govt.nz>
Co-authored-by: Victor Engmark <vengmark@linz.govt.nz>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
l0b0 pushed a commit to linz/geostore that referenced this pull request Oct 19, 2022
l0b0 pushed a commit to linz/geostore that referenced this pull request Oct 19, 2022
l0b0 pushed a commit to linz/geostore that referenced this pull request Oct 19, 2022
l0b0 pushed a commit to linz/geostore that referenced this pull request Oct 19, 2022
kodiakhq bot pushed a commit to linz/geostore that referenced this pull request Oct 19, 2022
…#2179)

* build(deps-dev): bump types-python-dateutil from 2.8.19.1 to 2.8.19.2

Bumps [types-python-dateutil](https://github.com/python/typeshed) from 2.8.19.1 to 2.8.19.2.
- [Release notes](https://github.com/python/typeshed/releases)
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-python-dateutil
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: Remove mention of setuptools

Upstream fix <nix-community/poetry2nix#736>.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jim Gan <jgan@linz.govt.nz>
kodiakhq bot added a commit to linz/geostore that referenced this pull request Oct 19, 2022
…46.0a0 (#2176)

* build(deps): bump aws-cdk-aws-lambda-python-alpha

Bumps [aws-cdk-aws-lambda-python-alpha](https://github.com/aws/aws-cdk) from 2.45.0a0 to 2.46.0a0.
- [Release notes](https://github.com/aws/aws-cdk/releases)
- [Changelog](https://github.com/aws/aws-cdk/blob/main/CHANGELOG.v2.md)
- [Commits](https://github.com/aws/aws-cdk/commits)

---
updated-dependencies:
- dependency-name: aws-cdk-aws-lambda-python-alpha
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: Remove mention of setuptools

Upstream fix <nix-community/poetry2nix#736>.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jim Gan <jgan@linz.govt.nz>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
kodiakhq bot added a commit to linz/geostore that referenced this pull request Oct 19, 2022
…2177)

* build(deps): bump aws-cdk-aws-batch-alpha from 2.45.0a0 to 2.46.0a0

Bumps [aws-cdk-aws-batch-alpha](https://github.com/aws/aws-cdk) from 2.45.0a0 to 2.46.0a0.
- [Release notes](https://github.com/aws/aws-cdk/releases)
- [Changelog](https://github.com/aws/aws-cdk/blob/main/CHANGELOG.v2.md)
- [Commits](https://github.com/aws/aws-cdk/commits)

---
updated-dependencies:
- dependency-name: aws-cdk-aws-batch-alpha
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: Remove mention of setuptools

Upstream fix <nix-community/poetry2nix#736>.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jim Gan <jgan@linz.govt.nz>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
kodiakhq bot added a commit to linz/geostore that referenced this pull request Oct 19, 2022
* build(deps): bump pyrsistent from 0.17.3 to 0.18.1

Bumps [pyrsistent](https://github.com/tobgu/pyrsistent) from 0.17.3 to 0.18.1.
- [Release notes](https://github.com/tobgu/pyrsistent/releases)
- [Changelog](https://github.com/tobgu/pyrsistent/blob/master/CHANGES.txt)
- [Commits](tobgu/pyrsistent@v0.17.3...v0.18.1)

---
updated-dependencies:
- dependency-name: pyrsistent
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: Remove mention of setuptools

Upstream fix <nix-community/poetry2nix#736>.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jim Gan <jgan@linz.govt.nz>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
l0b0 pushed a commit to linz/geostore that referenced this pull request Oct 19, 2022
kodiakhq bot added a commit to linz/geostore that referenced this pull request Oct 19, 2022
* build(deps-dev): bump boto3-stubs from 1.24.92 to 1.24.93

Bumps [boto3-stubs](https://github.com/youtype/mypy_boto3_builder) from 1.24.92 to 1.24.93.
- [Release notes](https://github.com/youtype/mypy_boto3_builder/releases)
- [Commits](https://github.com/youtype/mypy_boto3_builder/commits)

---
updated-dependencies:
- dependency-name: boto3-stubs
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: Remove mention of setuptools

Upstream fix <nix-community/poetry2nix#736>.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jim Gan <jgan@linz.govt.nz>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
kodiakhq bot added a commit to linz/geostore that referenced this pull request Oct 19, 2022
* build(deps): bump pyparsing from 2.4.7 to 3.0.9

Bumps [pyparsing](https://github.com/pyparsing/pyparsing) from 2.4.7 to 3.0.9.
- [Release notes](https://github.com/pyparsing/pyparsing/releases)
- [Changelog](https://github.com/pyparsing/pyparsing/blob/master/CHANGES)
- [Commits](pyparsing/pyparsing@pyparsing_2.4.7...pyparsing_3.0.9)

---
updated-dependencies:
- dependency-name: pyparsing
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: Remove mention of setuptools

Upstream fix <nix-community/poetry2nix#736>.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jim Gan <jgan@linz.govt.nz>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
l0b0 added a commit to linz/emergency-management-tools that referenced this pull request Oct 27, 2022
Workaround until upstream fix
<nix-community/poetry2nix#736> is available.
sigprof added a commit to sigprof/nix-devenv-qmk that referenced this pull request Nov 1, 2022
The updated version fixes compatibility with `poetry.lock` files
generated by `poetry` >= 1.2, which now include dependencies on
`setuptools`, and that causes infinite recursion if those dependencies
are just handled as written:

  nix-community/poetry2nix#736
l0b0 added a commit to linz/oidc-provider that referenced this pull request Nov 16, 2022
kodiakhq bot added a commit to linz/oidc-provider that referenced this pull request Nov 16, 2022
* build(deps-dev): bump mypy from 0.990 to 0.991

Bumps [mypy](https://github.com/python/mypy) from 0.990 to 0.991.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](python/mypy@v0.990...v0.991)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: Remove mention of setuptools

While waiting for upstream fix
<nix-community/poetry2nix#736>.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Victor Engmark <vengmark@linz.govt.nz>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
@vale981
Copy link
Contributor

vale981 commented Nov 24, 2022

fwiw, it still seems like there is an issue here when attempting to run packages, instead of just building an env for them.
i'm in a situation where the nix shell works fine, but nix run . ... does not
( -- edit: i think i'm wrong; i solved my problem by adding setuptools = "*" as a dep. )

A lot of packages don't add setuptools to their runtime dependencies even though they depend on it (typically pkg_resources).

Is there a workaround for injecting this dependency other than editing poetry.lock?

@K900
Copy link
Contributor Author

K900 commented Nov 24, 2022

Yes, via the overrides mechanism.

@vale981
Copy link
Contributor

vale981 commented Nov 24, 2022

so i feared :P

l0b0 added a commit to linz/geostore that referenced this pull request Dec 5, 2022
l0b0 added a commit to linz/geostore that referenced this pull request Dec 6, 2022
* build(deps): bump linz-logger from 0.9.0 to 0.11.0

Bumps [linz-logger](https://github.com/linz/python-linz-logger) from 0.9.0 to 0.11.0.
- [Release notes](https://github.com/linz/python-linz-logger/releases)
- [Changelog](https://github.com/linz/python-linz-logger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/linz/python-linz-logger/commits/v0.11.0)

---
updated-dependencies:
- dependency-name: linz-logger
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: Remove mention of setuptools

Upstream fix <nix-community/poetry2nix#736>.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Victor Engmark <vengmark@linz.govt.nz>
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.

None yet