Skip to content

Commit

Permalink
rename package to poetry-plugin-export
Browse files Browse the repository at this point in the history
  • Loading branch information
abn committed Apr 5, 2022
1 parent de45a95 commit 9c48bd6
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Poetry export plugin
# Poetry Plugin: Export

This package is a plugin that allows the export of locked packages to various formats.

Expand All @@ -12,19 +12,19 @@ This plugin provides the same features as the existing `export` command of Poetr
The easiest way to install the `export` plugin is via the `plugin add` command of Poetry.

```bash
poetry plugin add poetry-export-plugin
poetry plugin add poetry-plugin-export
```

If you used `pipx` to install Poetry you can add the plugin via the `pipx inject` command.

```bash
pipx inject poetry poetry-export-plugin
pipx inject poetry poetry-plugin-export
```

Otherwise, if you used `pip` to install Poetry you can add the plugin packages via the `pip install` command.

```bash
pip install poetry-export-plugin
pip install poetry-plugin-export
```


Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[tool.poetry]
name = "poetry-export-plugin"
name = "poetry-plugin-export"
version = "0.2.1"
description = "Poetry plugin to export the dependencies to various formats"
authors = ["Sébastien Eustace <sebastien@eustace.io>"]
license = "MIT"
readme = "README.md"

packages = [
{ include = "poetry_export_plugin", from = "src" }
{ include = "poetry_plugin_export", from = "src" }
]

include = [
Expand All @@ -25,7 +25,7 @@ pytest-mock = "^3.6.1"
poetry = {git = "https://github.com/abn/poetry.git", rev = "use-export-plugin"}

[tool.poetry.plugins."poetry.application.plugin"]
export = "poetry_export_plugin.plugins:ExportApplicationPlugin"
export = "poetry_plugin_export.plugins:ExportApplicationPlugin"

[tool.black]
target-version = ['py37']
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from cleo.helpers import option
from poetry.console.commands.installer_command import InstallerCommand

from poetry_export_plugin.exporter import Exporter
from poetry_plugin_export.exporter import Exporter


class ExportCommand(InstallerCommand):
Expand Down Expand Up @@ -73,6 +73,7 @@ def handle(self) -> None:
)

exporter = Exporter(self.poetry)
print(exporter, "<<<<<<<")
exporter.only_groups(list(self.activated_groups))
exporter.with_extras(self.option("extras"))
exporter.with_hashes(not self.option("without-hashes"))
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from poetry.plugins.application_plugin import ApplicationPlugin

from poetry_export_plugin.console.commands.export import ExportCommand
from poetry_plugin_export.console.commands.export import ExportCommand


if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion tests/console/test_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from poetry.core.packages.package import Package

from poetry_export_plugin.exporter import Exporter
from poetry_plugin_export.exporter import Exporter
from tests.markers import MARKER_PY


Expand Down

0 comments on commit 9c48bd6

Please sign in to comment.