File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Poetry export plugin
1+ # Poetry Plugin: Export
22
33This package is a plugin that allows the export of locked packages to various formats.
44
@@ -12,19 +12,19 @@ This plugin provides the same features as the existing `export` command of Poetr
1212The easiest way to install the ` export ` plugin is via the ` plugin add ` command of Poetry.
1313
1414``` bash
15- poetry plugin add poetry-export- plugin
15+ poetry plugin add poetry-plugin-export
1616```
1717
1818If you used ` pipx ` to install Poetry you can add the plugin via the ` pipx inject ` command.
1919
2020``` bash
21- pipx inject poetry poetry-export- plugin
21+ pipx inject poetry poetry-plugin-export
2222```
2323
2424Otherwise, if you used ` pip ` to install Poetry you can add the plugin packages via the ` pip install ` command.
2525
2626``` bash
27- pip install poetry-export- plugin
27+ pip install poetry-plugin-export
2828```
2929
3030
Original file line number Diff line number Diff line change 11[tool .poetry ]
2- name = " poetry-export- plugin"
2+ name = " poetry-plugin-export "
33version = " 0.2.1"
44description = " Poetry plugin to export the dependencies to various formats"
55authors = [" Sébastien Eustace <sebastien@eustace.io>" ]
66license = " MIT"
77readme = " README.md"
88
99packages = [
10- { include = " poetry_export_plugin " , from = " src" }
10+ { include = " poetry_plugin_export " , from = " src" }
1111]
1212
1313include = [
@@ -25,7 +25,7 @@ pytest-mock = "^3.6.1"
2525poetry = {git = " https://github.com/abn/poetry.git" , rev = " use-export-plugin" }
2626
2727[tool .poetry .plugins ."poetry .application .plugin" ]
28- export = " poetry_export_plugin .plugins:ExportApplicationPlugin"
28+ export = " poetry_plugin_export .plugins:ExportApplicationPlugin"
2929
3030[tool .black ]
3131target-version = [' py37' ]
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 33from cleo .helpers import option
44from poetry .console .commands .installer_command import InstallerCommand
55
6- from poetry_export_plugin .exporter import Exporter
6+ from poetry_plugin_export .exporter import Exporter
77
88
99class ExportCommand (InstallerCommand ):
@@ -73,6 +73,7 @@ def handle(self) -> None:
7373 )
7474
7575 exporter = Exporter (self .poetry )
76+ print (exporter , "<<<<<<<" )
7677 exporter .only_groups (list (self .activated_groups ))
7778 exporter .with_extras (self .option ("extras" ))
7879 exporter .with_hashes (not self .option ("without-hashes" ))
File renamed without changes.
Original file line number Diff line number Diff line change 44
55from poetry .plugins .application_plugin import ApplicationPlugin
66
7- from poetry_export_plugin .console .commands .export import ExportCommand
7+ from poetry_plugin_export .console .commands .export import ExportCommand
88
99
1010if TYPE_CHECKING :
Original file line number Diff line number Diff line change 77
88from poetry .core .packages .package import Package
99
10- from poetry_export_plugin .exporter import Exporter
10+ from poetry_plugin_export .exporter import Exporter
1111from tests .markers import MARKER_PY
1212
1313
You can’t perform that action at this time.
0 commit comments