]> git.scottworley.com Git - snek/commitdiff
Amir Rachum's entry_points example from https://amir.rachum.com/blog/2017/07/28/pytho...
authorScott Worley <scottworley@scottworley.com>
Thu, 11 Jun 2020 21:07:58 +0000 (14:07 -0700)
committerScott Worley <scottworley@scottworley.com>
Thu, 11 Jun 2020 21:09:26 +0000 (14:09 -0700)
setup.py [new file with mode: 0644]
snek.py [new file with mode: 0644]

diff --git a/setup.py b/setup.py
new file mode 100644 (file)
index 0000000..996b5aa
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,10 @@
+from setuptools import setup
+
+setup(
+    name='snek',
+    entry_points={
+        'console_scripts': [
+            'snek = snek:main',
+        ],
+    }
+)
diff --git a/snek.py b/snek.py
new file mode 100644 (file)
index 0000000..36ce8ee
--- /dev/null
+++ b/snek.py
@@ -0,0 +1,13 @@
+ascii_snek = """\
+    --..,_                     _,.--.
+       `'.'.                .'`__ o  `;__.
+          '.'.            .'.'`  '---'`  `
+            '.`'--....--'`.'
+              `'--....--'`
+"""
+
+def main():
+    print(ascii_snek)
+    
+if __name__ == '__main__':
+    main()