Skip to content

Commit 197a538

Browse files
committed
rename package to poetry-plugin-export
1 parent c9a5167 commit 197a538

9 files changed

Lines changed: 11 additions & 10 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Poetry export plugin
1+
# Poetry Plugin: Export
22

33
This 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
1212
The 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

1818
If 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

2424
Otherwise, 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

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[tool.poetry]
2-
name = "poetry-export-plugin"
2+
name = "poetry-plugin-export"
33
version = "0.2.1"
44
description = "Poetry plugin to export the dependencies to various formats"
55
authors = ["Sébastien Eustace <sebastien@eustace.io>"]
66
license = "MIT"
77
readme = "README.md"
88

99
packages = [
10-
{ include = "poetry_export_plugin", from = "src" }
10+
{ include = "poetry_plugin_export", from = "src" }
1111
]
1212

1313
include = [
@@ -25,7 +25,7 @@ pytest-mock = "^3.6.1"
2525
poetry = {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]
3131
target-version = ['py37']
File renamed without changes.
File renamed without changes.

src/poetry_export_plugin/console/commands/export.py renamed to src/poetry_plugin_export/console/commands/export.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from cleo.helpers import option
44
from 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

99
class 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"))
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from 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

1010
if TYPE_CHECKING:

tests/console/test_export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from poetry.core.packages.package import Package
99

10-
from poetry_export_plugin.exporter import Exporter
10+
from poetry_plugin_export.exporter import Exporter
1111
from tests.markers import MARKER_PY
1212

1313

0 commit comments

Comments
 (0)