diff --git a/pyproject.toml b/pyproject.toml index 516c2de..b1c0c9f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,11 +30,6 @@ dependencies = [ ] -[project.entry-points."rattail.subcommands"] -export-woocommerce = "rattail_woocommerce.commands:ExportWooCommerce" -import-woocommerce = "rattail_woocommerce.commands:ImportWooCommerce" - - [project.entry-points."rattail.typer_imports"] rattail_woocommerce = "rattail_woocommerce.commands" diff --git a/rattail_woocommerce/commands.py b/rattail_woocommerce/commands.py index cb547a1..816af6c 100644 --- a/rattail_woocommerce/commands.py +++ b/rattail_woocommerce/commands.py @@ -26,7 +26,7 @@ Rattail/WooCommerce Commands import typer -from rattail.commands import rattail_typer, ImportSubcommand +from rattail.commands import rattail_typer from rattail.commands.typer import importer_command, typer_get_runas_user from rattail.commands.importing import ImportCommandHandler @@ -65,21 +65,3 @@ def import_woocommerce( import_handler_spec='rattail_woocommerce.importing.woocommerce:FromWooCommerceToRattail') kwargs['user'] = typer_get_runas_user(ctx) handler.run(kwargs, progress=progress) - - -class ExportWooCommerce(ImportSubcommand): - """ - Export data to WooCommerce - """ - name = 'export-woocommerce' - description = __doc__.strip() - handler_spec = 'rattail_woocommerce.woocommerce.importing.rattail:FromRattailToWooCommerce' - - -class ImportWooCommerce(ImportSubcommand): - """ - Import data from WooCommerce - """ - name = 'import-woocommerce' - description = __doc__.strip() - handler_spec = 'rattail_woocommerce.importing.woocommerce:FromWooCommerceToRattail'