[REF]Hy Odoo new package

This commit is contained in:
Fabien BOURGEOIS 2020-03-26 23:31:36 +01:00
parent dff6311d81
commit 2d520c2d8a
9 changed files with 28 additions and 34 deletions

View File

@ -1,31 +0,0 @@
# -*- coding: utf-8 -*-
# Copyright 2019 Fabien Bourgeois <fabien@yaltik.com>
#
# 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 <http://www.gnu.org/licenses/>.
{
'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']}
}

View File

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2019 Fabien Bourgeois <fabien@yaltik.com>
# Copyright 2020 Fabien Bourgeois <fabien@yaltik.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as

BIN
hy_odoo/__init__.pyc Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,6 +1,6 @@
;; -*- coding: utf-8 -*-
;;
;; Copyright 2019 Fabien Bourgeois <fabien@yaltik.com>
;; Copyright 2019-2020 Fabien Bourgeois <fabien@yaltik.com>
;;
;; 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]

BIN
hy_odoo/odoo.pyc Normal file

Binary file not shown.

BIN
hy_odoo/xml.pyc Normal file

Binary file not shown.

24
setup.py Normal file
View File

@ -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',
]
)