-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Python APIView] add support for pyproject.toml managed packages (#9923)
* update apiview tree parser tspconfig * update package.json * add usage decorator * add service decorator temporarily for codegen * update tspconfig * initial generated code * add global review line token * add blank lines * fix function node * handle multi and single lines * indent multi-line params extra * regen for has_prefix_space * add blank line after class * fix spacing/newlines in class * make multi line args children * print key node item type * add to create review line * add ReviewLines * fix multi-line methods output w/ ReviewLines * add diagnostic * fix tests * fix more class parsing tests * get functions tests passing * fix more tests * fix all class tests * fix dataclass tests * [TEMP] remove extra punctuation from add type test * pass apiview through node constructors * fix diagnostics test * add back multi line pylint error * fix metadata map test * remove to test txt * add context end line and parser header * add NavigateToId * update tests with apiview * add navigation display name * add context end and related to line tests * fix bug * clean up TODOs * add render classes for nav icons * update readme w/ info * re-gen from tsp * run black * black * add tsp-location * rever apiview tsp to main, move all changes to separate pr * newline at end of package lock * update version * [temp] print cwd for failing ci * add init to _generated + remove temp cwd printing * add isodate/typing-extensions to setup.py * add azure-core to setup.py * add external link token kind * test source url * black * add is context end to class and remove from single line functions * address comments * update readme * update tspconfig commit * travis comments, fix function special arg indent + remove lstrip from tests * travis comments, update tests to count relatedToLine and isContextEndLine * add relatedline/endcontext count to more tests * update apiview tree parser tspconfig * update package.json * add usage decorator * update tspconfig * initial generated code * add global review line token * add blank lines * fix function node * handle multi and single lines * indent multi-line params extra * regen for has_prefix_space * add blank line after class * fix spacing/newlines in class * make multi line args children * print key node item type * add to create review line * add ReviewLines * fix multi-line methods output w/ ReviewLines * add diagnostic * fix tests * fix more class parsing tests * get functions tests passing * fix more tests * fix all class tests * fix dataclass tests * [TEMP] remove extra punctuation from add type test * pass apiview through node constructors * fix diagnostics test * add back multi line pylint error * fix metadata map test * remove to test txt * add context end line and parser header * add NavigateToId * update tests with apiview * add navigation display name * add context end and related to line tests * fix bug * clean up TODOs * add render classes for nav icons * update readme w/ info * re-gen from tsp * run black * black * add tsp-location * rever apiview tsp to main, move all changes to separate pr * newline at end of package lock * update version * [temp] print cwd for failing ci * add init to _generated + remove temp cwd printing * add isodate/typing-extensions to setup.py * add azure-core to setup.py * add external link token kind * test source url * black * add is context end to class and remove from single line functions * address comments * update readme * update tspconfig commit * travis comments, fix function special arg indent + remove lstrip from tests * travis comments, update tests to count relatedToLine and isContextEndLine * add relatedline/endcontext count to more tests * [Python APIView] add support for pyproject.toml only packages * add pkginfo to setup.py * remove todo as provides_extra works if optional-dependencies are specified in pyproject.toml * update to get root namespace with source dir path + add tests * add tests for sdist/whl install w setup.py and pyproject * add manifest.in w/ *.md to apistubgentest * fix rebase conflict * fix test * fix test * black * changelog
- Loading branch information
Showing
25 changed files
with
1,086 additions
and
369 deletions.
There are no files selected for viewing
This file contains 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,2 @@ | ||
include *.md | ||
include LICENSE |
This file contains 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
This file contains 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
215 changes: 167 additions & 48 deletions
215
...python-packages/apiview-stub-generator/apistub/_generated/treestyle/parser/_model_base.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
304 changes: 232 additions & 72 deletions
304
...hon-packages/apiview-stub-generator/apistub/_generated/treestyle/parser/_serialization.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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.