Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build with numpy2 #63

Merged
merged 2 commits into from
Aug 30, 2024
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
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
python-version: [3.8, 3.9, "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
name: ${{ matrix.os }} - py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}-latest
defaults:
Expand All @@ -28,7 +28,6 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
#architecture: 'x64'
- name: Install dependencies
run: |
python -m pip install --progress-bar off --upgrade pip setuptools wheel
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python 3.9
- name: Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.9'
#architecture: 'x64'
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --progress-bar off --upgrade pip setuptools wheel
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ jobs:
uses: actions/checkout@v4
with:
path: ./main
- name: Setup Python 3.9
- name: Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: 3.9
#architecture: 'x64'
python-version: '3.10'
- name: Install package
run: |
python -m pip install --progress-bar off --upgrade pip setuptools wheel
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python 3.9
- name: Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.9'
#architecture: 'x64'
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --progress-bar off --upgrade pip setuptools wheel
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
python-version: [3.8, 3.9, "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
# some tests fail (numerical issues) in older python on mac, so we ...
exclude:
- os: macos
python-version: 3.8
- os: macos
python-version: 3.9
name: ${{ matrix.os }} - py${{ matrix.python-version }}
Expand All @@ -48,7 +46,7 @@ jobs:
- name: Run pytest
run: pytest lapy --cov=lapy --cov-report=xml --cov-config=pyproject.toml
- name: Upload to codecov
if: ${{ matrix.os == 'ubuntu' && matrix.python-version == 3.9 }}
if: ${{ matrix.os == 'ubuntu' && matrix.python-version == '3.10' }}
uses: codecov/codecov-action@v4
with:
files: ./coverage.xml
Expand Down
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[build-system]
requires = ['setuptools >= 61.0.0']
requires = [
'setuptools >= 61.0.0',
'numpy>=2',
]
build-backend = 'setuptools.build_meta'

[project]
Expand All @@ -8,7 +11,7 @@ version = '1.2.0-dev'
description = 'A package for differential geometry on meshes (Laplace, FEM)'
readme = 'README.md'
license = {file = 'LICENSE'}
requires-python = '>=3.8'
requires-python = '>=3.9'
authors = [
{name = 'Martin Reuter', email = 'martin.reuter@dzne.de'},
]
Expand All @@ -31,10 +34,10 @@ classifiers = [
'Operating System :: Unix',
'Operating System :: MacOS',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Science/Research',
Expand Down