Compare commits

...

2 commits

Author SHA1 Message Date
Lance Edgar 06e58f3606 docs: use markdown for readme file 2024-09-13 18:18:08 -05:00
Lance Edgar 58188601bc fix: remove legacy command definitions 2024-07-01 12:16:35 -05:00
4 changed files with 13 additions and 39 deletions

11
README.md Normal file
View file

@ -0,0 +1,11 @@
# rattail-woocommerce
Rattail is a retail software framework, released under the GNU General Public
License.
This package contains software interfaces for the
[WooCommerce](https://woocommerce.com/) system.
Please see the [Rattail Project](https://rattailproject.org/) for more
information.

View file

@ -1,14 +0,0 @@
rattail-woocommerce
===================
Rattail is a retail software framework, released under the GNU General Public
License.
This package contains software interfaces for the `WooCommerce`_ system.
.. _WooCommerce: https://woocommerce.com/
Please see the `Rattail Project`_ for more information.
.. _`Rattail Project`: https://rattailproject.org/

View file

@ -8,7 +8,7 @@ build-backend = "hatchling.build"
name = "rattail-woocommerce"
version = "0.2.0"
description = "Rattail Software Interfaces for WooCommerce"
readme = "README.rst"
readme = "README.md"
authors = [{name = "Lance Edgar", email = "lance@edbob.org"}]
license = {text = "GNU GPL v3+"}
classifiers = [
@ -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"

View file

@ -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'