]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Switch to a function for const and package it. 0.1.5
authorScott Shawcroft <scott@tannewt.org>
Fri, 29 Jun 2018 20:40:26 +0000 (13:40 -0700)
committerScott Shawcroft <scott@tannewt.org>
Fri, 29 Jun 2018 20:40:49 +0000 (13:40 -0700)
setup.py
src/micropython.py [changed mode: 0644->0755]

index aace60a2b61d7b03dc36a2794d25c321ca7f3220..19eb99af7acf92766e471c134873de87991fb42e 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -39,7 +39,7 @@ setup(
         'microcontroller'
     ],
     # If your package is a single module, use this instead of 'packages':
         'microcontroller'
     ],
     # If your package is a single module, use this instead of 'packages':
-    py_modules=['bitbangio', 'board', 'busio', 'digitalio'],
+    py_modules=['bitbangio', 'board', 'busio', 'digitalio', 'micropython'],
     install_requires=['Adafruit-GPIO'],
     license='MIT',
     classifiers=[
     install_requires=['Adafruit-GPIO'],
     license='MIT',
     classifiers=[
old mode 100644 (file)
new mode 100755 (executable)
index 7aaaca6..b5af9b3
@@ -1,3 +1,2 @@
-class const:
-    def __new__(self, x):
-        return x
+def const(x):
+    return x