Skip to content

Commit 94cf350

Browse files
committed
add pyproject and extend ci scripts to build a wheel
1 parent 1bf9302 commit 94cf350

File tree

5 files changed

+31
-7
lines changed

5 files changed

+31
-7
lines changed
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ git submodule update --init
1717

1818
python -m venv ~/venv
1919
source ~/venv/bin/activate
20-
pip install -U pip pytest
20+
python -m pip install -U pip pytest wheel
2121

22-
pip install git+https://github.com/pymor/pymor.git#egg=pymor
23-
# if we're in a versioned branch pip will downgrade pymor here from pypi
24-
pip install .
25-
26-
cd ${BASE_DIR}/src/
27-
xvfb-run -a pytest -s -r sxX test/demo.py
22+
python -m install git+https://github.com/pymor/pymor.git#egg=pymor

.ci/pytest.bash

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
set -e
4+
set -x
5+
6+
BASE_DIR="$(cd "$(dirname ${BASH_SOURCE[0]})" ; cd ../ ; pwd -P )"
7+
8+
source ${BASE_DIR}/.ci/common_setup.bash
9+
10+
# if we're in a versioned branch pip will downgrade pymor here from pypi
11+
python -m pip install .
12+
13+
cd ${BASE_DIR}/src/
14+
xvfb-run -a pytest -s -r sxX test/demo.py

.ci/wheel.bash

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
set -e
4+
set -x
5+
6+
BASE_DIR="$(cd "$(dirname ${BASH_SOURCE[0]})" ; cd ../ ; pwd -P )"
7+
8+
source ${BASE_DIR}/.ci/common_setup.bash
9+
10+
python -m build

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# This file is autogenerated. Edit dependencies.py instead
2+
[build-system]
3+
requires = ['setuptools>=49.1', 'wheel', 'packaging']
4+
build-backend = "setuptools.build_meta"

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def build_cmake(self, ext):
6060
name='pymor_dealii',
6161
author='pyMOR developers',
6262
author_email='[email protected]',
63+
python_requires='>=3.7',
6364
maintainer='Rene Fritze',
6465
maintainer_email='[email protected]',
6566
install_requires=[],

0 commit comments

Comments
 (0)