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

[Python APIView] add support for pyproject.toml managed packages #1

Draft
wants to merge 69 commits into
base: swathipil/pyapi/add-py-tspconfig
Choose a base branch
from

Conversation

swathipil
Copy link
Owner

@swathipil swathipil commented Feb 4, 2025

TODO: Merge after Azure#9146 has been merged.

fixes: Azure#9617

Closed Azure#9692 in favor of this PR. Rebased on top of tree token parser updates (Azure#9146).

  • Added support for pyproject.toml only packages.
  • Added tests for sdist/whl install with both setup.py and pyproject.toml, including optional dependencies install.

@swathipil swathipil changed the title Swathipil/pyapi mergeafter tt/pyproject toml only2 [Python APIView] add support for pyproject.toml managed packages Feb 4, 2025
@@ -201,6 +200,12 @@ def _find_modules(self, pkg_root_path):
# Add current path as module name if _init.py is present
if INIT_PY_FILE in files:
module_name = os.path.relpath(root, pkg_root_path).replace(os.path.sep, ".")
# If namespace has not been set yet, try to find the first __init__.py that's not purely for extension or tests.
Copy link
Owner Author

Choose a reason for hiding this comment

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

Checking for first non-extension init.py, as per @scbedd's advice.

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.

1 participant