Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: ZXBasic
name: Run Test

on:
pull_request:
Expand Down Expand Up @@ -29,8 +29,8 @@ jobs:

- name: Install poetry
run: |
pip install -U pip~=24.0
pip install poetry~=1.7.1
pip install -U pip~=26.0
pip install poetry~=2.3.2
poetry config virtualenvs.in-project true

- name: Set up poetry cache
Expand Down
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

67 changes: 40 additions & 27 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,39 +1,44 @@
[tool.poetry]
[project]
name = "zxbasic"
version = "1.18.7"
description = "Boriel's ZX BASIC Compiler"
authors = ["Jose Rodriguez <zxbasic@boriel.com>"]
authors = [
{ name = "Jose Rodriguez", email = "zxbasic@boriel.com" }
]
license = "AGPL-3.0-or-later"
documentation = "https://zxbasic.readthedocs.io"
repository = "https://github.com/boriel-basic/zxbasic"
homepage = "https://github.com/boriel-basic"
license-files = [
"LICENSE.txt"
]
readme = "README.md"

requires-python = ">=3.11"
keywords = ["compiler", "zxspectrum", "BASIC", "z80"]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: GNU Affero General Public License v3',
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]

keywords = ['compiler', 'zxspectrum', 'BASIC', 'z80'] # arbitrary keywords
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]

[project.urls]
Homepage = "https://github.com/boriel-basic"
Repository = "https://github.com/boriel-basic/zxbasic"
Documentation = "https://zxbasic.readthedocs.io"

[project.scripts]
zxbc = "src.zxbc:main"
zxbasm = "src.zxbasm:main"
zxbpp = "src.zxbpp:entry_point"

# Poetry-specific packaging configuration that is not part of PEP 621.
# Keep this minimal section to preserve the current package discovery behavior.
[tool.poetry]
packages = [
{ include = "src/**/*" }
]

[tool.poetry.scripts]
zxbc = 'src.zxbc:main'
zxbasm = 'src.zxbasm:main'
zxbpp = 'src.zxbpp:entry_point'

[tool.poetry.dependencies]
python = ">=3.11"

[tool.poetry.group.dev.dependencies]
pytest = "*"
bump2version = "^1.0.0"
Expand All @@ -47,8 +52,8 @@ pytest-xdist = "*"
setuptools = ">=70.1.1,<79.0.0"

[build-system]
requires = ["poetry>=2.3.1"]
build-backend = "poetry.masonry.api"
requires = ["poetry-core>=2.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poe.tasks]
[[tool.poe.tasks.lint]]
Expand All @@ -74,6 +79,14 @@ shell = """
ruff format .
"""

[[tool.poe.tasks.clean]]
help = "Clean up the project working tree (i.e. remove __pycache__ folders)"
shell = """
find . -name "__pycache__" | xargs rm -rf
find . -name "*.pyc" -delete
rm -rf .mypy_cache .pytest_cache .ruff_cache dist/ .coverage.*
"""

[tool.coverage.run]
branch = true
omit = [
Expand Down