From e4198053de01dbf5335d9b4187c3f266172b6809 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Fri, 29 Jun 2018 13:40:26 -0700 Subject: [PATCH] Switch to a function for const and package it. --- setup.py | 2 +- src/micropython.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) mode change 100644 => 100755 src/micropython.py diff --git a/setup.py b/setup.py index aace60a..19eb99a 100755 --- a/setup.py +++ b/setup.py @@ -39,7 +39,7 @@ setup( '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=[ diff --git a/src/micropython.py b/src/micropython.py old mode 100644 new mode 100755 index 7aaaca6..b5af9b3 --- a/src/micropython.py +++ b/src/micropython.py @@ -1,3 +1,2 @@ -class const: - def __new__(self, x): - return x +def const(x): + return x -- 2.49.0