From b51ca797b177f65169a6833cab384c559ece821b Mon Sep 17 00:00:00 2001 From: Ray Luo Date: Sun, 24 Sep 2023 00:02:59 -0700 Subject: [PATCH] Choose proper Brython versions based on Python ver --- README.md | 4 ++++ setup.cfg | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f948ce8..6b30527 100644 --- a/README.md +++ b/README.md @@ -153,6 +153,10 @@ However, in reality there are some limitations outside of the control of `brip`. Consequently, only those packages written in pure Python *and its entire dependency chain* written in pure Python, would work in Brython. +* As of this writing, Brython 3.10.5 does not support converting + [namespace packages](https://packaging.python.org/en/latest/guides/packaging-namespace-packages/) + into a loadable javascript file. + * Sometimes, even pure Python package might not work in Brython, due to some subtle [differences between Brython and CPython](https://brython.info/static_doc/en/stdlib.html). diff --git a/setup.cfg b/setup.cfg index a8c7f58..3b4bc87 100644 --- a/setup.cfg +++ b/setup.cfg @@ -21,15 +21,22 @@ classifiers = Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.10 + Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 # NOTE: Settings of this section below this line should not need to be changed long_description = file: README.md [options] +python_requires = >=3.7 install_requires = # See also https://setuptools.readthedocs.io/en/latest/userguide/quickstart.html#dependency-management - brython>=3.7.5,<4 # The BFS format was first introduced in brython 3.7.5 + + brython>=3.7.5,<=3.10.5; python_version>='3.7' and python_version<='3.9' # The BFS format was first introduced in brython 3.7.5 + brython>=3.10.6; python_version>='3.10' # Brython 3.10.6+ uses the "match" syntax that requires Python 3.10+ + pip>=1.1 # We need "-t" introduced in pip 1.1 https://github.com/pypa/pip/commit/176d3a266313d69c6303381907cb864464cf4b3a # NOTE: Settings of this section below this line should not need to be changed