diff --git a/Makefile b/Makefile index e05e82c47b8..4610188cf3c 100644 --- a/Makefile +++ b/Makefile @@ -188,7 +188,7 @@ debug : nano: FORCE # smallest version for flare - CURRENT_MODE="_nano" PYODIDE_PACKAGES="False" make + CURRENT_MODE="_nano" PYODIDE_PACKAGES="pyjwt" make pico: FORCE # smallest possible python version diff --git a/cpython/Setup_nano.local b/cpython/Setup_nano.local index b1242f13c7b..224a6b6ee3c 100644 --- a/cpython/Setup_nano.local +++ b/cpython/Setup_nano.local @@ -12,7 +12,7 @@ math mathmodule.c _math.c # -lm # math library functions, e.g. sin() _contextvars _contextvarsmodule.c _struct _struct.c # binary structure packing/unpacking, needed for struct and struct is needed by zipfile _random _randommodule.c # Random number generator -#_bisect _bisectmodule.c # Bisection algorithms +_bisect _bisectmodule.c # Bisection algorithms #_datetime _datetimemodule.c #_heapq _heapqmodule.c #_json _json.c @@ -35,7 +35,7 @@ _sha256 sha256module.c _sha512 sha512module.c _sha3 _sha3/sha3module.c _md5 md5module.c -#_blake2 _blake2/blake2module.c _blake2/blake2b_impl.c _blake2/blake2s_impl.c +_blake2 _blake2/blake2module.c _blake2/blake2b_impl.c _blake2/blake2s_impl.c # If we put this directly in the next line, makesetup incorrectly views the # line as a definition line, instead of specifying a module. We bypass this diff --git a/cpython/remove_modules_nano.txt b/cpython/remove_modules_nano.txt index 416c4b6a558..879273deb01 100644 --- a/cpython/remove_modules_nano.txt +++ b/cpython/remove_modules_nano.txt @@ -38,7 +38,6 @@ distutils doctest.py dummy_threading.py _dummy_thread.py -email filecmp.py fileinput.py formatter.py @@ -49,9 +48,6 @@ getpass.py gettext.py glob.py gzip.py -hmac.py -html -http imaplib.py imghdr.py imp.py @@ -91,7 +87,6 @@ pydoc_data pydoc.py _pyio.py queue.py -quopri.py runpy.py sched.py secrets.py @@ -114,7 +109,6 @@ sysconfig.py tabnanny.py tarfile.py telnetlib.py -tempfile.py test this.py _threading_local.py @@ -124,7 +118,6 @@ trace.py tty.py unittest uuid.py -uu.py wave.py wsgiref xdrlib.py diff --git a/packages/pyjwt/meta.yaml b/packages/pyjwt/meta.yaml new file mode 100644 index 00000000000..cf99c898200 --- /dev/null +++ b/packages/pyjwt/meta.yaml @@ -0,0 +1,9 @@ +package: + name: pyjwt + version: 2.1.0 +source: + sha256: fba44e7898bbca160a2b2b501f492824fc8382485d3a6f11ba5d0c1937ce6130 + url: https://files.pythonhosted.org/packages/0c/c6/3cdc7cb1289b35186fd7fd61836b6d83632ca0f7eee552516777361667b1/PyJWT-2.1.0.tar.gz +test: + imports: + - pyjwt diff --git a/run_docker b/run_docker index 700f6c91a75..1c0622e4422 100755 --- a/run_docker +++ b/run_docker @@ -29,7 +29,7 @@ function error() { } -PYODIDE_IMAGE_TAG="15" +PYODIDE_IMAGE_TAG="151" PYODIDE_PREBUILT_IMAGE_TAG="0.17.0" DEFAULT_PYODIDE_DOCKER_IMAGE="pyodide/pyodide-env:${PYODIDE_IMAGE_TAG}" DEFAULT_PYODIDE_SYSTEM_PORT="8000"