Skip to content

Commit 1387950

Browse files
author
Paul Sokolovsky
committed
time: Add dummy "time" module, following renaming builtin to "utime".
1 parent 8b2a51a commit 1387950

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

time/metadata.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
srctype = dummy
2+
type = module
3+
version = 0.0.1

time/setup.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import sys
2+
# Remove current dir from sys.path, otherwise setuptools will peek up our
3+
# module instead of system.
4+
sys.path.pop(0)
5+
from setuptools import setup
6+
7+
8+
setup(name='micropython-time',
9+
version='0.0.1',
10+
description='Dummy time module for MicroPython',
11+
long_description='This is a dummy implementation of a module for MicroPython standard library.\nIt contains zero or very little functionality, and primarily intended to\navoid import errors (using idea that even if an application imports a\nmodule, it may be not using it onevery code path, so may work at least\npartially). It is expected that more complete implementation of the module\nwill be provided later. Please help with the development if you are\ninterested in this module.',
12+
url='https://github.com/micropython/micropython/issues/405',
13+
author='MicroPython Developers',
14+
author_email='micro-python@googlegroups.com',
15+
maintainer='MicroPython Developers',
16+
maintainer_email='micro-python@googlegroups.com',
17+
license='MIT',
18+
py_modules=['time'])

time/time.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from utime import *

0 commit comments

Comments
 (0)