Skip to content

Commit

Permalink
Choose proper Brython versions based on Python ver
Browse files Browse the repository at this point in the history
  • Loading branch information
rayluo committed Oct 21, 2023
1 parent 0724955 commit b51ca79
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
9 changes: 8 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b51ca79

Please sign in to comment.