-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
poetry-export: add page #18822
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
base: main
Are you sure you want to change the base?
poetry-export: add page #18822
Conversation
@@ -0,0 +1,28 @@ | |||
# poetry export | |||
|
|||
> Export Poetry's lock file to other formats. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> Export Poetry's lock file to other formats. | |
> Export Poetry's lock file to other formats. | |
> Provided by the Export Poetry Plugin. |
# poetry export | ||
|
||
> Export Poetry's lock file to other formats. | ||
> More information: <https://python-poetry.org/docs/cli/#export>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> More information: <https://python-poetry.org/docs/cli/#export>. | |
> More information: <https://github.com/python-poetry/poetry-plugin-export#usage>. |
> Export Poetry's lock file to other formats. | ||
> More information: <https://python-poetry.org/docs/cli/#export>. | ||
|
||
- Export dependencies to a requirements.txt file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Export dependencies to a requirements.txt file: | |
- Export dependencies to a `requirements.txt` file: |
https://github.com/tldr-pages/tldr/blob/main/contributing-guides/style-guide.md#special-cases
|
||
- Export dependencies to a requirements.txt file: | ||
|
||
`poetry export --output {{requirements.txt}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`poetry export --output {{requirements.txt}}` | |
`poetry export {{[-o|--output]}} requirements.txt` |
https://github.com/tldr-pages/tldr/blob/main/contributing-guides/style-guide.md#exceptions
|
||
- Export dependencies including development dependencies: | ||
|
||
`poetry export --dev --output {{requirements-dev.txt}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`poetry export --dev --output {{requirements-dev.txt}}` | |
`poetry export --dev {{[-o|--output]}} {{requirements-dev.txt}}` |
|
||
- Export dependencies without hashes: | ||
|
||
`poetry export --without-hashes --output {{requirements.txt}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`poetry export --without-hashes --output {{requirements.txt}}` | |
`poetry export --without-hashes {{[-o|--output]}} {{requirements.txt}}` |
|
||
- Export dependencies for a specific format: | ||
|
||
`poetry export --format {{requirements.txt}} --output {{requirements.txt}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`poetry export --format {{requirements.txt}} --output {{requirements.txt}}` | |
`poetry export {{[-f|--format]}} {{requirements.txt|constraints.txt}} {{[-o|--output]}} {{requirements.txt}}` |
|
||
- Export only specific dependency groups: | ||
|
||
`poetry export --only {{main}} --output {{requirements.txt}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`poetry export --only {{main}} --output {{requirements.txt}}` | |
`poetry export --only {{main}} {{[-o|--output]}} {{requirements.txt}}` |
|
||
- Display help: | ||
|
||
`poetry export --help` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`poetry export --help` | |
`poetry export {{[-h|--help]}}` |
Adds documentation for
poetry export
command.Examples included:
#18042