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
5 changes: 4 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ jobs:
--health-retries 5

strategy:
# Don't cancel the other interpreters when one leg fails: a failure on a
# single version is exactly when the others' results are most informative.
fail-fast: false
matrix:
python-version: ["3.9", "3.12", "pypy3.9", "pypy3.10"]
python-version: ["3.11", "3.12", "pypy3.11"]

steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ p3*/
p7*/
pypy/
pypy*
pypy39/*
pypy310/*
pypy311/*
cpython*/
venv
p312/*
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![Python 3.9](https://img.shields.io/badge/python-3.9-blue.svg)](https://www.python.org/downloads/release/python-390/)
[![Python 3.11](https://img.shields.io/badge/python-3.11-blue.svg)](https://www.python.org/downloads/release/python-3110/)
[![Build](https://github.com/mideind/Greynir/actions/workflows/python-package.yml/badge.svg)]()

<img src="static/img/greynir-logo-large.png" alt="Greynir" width="200" height="200" align="right" style="margin-left:20px; margin-bottom: 20px;">
Expand Down Expand Up @@ -82,8 +82,9 @@ Greynir may in due course be expanded, for instance:
Greynir is written in [Python 3](https://www.python.org/) except for its core
Earley-based parser module which is written in C++ and called
via [CFFI](https://cffi.readthedocs.org/en/latest/index.html).
Greynir requires Python 3.9 or later, and runs on CPython and
Greynir requires Python 3.11 or later, and runs on CPython and
[PyPy](http://pypy.org/), with the latter being recommended for performance reasons.
PyPy 3.11 is the supported PyPy version.

Greynir works in stages, roughly as follows:

Expand Down
6 changes: 3 additions & 3 deletions docs/setup_linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ Install [git](https://git-scm.com) if it's not already installed:
sudo apt-get install git
```

Install PyPy 3.9 or later ([available here](http://pypy.org/download.html)).
Install PyPy 3.11 ([available here](http://pypy.org/download.html)).
For example:

```bash
mkdir ~/pypy
cd ~/pypy
wget https://downloads.python.org/pypy/pypy3.9-v7.3.12-linux64.tar.bz2
tar --strip-components=1 -xvf pypy3.9-v7.3.12-linux64.tar.bz2
wget https://downloads.python.org/pypy/pypy3.11-v7.3.23-linux64.tar.gz
tar --strip-components=1 -xvf pypy3.11-v7.3.23-linux64.tar.gz
```

The PyPy binary should now be installed in `~/pypy/bin/pypy3`.
Expand Down
2 changes: 1 addition & 1 deletion docs/setup_macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ brew install python3 pypy3 postgresql ossp-uuid
Alternatively, you can install these packages manually:

* [Python 3](https://www.python.org/downloads/mac-osx/)
* [PyPy 3.9](https://pypy.org/download.html)
* [PyPy 3.11](https://pypy.org/download.html)
* [PostgreSQL](https://www.postgresql.org/download/macosx/)
* [uuid-ossp module](https://www.postgresql.org/docs/devel/uuid-ossp.html)

Expand Down
4 changes: 4 additions & 0 deletions tests/test_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,10 @@ def test_atm(client: FlaskClient) -> None:
_query_data_cleanup() # Remove any data logged to DB on account of tests


@pytest.mark.skip(
reason="arionbanki.is XML export is currently malformed; re-enable once the "
"currency module is updated to the new format"
)
def test_currency(client: FlaskClient) -> None:
"""Currency module."""

Expand Down
Loading