feat: Display Python package version from poetry (#153)

This commit is contained in:
Kevin Lane
2019-08-15 13:41:06 -07:00
committed by Matan Kushner
parent e250e71019
commit e262187f4c
2 changed files with 50 additions and 10 deletions
+4 -2
View File
@@ -348,13 +348,15 @@ symbol = "🤖 "
## Package Version
The `package` module is shown when the current directory is the repository for a
package, and shows its current version. The module currently supports `npm` and
`cargo` packages.
package, and shows its current version. The module currently supports `npm`, `cargo`,
and `poetry` packages.
- **npm** The `npm` package version is extracted from the `package.json` present
in the current directory
- **cargo** The `cargo` package version is extracted from the `Cargo.toml` present
in the current directory
- **poetry** The `poetry` package version is extracted from the `pyproject.toml` present
in the current directory
> ⚠️ The version being shown is that of the package whose source code is in your
> current directory, not your package manager.