diff options
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -16,6 +16,7 @@ # limitations under the License. import os + def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() @@ -25,13 +26,13 @@ METADATA = { 'version': 0.1, 'author': 'Paulo Henrique Silva <ph.silva@gmail.com>, Hamilton Kibbe <ham@hamiltonkib.be>', 'author_email': "ph.silva@gmail.com, ham@hamiltonkib.be", - 'description': ("Utilities to handle Gerber (RS-274X) files."), + 'description': "Utilities to handle Gerber (RS-274X) files.", 'license': "Apache", 'keywords': "pcb gerber tools", 'url': "http://github.com/curtacircuitos/pcb-tools", 'packages': ['gerber', 'gerber.render'], 'long_description': read('README.md'), - 'classifiers':[ + 'classifiers': [ "Development Status :: 3 - Alpha", "Topic :: Utilities", "License :: OSI Approved :: Apple Public Source License", @@ -40,6 +41,11 @@ METADATA = { SETUPTOOLS_METADATA = { 'install_requires': ['cairocffi==0.6'], + 'entry_points': { + 'console_scripts': [ + 'gerber-render = gerber.__main__:main', + ], + }, } @@ -53,9 +59,10 @@ def install(): except ImportError: from sys import stderr stderr.write('Could not import setuptools, using distutils') - stderr.write('NOTE: You will need to install dependencies manualy') + stderr.write('NOTE: You will need to install dependencies manually') from distutils.core import setup setup(**METADATA) + if __name__ == '__main__': install() |