diff --git a/.flake8 b/.flake8 index 25743729..4f73276c 100644 --- a/.flake8 +++ b/.flake8 @@ -9,6 +9,7 @@ ignore = # break after binary operator - allow either style exclude= .git, + .venv, build, dev-requirements, venv, diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 88d402eb..f15ea9f1 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -5,30 +5,30 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] steps: - name: Checkout repository and submodules - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: submodules: recursive - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install flake8 pytest - pip install .[test] + python3 -m pip install --upgrade pip + python3 -m pip install flake8 pytest + python3 -m pip install .[test] - name: Lint with flake8 run: | - python -m flake8 - - name: Test sorting wioth isort + python3 -m flake8 + - name: Test sorting with isort run: | - python -m isort --verbose --check-only --diff chaste_codegen tests setup.py + python3 -m isort --verbose --check-only --diff chaste_codegen tests setup.py - name: Test with pytest run: | - python -m pytest --cov --cov-config=.coveragerc - - uses: codecov/codecov-action@v5 + python3 -m pytest --cov --cov-config=.coveragerc + - uses: codecov/codecov-action@v6 with: token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos diff --git a/RELEASE.md b/RELEASE.md index 4e291fd1..b2b63922 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,3 +1,6 @@ +# Release 0.10.7 +- Added support for Python 3.14. + # Release 0.10.6 - Added support for Python 3.13. - Updated dependency versions: diff --git a/chaste_codegen/_command_line_script.py b/chaste_codegen/_command_line_script.py index 4c515e90..bf7d8279 100644 --- a/chaste_codegen/_command_line_script.py +++ b/chaste_codegen/_command_line_script.py @@ -60,7 +60,7 @@ def skip_conversion(args): def process_command_line(): # add options for command line interface - parser = argparse.ArgumentParser(description='Chaste code generation for cellml.') + parser = argparse.ArgumentParser(prog='chaste_codegen', description='Chaste code generation for cellml.') # Options for added pycml backwards compatibility, these are now always on parser.add_argument('--Wu', '--warn-on-units-errors', action='store_true', help=argparse.SUPPRESS) parser.add_argument('-A', '--fully-automatic', action='store_true', help=argparse.SUPPRESS) diff --git a/chaste_codegen/version.txt b/chaste_codegen/version.txt index 69da6ebc..2d993c42 100644 --- a/chaste_codegen/version.txt +++ b/chaste_codegen/version.txt @@ -1 +1 @@ -0.10.6 +0.10.7