diff --git a/__manifest__.py b/__manifest__.py deleted file mode 100644 index 30cccbf..0000000 --- a/__manifest__.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright 2019 Fabien Bourgeois -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . - -{ - 'name': 'HY base module and macros', - 'summary': 'Hylang base module and macros', - 'description': """ Hylang base module and macros """, - 'version': '12.0.0.1.0', - 'category': 'HY', - 'author': 'Fabien Bourgeois', - 'license': 'AGPL-3', - 'application': False, - 'installable': True, - 'depends': ['base'], - 'data': [], - "external_dependencies": {'python' : ['hy']} -} diff --git a/__init__.py b/hy_odoo/__init__.py similarity index 92% rename from __init__.py rename to hy_odoo/__init__.py index f19445b..ca6648c 100644 --- a/__init__.py +++ b/hy_odoo/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright 2019 Fabien Bourgeois +# Copyright 2020 Fabien Bourgeois # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as diff --git a/hy_odoo/__init__.pyc b/hy_odoo/__init__.pyc new file mode 100644 index 0000000..02efbd7 Binary files /dev/null and b/hy_odoo/__init__.pyc differ diff --git a/hy_odoo/__pycache__/__init__.cpython-38.pyc b/hy_odoo/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000..9e09ffb Binary files /dev/null and b/hy_odoo/__pycache__/__init__.cpython-38.pyc differ diff --git a/odoo.hy b/hy_odoo/odoo.hy similarity index 97% rename from odoo.hy rename to hy_odoo/odoo.hy index 4e8e0af..5085b3a 100644 --- a/odoo.hy +++ b/hy_odoo/odoo.hy @@ -1,6 +1,6 @@ ;; -*- coding: utf-8 -*- ;; -;; Copyright 2019 Fabien Bourgeois +;; Copyright 2019-2020 Fabien Bourgeois ;; ;; This program is free software: you can redistribute it and/or modify ;; it under the terms of the GNU Affero General Public License as @@ -18,7 +18,8 @@ " Odoo macros " (import [os [path]]) -(import logging [odoo.addons.hy_base.xml [*]]) +(import logging) +(import [hy-odoo.xml [xmlroot xmln]]) (setv logger (.getLogger logging __name__)) (defmacro if-python2 [python2-form python3-form] diff --git a/hy_odoo/odoo.pyc b/hy_odoo/odoo.pyc new file mode 100644 index 0000000..5a123e3 Binary files /dev/null and b/hy_odoo/odoo.pyc differ diff --git a/xml.hy b/hy_odoo/xml.hy similarity index 100% rename from xml.hy rename to hy_odoo/xml.hy diff --git a/hy_odoo/xml.pyc b/hy_odoo/xml.pyc new file mode 100644 index 0000000..19cf94a Binary files /dev/null and b/hy_odoo/xml.pyc differ diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..528e4e2 --- /dev/null +++ b/setup.py @@ -0,0 +1,24 @@ +from setuptools import setup, find_packages + +setup( + name="hy_odoo", + version="0.1", + packages=find_packages(), + package_data={ + 'hy_odoo': ['*.hy'], + }, + install_requires=["hy==0.17.0"], + author="Fabien Bourgeois", + author_email="fabien@yaltik.com", + description="HY functions and macros for Odoo", + keywords="odoo hy hylang", + url="https://git.yaltik.net/Yaltik/hy_odoo", + classifiers=[ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: MPL2 License', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + ] +)