diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 6e2e8614a..d5231932c 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -17,10 +17,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Set up Python - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: '3.14' # Just check against the current Python version. @@ -42,7 +42,7 @@ jobs: - name: Install Mathics3 run: | python -m pip install --no-build-isolation -e .[dev] - remake -x develop-full + remake -x develop # Run the benchmarks and save into a JSON - name: Run benchmarks run: | diff --git a/.github/workflows/consistency-checks.yml b/.github/workflows/consistency-checks.yml index f33e5524d..e48689f41 100644 --- a/.github/workflows/consistency-checks.yml +++ b/.github/workflows/consistency-checks.yml @@ -12,11 +12,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.14'] + python-version: ['3.15'] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} - name: Install Mathics3 dependencies diff --git a/.github/workflows/isort-and-black-checks.yml b/.github/workflows/isort-and-black-checks.yml index dcb2a35c3..dfa139162 100644 --- a/.github/workflows/isort-and-black-checks.yml +++ b/.github/workflows/isort-and-black-checks.yml @@ -9,11 +9,11 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 - - name: Set up Python 3.14 - uses: actions/setup-python@v6 + - uses: actions/checkout@v7 + - name: Set up Python 3.15 + uses: actions/setup-python@v7 with: - python-version: 3.14 + python-version: 3.15 - name: Install click, black and isort run: pip install 'click==8.2.1' 'black==25.11.0' 'isort==8.0.1' - name: Run isort --check . diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 875e9304d..0f40b5185 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -5,7 +5,7 @@ on: push: branches: [master] pull_request: - branches: '**' + branches: ['**'] jobs: build: @@ -18,9 +18,9 @@ jobs: os: [macOS] python-version: ['3.14', '3.13'] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} - name: Install OS dependencies diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 1ab127214..22275382f 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -12,11 +12,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.14'] + python-version: ['3.15'] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 78f25f729..a1e0b6f00 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -3,20 +3,20 @@ name: Mathics3 Packages (ubuntu) on: push: - branches: [master] + branches: ['master'] pull_request: - branches: '**' + branches: ['**'] jobs: build: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.14'] + python-version: ['3.15'] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} - name: Install OS dependencies diff --git a/.github/workflows/plot-tests.yml b/.github/workflows/plot-tests.yml index c9c5d377d..f016f7bbb 100644 --- a/.github/workflows/plot-tests.yml +++ b/.github/workflows/plot-tests.yml @@ -5,7 +5,7 @@ on: push: branches: [master] pull_request: - branches: '**' + branches: ['**'] jobs: build: @@ -14,9 +14,9 @@ jobs: matrix: python-version: ['3.14'] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} - name: Install OS dependencies diff --git a/.github/workflows/pyodide.yml b/.github/workflows/pyodide.yml index f65e07b8b..71e9b2bbd 100644 --- a/.github/workflows/pyodide.yml +++ b/.github/workflows/pyodide.yml @@ -22,10 +22,10 @@ jobs: NODE_VERSION: 24 steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Set up Python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: ${{ env.PYTHON_VERSION }} diff --git a/.github/workflows/ubuntu-cython.yml b/.github/workflows/ubuntu-cython.yml index 57b3ed397..8dc6a1cac 100644 --- a/.github/workflows/ubuntu-cython.yml +++ b/.github/workflows/ubuntu-cython.yml @@ -16,9 +16,9 @@ jobs: matrix: python-version: ['3.14'] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} - name: Install Mathics3 dependencies @@ -32,7 +32,7 @@ jobs: # bash -x admin-tools/make-JSON-tables.sh # cd .. - - name: Install Mathics3 with full dependencies + - name: Install Mathics3 with Cython and full dependencies run: | make develop-full-cython - name: Test Mathics diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 217a8654b..41e0a9538 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -5,7 +5,7 @@ on: push: branches: [master] pull_request: - branches: '**' + branches: ['**'] jobs: build: @@ -14,9 +14,9 @@ jobs: matrix: python-version: ['3.14', '3.13', '3.12', '3.11'] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} - name: Install OS dependencies diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 32c8c4755..3d7c65042 100755 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -15,16 +15,16 @@ jobs: os: [windows] # "make doctest" on MS Windows fails without showing much of a # trace of where things went wrong on Python before 3.11. - python-version: ['3.12'] + python-version: ['3.15', '3.12'] # Setting the environment variable globally for all steps in this job env: MATHICS_CHARACTER_ENCODING: "ASCII" steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} - name: Install OS dependencies diff --git a/Makefile b/Makefile index 3ca6563b5..7f9d0e671 100644 --- a/Makefile +++ b/Makefile @@ -76,24 +76,22 @@ full-benchmarks: build: $(PYTHON) ./setup.py build -# Note that we need ./setup.py develop -# because pip install doesn't handle -# INSTALL_REQUIRES properly #: Set up to run from the source tree develop: $(PIP) install --no-build-isolation -e .[dev] -# See note above on ./setup.py #: Set up to run from the source tree with full dependencies develop-full: $(PIP) install --no-build-isolation -e .[dev,full] -# See note above on ./setup.py +#: Set up to run from the source tree with Cython +develop-cython: + $(PIP) install --no-build-isolation -e .[dev,cython] + #: Set up to run from the source tree with full dependencies and Cython develop-full-cython: $(PIP) install --no-build-isolation -e .[dev,full,cython] - #: Make distribution: wheels, eggs, tarball dist: ./admin-tools/make-dist.sh diff --git a/pyproject.toml b/pyproject.toml index e9087204d..0adb6538e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,6 +56,7 @@ classifiers = [ "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: 3.15", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Mathematics",