Skip to content

Instantly share code, notes, and snippets.

@ianjosephwilson
Last active December 13, 2015 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianjosephwilson/4949829 to your computer and use it in GitHub Desktop.
Save ianjosephwilson/4949829 to your computer and use it in GitHub Desktop.
Simple setup.py for helloWorld trytond module.
#!/usr/bin/env python
from setuptools import setup
import re
info = eval(open('__tryton__.py').read())
major_version, minor_version, _ = info.get('version', '0.0.1').split('.', 2)
major_version = int(major_version)
minor_version = int(minor_version)
requires = []
setup(name='hello',
version=info.get('version', '0.0.1'),
description=info.get('description', ''),
author=info.get('author', ''),
author_email=info.get('email', ''),
url=info.get('website', ''),
download_url="",
package_dir={'trytond.modules.hello': '.'},
packages=[
'trytond.modules.hello',
],
package_data={
'trytond.modules.hello': info.get('xml', []) \
+ info.get('translation', []) \
+ ['*.odt', 'icons/*.svg'],
},
classifiers=[
],
license='GPL-3',
install_requires=[],
zip_safe=False,
entry_points="""
[trytond.modules]
hello = trytond.modules.hello
""",
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment