Skip to content

Commit

Permalink
python-stdlib/datetime: add new module
Browse files Browse the repository at this point in the history
  • Loading branch information
lorcap committed Sep 26, 2021
1 parent 3c383f6 commit 1b61500
Show file tree
Hide file tree
Showing 8 changed files with 1,177 additions and 6,184 deletions.
445 changes: 445 additions & 0 deletions python-stdlib/datetime/datetime.py

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions python-stdlib/datetime/metadata.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
srctype = cpython
type = module
version = 2.0.0
author = Lorenzo Cappelletti
24 changes: 24 additions & 0 deletions python-stdlib/datetime/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import sys

# Remove current dir from sys.path, otherwise setuptools will peek up our
# module instead of system's.
sys.path.pop(0)
from setuptools import setup

sys.path.append("..")
import sdist_upip

setup(
name="micropython-datetime",
version="2.0.0",
description="datetime module for MicroPython",
long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.",
url="https://github.com/micropython/micropython-lib",
author="micropython-lib Developers",
author_email="micro-python@googlegroups.com",
maintainer="micropython-lib Developers",
maintainer_email="micro-python@googlegroups.com",
license="MIT",
cmdclass={"sdist": sdist_upip.sdist},
py_modules=["datetime"],
)

0 comments on commit 1b61500

Please sign in to comment.