-
Notifications
You must be signed in to change notification settings - Fork 34
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
Issue Using Poetry in Non-package mode #39
Comments
It seems the value of Does |
Sorry for the delay, but I finally got around to testing that command out. It doesn't work, and I don't think I can get it to. From what I can tell, this call to pip requires the following structure: However, Poetry creates the following structure for dependencies in the "docs" group shown below: I looked around a bit and I am unaware of a way to map this structure into the one shown above, and the two don't seem particularly compatible. Now that I know the command giving me the error, it seems that pip is automatically invoking poetry for some reason in a way that requires package mode, causing the previous error. I believe all this part is doing is grabbing the dependencies necessary to build the sphinx page, and if so that could be done with poetry, as I will explain below. If so, would it be possible to add support to poetry? Create a dependency group and add sphinx to it, this can be done to add each additional dependency to the docs group: Install all packages only from the docs group: (to show dependencies replace "install" with "show") To detect if a project uses poetry you could run: "poetry show", which fails with no pyproject.toml file or if [tool.poetry] can't be found. Would it be reasonable to add a flag/setting to the interface that runs the install command instead using poetry instead of the "pip install .[docs]" method? |
I have been trying to use this to deploy sphinx pages automatically. The issue seems to involve loading requirements from my pyproject.toml function, which was mostly generated using Poetry. For my use case I didn't want to run Poetry in package mode, as I didn't see the value in having the code available from Pypi. This, however, seems to make poetry fail to build the package (as it should, I just don't think this should be invoked), and I can't figure out why this issue is occurring or how to avoid it. I tried messing with some optional arguments, but they didn't seem to help.
I have included a link to my testing repo below.
https://github.com/rhit-mierowir/TestingGithub/blob/main/.github/workflows/sphinx-to-GHPages.yml
I think the error is happening here, and I am not sure what to do about it.
![image](https://private-user-images.githubusercontent.com/123596818/329041586-666808e3-1c22-4f68-bec0-3b269511ab07.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM2ODg3OTQsIm5iZiI6MTcyMzY4ODQ5NCwicGF0aCI6Ii8xMjM1OTY4MTgvMzI5MDQxNTg2LTY2NjgwOGUzLTFjMjItNGY2OC1iZWMwLTNiMjY5NTExYWIwNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxNVQwMjIxMzRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yZGQ1ZDY3ZGI3MDNlOWQ0M2RlMGI3Yzg4OGEzYzgzYzM3NTg2NmE1YmZiNDNmNTIwZmZjOGRkNjY2NDk2MmY2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.4PfF8egcDQFXgXo-RyIFWtlOWsVb-Q_odk2Sxc2TTi8)
This is the error message I get:
![image](https://private-user-images.githubusercontent.com/123596818/329041737-d50a08be-ecc0-4406-82e4-67fc45d11819.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM2ODg3OTQsIm5iZiI6MTcyMzY4ODQ5NCwicGF0aCI6Ii8xMjM1OTY4MTgvMzI5MDQxNzM3LWQ1MGEwOGJlLWVjYzAtNDQwNi04MmU0LTY3ZmM0NWQxMTgxOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjI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0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.ND9cZmKKo7RilDkSDjZYxJ3lQpx8iTtX6Q9dqH7FMFc)
...
Is there a way to compile sphinx in a non-package mode?
The text was updated successfully, but these errors were encountered: