Skip to content

Commit 7c5bb3d

Browse files
authored
Merge pull request #992 from boriel-basic/build/allow_python_3.11
Build/allow python 3.11
2 parents f34844f + 407a8a1 commit 7c5bb3d

File tree

10 files changed

+239
-262
lines changed

10 files changed

+239
-262
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 1.18.1
2+
current_version = 1.18.2
33

44
[bumpversion:file:src/zxbc/version.py]
55
search = VERSION: Final[str] = "{current_version}"

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
[v1.18.2](https://github.com/boriel-basic/zxbasic/tree/v1.18.1)
2+
===
3+
+ ! Allows installation with `pip install` in python 3.11 environments
4+
+ * Add `hmirror.bas` library
5+
16
[v1.18.1](https://github.com/boriel-basic/zxbasic/tree/v1.18.1)
27
===
38
+ ! Fixes crash on simple cast from i32 to u32 and vice versa

docs/archive.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,28 @@ repository (git).
1010
You can contribute to ZX BASIC by reporting possible bugs or improvement suggestions at the
1111
[forum](http://www.boriel.com/forum) or in social media.
1212

13-
The latest stable version is <span style={{color: "green"}}>**1.18.1**</span>.
13+
The latest stable version is <span style={{color: "green"}}>**1.18.2**</span>.
1414
Click on the desired icon below to download the package suitable for your platform:
1515

1616
* [<img src="https://zxbasic.readthedocs.io/en/docs/img/win32.png" alt="win32zip" width="32px"/>
17-
https://www.boriel.com/files/zxb/zxbasic-1.18.1-win32.zip](https://www.boriel.com/files/zxb/zxbasic-1.18.1-win32.zip)
17+
https://www.boriel.com/files/zxb/zxbasic-1.18.2-win32.zip](https://www.boriel.com/files/zxb/zxbasic-1.18.2-win32.zip)
1818
<br />Windows .exe zip package. No install needed, just uncompress it in a directory of your choice.
1919
<br/>&nbsp;
2020
* [<img src="https://zxbasic.readthedocs.io/en/docs/img/macos.png" alt="macostargz" width="32px"/>
21-
https://www.boriel.com/files/zxb/zxbasic-1.18.1-macos.tar.gz](https://www.boriel.com/files/zxb/zxbasic-1.18.1-macos.tar.gz)
21+
https://www.boriel.com/files/zxb/zxbasic-1.18.2-macos.tar.gz](https://www.boriel.com/files/zxb/zxbasic-1.18.2-macos.tar.gz)
2222
<br />Mac OS x64 package. No install needed, just uncompress it in a directory of your choice (needs Python installed
2323
in your system).
2424
<br/>&nbsp;
2525
* [<img src="https://zxbasic.readthedocs.io/en/docs/img/linux.png" alt="macostargz" width="32px"/>
26-
https://www.boriel.com/files/zxb/zxbasic-1.18.1-linux64.tar.gz](https://www.boriel.com/files/zxb/zxbasic-1.18.1-linux64.tar.gz)
26+
https://www.boriel.com/files/zxb/zxbasic-1.18.2-linux64.tar.gz](https://www.boriel.com/files/zxb/zxbasic-1.18.2-linux64.tar.gz)
2727
<br />Linux x64 binary package. No install needed, just uncompress it in a directory of your choice.
2828
<br/>&nbsp;
2929
* [<img src="https://zxbasic.readthedocs.io/en/docs/img/zip-package.png" alt="zip" width="32px"/>
30-
https://www.boriel.com/files/zxb/zxbasic-1.18.1.zip](https://www.boriel.com/files/zxb/zxbasic-1.18.1.zip)
30+
https://www.boriel.com/files/zxb/zxbasic-1.18.2.zip](https://www.boriel.com/files/zxb/zxbasic-1.18.2.zip)
3131
<br />Windows, Linux, Mac zip package, with python scripts. Requires python installed in your system.
3232
<br/>&nbsp;
3333
* [<img src="https://zxbasic.readthedocs.io/en/docs/img/driver-down.png" alt="tar.gz" width="32px"/>
34-
https://www.boriel.com/files/zxb/zxbasic-1.18.1.tar.gz](https://www.boriel.com/files/zxb/zxbasic-1.18.1.tar.gz)
34+
https://www.boriel.com/files/zxb/zxbasic-1.18.2.tar.gz](https://www.boriel.com/files/zxb/zxbasic-1.18.2.tar.gz)
3535
<br />Windows, Linux, Mac tar.gz package, with python scripts. Requires python installed in your system.
3636

3737
### What's new

poetry.lock

Lines changed: 216 additions & 235 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "zxbasic"
3-
version = "1.18.1"
3+
version = "1.18.2"
44
description = "Boriel's ZX BASIC Compiler"
55
authors = ["Jose Rodriguez <[email protected]>"]
66
license = "AGPL-3.0-or-later"
@@ -14,7 +14,7 @@ classifiers = [
1414
'Intended Audience :: Developers',
1515
'Topic :: Software Development :: Build Tools',
1616
'License :: OSI Approved :: GNU Affero General Public License v3',
17-
'Programming Language :: Python :: 3.12',
17+
'Programming Language :: Python :: 3.11',
1818
]
1919

2020
keywords = ['compiler', 'zxspectrum', 'BASIC', 'z80'] # arbitrary keywords
@@ -25,11 +25,11 @@ packages = [
2525

2626
[tool.poetry.scripts]
2727
zxbc = 'src.zxbc:main'
28-
zxbasm = 'src.zxbasm.zxbasm:main'
29-
zxbpp = 'src.zxbpp.zxbpp:entry_point'
28+
zxbasm = 'src.zxbasm:main'
29+
zxbpp = 'src.zxbpp:entry_point'
3030

3131
[tool.poetry.dependencies]
32-
python = "^3.12"
32+
python = "^3.11"
3333

3434
[tool.poetry.group.dev.dependencies]
3535
pytest = "*"
@@ -110,7 +110,7 @@ follow_imports = "skip"
110110

111111
[tool.ruff]
112112
line-length = 120
113-
target-version = "py310"
113+
target-version = "py311"
114114
exclude = [
115115
"src/ply" # PLY, external 3rd party tool
116116
]
@@ -139,6 +139,7 @@ ignore = [
139139
"PLR0912",
140140
"PLR0913",
141141
"PLR0915",
142+
"PLW1641",
142143
"PLR1714",
143144
"PLR1730",
144145
"PLR2004",

src/__init__.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +0,0 @@
1-
import sys
2-
3-
PYTHON_VERSION = 3, 10 # Minimum python version required
4-
5-
if tuple(sys.version_info) < PYTHON_VERSION:
6-
sys.stderr.write(
7-
"%s Error: Python version %s or higher is required\n"
8-
% (sys.argv[0], (".".join(str(x) for x in PYTHON_VERSION)))
9-
)
10-
sys.exit(1)

src/api/python_version_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22
from typing import Final
33

4-
MINIMUM_REQUIRED_PYTHON_VERSION: Final[tuple[int, int]] = (3, 12)
4+
MINIMUM_REQUIRED_PYTHON_VERSION: Final[tuple[int, int]] = (3, 11)
55

66

77
def init():

src/arch/z80/backend/_16bit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def mul16(cls, ins: Quad) -> list[str]:
263263
output.append("push hl")
264264
return output
265265

266-
output.append("ld de, %i" % op2)
266+
output.append(f"ld de, {op2}")
267267
else:
268268
if op2[0] == "_": # stack optimization
269269
op1, op2 = op2, op1

src/zxbasm/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "1.18.1"
1+
VERSION = "1.18.2"

src/zxbc/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from typing import Final
22

3-
VERSION: Final[str] = "1.18.1"
3+
VERSION: Final[str] = "1.18.2"

0 commit comments

Comments
 (0)