-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Remove Regex from search #8034
Remove Regex from search #8034
Conversation
Use Re in all places in the search plugin except where Unicode properties are desired (checking for Chinese chars). Use Backrefs' `bre` to check for Unicode properties. To minimize any differences, explicitly use `script` as Backrefs uses `script_extensions` (or `scx`) by default with `Is*` properties.
Thanks for the PR! LGTM, as it detects all Chinese characters in our documentation (debug output):
Thus, I consider this safe to merge. |
Thanks! |
The inclusion of The output below is from a × No solution found when resolving dependencies for split
│ (python_full_version == '3.8.*'):
╰─▶ Because the requested Python version (>=3.8) does not satisfy
Python>=3.9 and backrefs==5.8 depends on Python>=3.9, we can conclude
that backrefs==5.8 cannot be used.
And because only backrefs<=5.8 is available, we can conclude that
backrefs>=5.8 cannot be used.
And because mkdocs-material==9.6.5+insiders.4.53.15 depends on
backrefs>=5.8 and only mkdocs-material==9.6.5+insiders.4.53.15 is
available, we can conclude that all versions of mkdocs-material cannot
be used.
And because pacotests:docs depends on mkdocs-material and your
project requires pacotests:docs, we can conclude that your project's
requirements are unsatisfiable.
hint: `backrefs` was requested with a pre-release marker (e.g.,
backrefs>5.8,<6.dev0), but pre-releases weren't enabled (try:
`--prerelease=allow`)
hint: The `requires-python` value (>=3.8) includes Python versions
that are not supported by your dependencies (e.g., backrefs==5.8 only
supports >=3.9). Consider using a more restrictive `requires-python`
value (like >=3.9). |
So Python 3.8 is EOL. If material wants to keep supporting 3.8, they can drop the version to the one before |
Functionally, the version right before should still work. I fixed up tests to work in pypy in 5.8, and fixed up some deprecation warnings being generated, but there shouldn't be any functional issues. |
Just to be clear, I drop support for all EOL Python versions in my packages. Pymdown Extensions will also drop 3.8 in its next release. |
It's fine if it's EOL, but the However, I believe my "actual" problem was that I thought I had pinned the exact version of |
Yep, I think its fine bumping the version down if Material definitely wants to support 3.8. I'm more stating this now so @squidfunk is aware and make a decision of either dropping 3.8 in Material or requesting an earlier version of backrefs that is 3.8 compatible. |
Thanks for pointing that out, I wasn't aware of that. We're happy to drop support for Python 3.8, but as I understand, since this might break some workflows downstream, we would need to include this change in a major release. We're not able to do a major release right now, as we need to first finish the foundational work we're currently at. and since the problem solved is not a problem that our users immediately have, as we solely improved support for PyPy, something we don't even support, I think we need to revert this change, and reopen the PR for later consideration. |
Let me just lower the version instead |
@facelessuser wow, that was quick – thanks! This makes it much easier for us 😅 I'm sorry for the inconvenience this is causing, but we're cooking up something massive, which is why we're maintaining rather conservatively. |
PR is up #8037. No worries, the change is trivial. |
Perfect, thanks! |
@shaheermirzacs thanks to @facelessuser, this problem should now be resolved – can you confirm? |
Confirmed fixed! Thank you very much @facelessuser! @squidfunk how long does it take for the change to propagate to insiders? |
Done |
Thanks. If I may have one more suggestion, |
It's part of our |
Use Re in all places in the search plugin except where Unicode properties are desired (checking for Chinese chars). Use Backrefs'
bre
to check for Unicode properties. To minimize any differences, explicitly usescript
as Backrefs usesscript_extensions
(orscx
) by default withIs*
properties.Resolves #8032