summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@gmail.com>2019-11-27 11:43:19 -0300
committerGitHub <noreply@github.com>2019-11-27 11:43:19 -0300
commit77a156cea2411411922d0a755e4b4efab2a1b3d0 (patch)
tree4233452d40a23ab99d0aab5f977e63df632d3c70 /setup.py
parent0024c0b045a29621845f4f1b5ee1283e32e38887 (diff)
parent5288a8314b535d455e8635ee9a3a537cd795845b (diff)
downloadgerbonara-77a156cea2411411922d0a755e4b4efab2a1b3d0.tar.gz
gerbonara-77a156cea2411411922d0a755e4b4efab2a1b3d0.tar.bz2
gerbonara-77a156cea2411411922d0a755e4b4efab2a1b3d0.zip
Merge pull request #102 from chintal/script
Make __main__ functional again and install a script entry point.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index 1df0868..0e43155 100644
--- a/setup.py
+++ b/setup.py
@@ -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()