Skip to content

Commit 06dcb39

Browse files
committed
Test pip no-build-isolation option
1 parent dfd8a86 commit 06dcb39

File tree

8 files changed

+27
-14
lines changed

8 files changed

+27
-14
lines changed

.github/workflows/coverage.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626
- name: Test
2727
shell: bash -l {0}
2828
run: |
29-
pip install --no-deps .
29+
pip install versioneer[toml]==0.29
30+
pip install . --no-deps --no-build-isolation
3031
coverage run --omit pylammpsmpi/_version.py -m unittest discover tests
3132
coverage combine
3233
- name: Coveralls

.github/workflows/deploy.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,23 @@ jobs:
1919
id-token: write
2020
steps:
2121
- uses: actions/checkout@v4
22-
- uses: actions/setup-python@v4
22+
- uses: conda-incubator/setup-miniconda@v2.2.0
2323
with:
24-
python-version: "3.11"
25-
- name: Install dependencies
26-
run: python -m pip install --user --upgrade setuptools wheel versioneer
24+
python-version: 3.11
25+
mamba-version: "*"
26+
channels: conda-forge
27+
miniforge-variant: Mambaforge
28+
channel-priority: strict
29+
auto-update-conda: true
30+
environment-file: .ci_support/environment-openmpi.yml
2731
- name: Convert dependencies
2832
run: |
2933
cp .ci_support/environment-old.yml environment.yml
3034
python .ci_support/release.py; cat pyproject.toml
3135
- name: Build
32-
run: python setup.py sdist bdist_wheel
36+
shell: bash -l {0}
37+
run: |
38+
pip install versioneer[toml]==0.29
39+
python setup.py sdist bdist_wheel
3340
- name: Publish distribution 📦 to PyPI
3441
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/pypicheck.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ jobs:
2222
- name: Setup
2323
shell: bash -l {0}
2424
run: |
25-
pip install --no-deps .
25+
pip install versioneer[toml]==0.29
26+
pip install . --no-deps --no-build-isolation
2627
pip check

.github/workflows/unittests-mpich.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ jobs:
3131
shell: bash -l {0}
3232
timeout-minutes: 5
3333
run: |
34-
pip install --no-deps .
34+
pip install versioneer[toml]==0.29
35+
pip install . --no-deps --no-build-isolation
3536
python -m unittest discover tests

.github/workflows/unittests-old.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ jobs:
2727
shell: bash -l {0}
2828
timeout-minutes: 5
2929
run: |
30-
pip install --no-deps .
30+
pip install versioneer[toml]==0.29
31+
pip install . --no-deps --no-build-isolation
3132
python -m unittest discover tests

.github/workflows/unittests-openmpi.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ jobs:
3131
shell: bash -l {0}
3232
timeout-minutes: 5
3333
run: |
34-
pip install --no-deps .
34+
pip install versioneer[toml]==0.29
35+
pip install . --no-deps --no-build-isolation
3536
python -m unittest discover tests

pylammpsmpi/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
from ._version import get_versions
22

3+
from pylammpsmpi.wrapper.extended import LammpsLibrary
4+
from pylammpsmpi.wrapper.concurrent import LammpsConcurrent
5+
from pylammpsmpi.wrapper.base import LammpsBase
6+
37
try:
4-
from pylammpsmpi.wrapper.extended import LammpsLibrary
5-
from pylammpsmpi.wrapper.concurrent import LammpsConcurrent
6-
from pylammpsmpi.wrapper.base import LammpsBase
78
from pylammpsmpi.wrapper.ase import LammpsASELibrary
89
except ImportError:
910
pass

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools", "versioneer[toml]==0.29"]
2+
requires = ["mpi4py", "numpy", "pympipool", "setuptools", "versioneer[toml]==0.29"]
33
build-backend = "setuptools.build_meta"
44

55
[project]

0 commit comments

Comments
 (0)