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

Use poetry-core from master as the build system #4567

Closed
2 tasks done
ashnair1 opened this issue Sep 28, 2021 · 4 comments
Closed
2 tasks done

Use poetry-core from master as the build system #4567

ashnair1 opened this issue Sep 28, 2021 · 4 comments

Comments

@ashnair1
Copy link
Contributor

ashnair1 commented Sep 28, 2021

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Issue

I wanted to see if the recently merged PR python-poetry/poetry-core#192 can solve #4380.
AFAIK the PR hasn’t made it to a release just yet. So how can I specify the build-system in my pyproject.toml to use the latest poetry-core i.e from its master branch.

@kmorrisCAL
Copy link

kmorrisCAL commented Oct 29, 2021

+1 on this issue/question.

I also tried installing both poetry and poetry-core from their respective master branches, and the &subdirectory=mysubdir parameter was not honored.

@stinodego
Copy link
Contributor

stinodego commented Jan 9, 2022

So how can I specify the build-system in my pyproject.toml to use the latest poetry-core i.e from its master branch.

@sinoroc answered this question in issue #3419:

[build-system]
requires = ["poetry-core @ git+https://github.com/python-poetry/poetry-core.git"]
build-backend = "poetry.core.masonry.api"

I remember having an issue where I needed the master branch of the build system, and the above helped me.

A few months late, but hopefully it helps anyone who lands on this issue.

EDIT: Thanks for the correction! Updated in my post as well for those who won't read and just copy paste the first code they see 😄

@ashnair1
Copy link
Contributor Author

ashnair1 commented Jan 11, 2022

Brilliant. Thanks @stinodego. Minor correction regarding the link. It should be

[build-system]
requires = ["poetry-core @ git+https://github.com/python-poetry/poetry-core.git"]
build-backend = "poetry.core.masonry.api"

Side note:
This does allow you to install dependencies (rooted in subfolders) but not manage them. I'm guessing poetry needs to be updated to do so. But if you add the dependency manually to pyproject.toml you can install it (from source and from .tar.gz).

Copy link

github-actions bot commented Mar 2, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants