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

[pre-commit.ci] pre-commit autoupdate #59

Merged
merged 2 commits into from
Aug 21, 2023
Merged

Conversation

@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from 68248fb to 2041fd8 Compare August 15, 2023 04:26
@diazona
Copy link
Owner

diazona commented Aug 16, 2023

We might just want to revert the ruff part of the change with a fixup commit and merge this to get the usable updates...

@sjlongland
Copy link
Collaborator

We might just want to revert the ruff part of the change with a fixup commit and merge this to get the usable updates...

Yeah, something in the docs part is grumpy though… seemingly setuptools related:

  File "/home/runner/work/setuptools-pyproject-migration/setuptools-pyproject-migration/.tox/docs/lib/python3.10/site-packages/setuptools/__init__.py", line 35, in <module>
    __version__ = setuptools.version.__version__
AttributeError: partially initialized module 'setuptools' has no attribute 'version' (most likely due to a circular import)

pickling environment... done
checking consistency... done
preparing documents... done
copying assets... copying static files... done
copying extra files... done
done
writing output... [ 50%] history
writing output... [100%] index
generating indices... genindex done
writing additional pages... search done
dumping search index in English (code: en)... done
dumping object inventory... done
build finished with problems, 1 warning.
docs: exit 1 (5.02 seconds) /home/runner/work/setuptools-pyproject-migration/setuptools-pyproject-migration/docs> python -m sphinx -W --keep-going . /home/runner/work/setuptools-pyproject-migration/setuptools-pyproject-migration/build/html pid=1882
.pkg: _exit> python /home/runner/.local/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta
  docs: FAIL code 1 (18.77=setup[13.75]+cmd[5.02] seconds)
  evaluation failed :( (18.87 seconds)

Error: Process completed with exit code 1.

Seemingly, some sleuthing (read: pasting the error into Google Search) yields this: pytorch/pytorch#69904

@sjlongland
Copy link
Collaborator

More specific: pypa/setuptools#3744 (comment)

@sjlongland sjlongland force-pushed the pre-commit-ci-update-config branch 2 times, most recently from f1d9abf to e1048ec Compare August 19, 2023 06:49
@sjlongland
Copy link
Collaborator

Okay, so fix made more complicated because setuptools older than 60.10.0 does NOT like Python 3.12 (due to a long deprecated feature being removed), and 60.10.0 itself not liking Python 3.6.

@sjlongland sjlongland requested a review from diazona August 19, 2023 06:56
@diazona
Copy link
Owner

diazona commented Aug 19, 2023

Oh interesting - I was running into that error on my branch for #58 and thought it had something to do with my changes 🤦

What do you think about splitting out the fix for that import error in a separate PR? After all, it's not related to the pre-commit changes, just something that happened to occur around the same time. Also, cutting off eight major versions of setuptools seems pretty drastic; I wonder if there's a way to fix it with a lighter touch... although I suppose getting it working is better than waiting to find the "right" way.

@sjlongland
Copy link
Collaborator

Oh interesting - I was running into that error on my branch for #58 and thought it had something to do with my changes 🤦

What do you think about splitting out the fix for that import error in a separate PR? After all, it's not related to the pre-commit changes, just something that happened to occur around the same time.

Yep, I have no issues doing that… I'll get right onto it.

Also, cutting off eight major versions of setuptools seems pretty drastic; I wonder if there's a way to fix it with a lighter touch... although I suppose getting it working is better than waiting to find the "right" way.

Yes well, I think it all depends on how quickly upstream identify and fix the issue. I was of the thought of "get it working" knowing this was meant to be "temporary". (Yes, fully aware how permanent a "temporary" fix can be.)

@sjlongland sjlongland force-pushed the pre-commit-ci-update-config branch from 825af15 to 8ea75cd Compare August 19, 2023 08:31
@diazona
Copy link
Owner

diazona commented Aug 20, 2023

Could you rebase this on main? (or otherwise drop the commits that were taken care of in #60)

@sjlongland sjlongland force-pushed the pre-commit-ci-update-config branch from 8ea75cd to a02b86e Compare August 20, 2023 09:28
@sjlongland sjlongland enabled auto-merge August 20, 2023 09:29
pre-commit-ci bot and others added 2 commits August 20, 2023 19:29
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.0.233 → v0.0.284](astral-sh/ruff-pre-commit@v0.0.233...v0.0.284)
- [github.com/pre-commit/mirrors-mypy: v1.4.1 → v1.5.0](pre-commit/mirrors-mypy@v1.4.1...v1.5.0)
- [github.com/psf/black: 22.6.0 → 23.7.0](psf/black@22.6.0...23.7.0)
@sjlongland sjlongland force-pushed the pre-commit-ci-update-config branch from a02b86e to 7486961 Compare August 20, 2023 09:30
@sjlongland sjlongland merged commit 1441164 into main Aug 21, 2023
@sjlongland sjlongland deleted the pre-commit-ci-update-config branch August 21, 2023 03:41
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.

2 participants