-
Notifications
You must be signed in to change notification settings - Fork 8
Use blib2to3 parser from black package to support match statement
#80
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
7412f63
Use blib2to3 parser to support match statement
nrser 30d06a6
Add a _unreleased changelog for blib2to3 integration
nrser 1169992
fix mypy in docspec/src/docspec/__init__.py
NiklasRosenstein dc141dd
fix mypy
NiklasRosenstein 7911d06
update changelog format
NiklasRosenstein be0d157
update GitHub workflow
NiklasRosenstein 6f24813
fix workflow
NiklasRosenstein a4aff22
insert PR url
NiklasRosenstein f6878bd
use `--no-venv-check` also for `slap run` in docs job
NiklasRosenstein File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # NOTE (@nrser) Obviously these files have some format/structure to them but | ||
| # I'm not familiar with it and I'm not sure where to find it documented; | ||
| # please forgive any mistakes. | ||
|
|
||
| # Guessing this would not be set in an "unreleased" entry, but anyways today's | ||
| # date is thrown in there | ||
| # | ||
| # release-date = "2023-02-28" | ||
|
|
||
| [[entries]] | ||
| # Guessing this is just a uuid, I generated one with `uuidgen` | ||
| id = "58c1a773-c483-4014-8238-80d9f65f7b57" | ||
| # I guess this is a 'fix'? Python version for `docspec-python` is not restricted | ||
| # above, so I assume it is supposed to work for Python 3.10+ with `match` | ||
| type = "fix" | ||
| description = """\ | ||
| Swap in `blib2to3` parser (bundled with `black` package) for the stdlib \ | ||
| `lib2to3` module in order to support `match` statement (PEP 634 – Structural \ | ||
| Pattern Matching). \ | ||
| """ | ||
| author = "@nrser" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| [tool.poetry] | ||
| name = "docspec-python" | ||
| version = "2.0.2" | ||
| version = "2.0.2+blib2to3" | ||
| description = "A parser based on lib2to3 producing docspec data from Python source code." | ||
| authors = ["Niklas Rosenstein <[email protected]>"] | ||
| license = "MIT" | ||
|
|
@@ -12,6 +12,7 @@ packages = [{ include = "docspec_python", from="src" }] | |
| python = "^3.7" | ||
| docspec = "^2.0.2" | ||
| "nr.util" = ">=0.7.0" | ||
| black = "^23.1.0" | ||
|
|
||
| [tool.poetry.dev-dependencies] | ||
| mypy = "*" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.