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

[document] Mention poetry.toml #5492

Merged
merged 5 commits into from
May 23, 2022
Merged

[document] Mention poetry.toml #5492

merged 5 commits into from
May 23, 2022

Conversation

majiang
Copy link
Contributor

@majiang majiang commented Apr 26, 2022

See #2937 (comment)

Pull Request Check List

Resolves: #issue-number-here

  • Added tests for changed code.
  • Updated documentation for changed code.

docs/configuration.md Outdated Show resolved Hide resolved
@alexchandel
Copy link

Would be really, really convenient if you could put poetry.toml config values in pyproject.toml

@majiang
Copy link
Contributor Author

majiang commented May 5, 2022

I was also a one who thought it is convenient, but after reading finswimmer's comment, the current behavior seems perfectly reasonable, except that this is not documented well.

@abn abn added the area/docs Documentation issues/improvements label May 13, 2022
@github-actions
Copy link

github-actions bot commented May 13, 2022

Deploy preview for website ready!

✅ Preview
https://website-e9wd9fzwu-python-poetry.vercel.app

Built with commit 6356cf5.
This pull request is being automatically deployed with vercel-action

docs/configuration.md Outdated Show resolved Hide resolved
Co-authored-by: Arun Babu Neelicattu <[email protected]>
{{% note %}}
Your local configuration of Poetry application is stored in `poetry.toml` file,
which is separate from `pyproject.toml`.
You should not check-in this file into your repository.
Copy link
Member

Choose a reason for hiding this comment

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

This is not entirely true or enforced. I'd reword it to suggest it is recommended not to commit it as it may contain user specific configuration or sensitive information.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

reworded!

@Secrus
Copy link
Member

Secrus commented May 21, 2022

@majiang just a gentle bump ;) This would be nice addition to our docs.

@b-long
Copy link

b-long commented May 22, 2022

There was no reply to my previous comment, so I'm unsure if anyone saw it.

I'd like to make one more plea for changing the wording. Currently, the PR adds:

Your local configuration of Poetry application is stored in `poetry.toml` file,
which is separate from `pyproject.toml`.

It is recommended you do not check-in this file into your repository
since it may contain user specific or sensitive information.

When working in a shared code base, I find it extremely useful to have a poetry.toml alongside a .vscode/. That way, I can setup teammates quickly, and we all have the same configuration:

cd <project> && poetry install
code .
In the VSCode debugger, select "Python: Debug FastAPI"
Open your browser to http://localhost:8000/docs

I have a small FastAPI project which provides an example of this configuration: https://github.com/b-long/mooseblog .

As I said before, the poetry.toml file with configuration seems to be a popular feature. More people may adopt and love Poetry by learning about this feature (seeing it in open source repositories). Reading some previous discussions people seem to really like using it. For example: #108 (comment)

@Secrus
Copy link
Member

Secrus commented May 22, 2022

There was no reply to my previous comment, so I'm unsure if anyone saw it.

I'd like to make one more plea for changing the wording. Currently, the PR adds:

Your local configuration of Poetry application is stored in `poetry.toml` file,
which is separate from `pyproject.toml`.

It is recommended you do not check-in this file into your repository
since it may contain user specific or sensitive information.

When working in a shared code base, I find it extremely useful to have a poetry.toml alongside a .vscode/. That way, I can setup teammates quickly, and we all have the same configuration...

Hi. We ask for rewording to avoid people showing up and claiming that we are recommending something not secure. poetry.toml may contain credentials to repositories for example. I will add my recommendation on how it could look.

docs/configuration.md Outdated Show resolved Hide resolved
Co-authored-by: Bartosz Sokorski <[email protected]>
@majiang
Copy link
Contributor Author

majiang commented May 23, 2022

committed @Secrus 's suggestion since it is better in that we clearly warn.

docs/configuration.md Outdated Show resolved Hide resolved
@neersighted neersighted merged commit daddf1b into python-poetry:master May 23, 2022
@abn abn mentioned this pull request Jun 6, 2022
Copy link

This pull request 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 Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/docs Documentation issues/improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants