kopia lustrzana https://github.com/micropython/micropython-lib
fnmatch: Add new metadata.
rodzic
80bd2398ad
commit
326cd10530
|
@ -0,0 +1,4 @@
|
||||||
|
srctype = cpython
|
||||||
|
type = module
|
||||||
|
version = 0.5.1
|
||||||
|
depends = os, os.path, posixpath, re-pcre
|
|
@ -1,23 +1,19 @@
|
||||||
import sys
|
import sys
|
||||||
# Remove current dir from sys.path, otherwise distutils will peek up our
|
# Remove current dir from sys.path, otherwise setuptools will peek up our
|
||||||
# module instead of system.
|
# module instead of system.
|
||||||
sys.path.pop(0)
|
sys.path.pop(0)
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
|
|
||||||
def desc_dummy(name):
|
setup(name='micropython-fnmatch',
|
||||||
return 'Dummy %s module to MicroPython' % name
|
version='0.5.1',
|
||||||
def desc_cpython(name):
|
description='CPython fnmatch module ported to MicroPython',
|
||||||
return 'CPython %s module ported to MicroPython' % name
|
long_description='This is a module ported from CPython standard library to be compatible with\nMicroPython interpreter. Usually, this means applying small patches for\nfeatures not supported (yet, or at all) in MicroPython. Sometimes, heavier\nchanges are required. Note that CPython modules are written with availability\nof vast resources in mind, and may not work for MicroPython ports with\nlimited heap. If you are affected by such a case, please help reimplement\nthe module from scratch.',
|
||||||
|
|
||||||
NAME = 'fnmatch'
|
|
||||||
|
|
||||||
setup(name='micropython-' + NAME,
|
|
||||||
version='0.5',
|
|
||||||
description=desc_cpython(NAME),
|
|
||||||
url='https://github.com/micropython/micropython/issues/405',
|
url='https://github.com/micropython/micropython/issues/405',
|
||||||
author='CPython Developers',
|
author='CPython Developers',
|
||||||
|
author_email='python-dev@python.org',
|
||||||
maintainer='MicroPython Developers',
|
maintainer='MicroPython Developers',
|
||||||
maintainer_email='micro-python@googlegroups.com',
|
maintainer_email='micro-python@googlegroups.com',
|
||||||
license='Python',
|
license='Python',
|
||||||
py_modules=[NAME])
|
py_modules=['fnmatch'],
|
||||||
|
install_requires=['micropython-os', 'micropython-os.path', 'micropython-posixpath', 'micropython-re-pcre'])
|
||||||
|
|
Ładowanie…
Reference in New Issue