Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
06e58f3606 | ||
![]() |
58188601bc |
11
README.md
Normal file
11
README.md
Normal 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.
|
14
README.rst
14
README.rst
|
@ -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/
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue