Skip to content

Commit 51388b6

Browse files
authored
Merge pull request #59 from kassonlab/brer-md-58
Include conftest.py in the sdist.
2 parents 7a988f8 + 3510d42 commit 51388b6

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ jobs:
281281
- name: Install Python dependencies
282282
run: |
283283
pip install --upgrade pip setuptools wheel
284-
pip install --upgrade packaging cmake
284+
pip install --upgrade packaging cmake build
285285
pip install --no-cache-dir --upgrade --no-binary ":all:" --force-reinstall mpi4py
286286
pip install pytest codecov pytest-cov MarkupSafe networkx numpy
287287
- name: Install GROMACS
@@ -301,14 +301,16 @@ jobs:
301301
mkdir -p $HOME/pip-tmp
302302
TMPDIR=$HOME/pip-tmp \
303303
pip install --no-clean --no-build-isolation --no-cache-dir --verbose "${{ env.GMXAPI }}"
304-
# pip install --no-clean --no-build-isolation --no-cache-dir --verbose --extra-index-url https://test.pypi.org/simple/ --pre "${{ env.GMXAPI }}"
305304
git tag --list
306305
pip list
307306
export VERSIONINGIT_LOG_LEVEL=INFO
308307
versioningit .
309308
rm -rf dist
310-
python -m build --sdist -x -n
311-
TMPDIR=$HOME/pip-tmp pip install --no-clean --no-build-isolation --no-deps --verbose dist/*
309+
python -m build -x -n
310+
TMPDIR=$HOME/pip-tmp pip install --no-clean --no-build-isolation --no-deps --verbose dist/brer*.whl
311+
rm -rf tests
312+
tar xvf dist/brer-md*.tar.gz
313+
mv brer-md*/tests ./
312314
python -m pytest -x -rA -l --log-cli-level=debug --cov=brer --cov-report=xml tests
313315
# Ref https://github.com/kassonlab/brer-md/issues/5
314316
# mpiexec -n 2 `which python` -m mpi4py -m pytest -x -rA -l --log-cli-level=info -s --cov=brer --cov-report=xml tests

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
include _custom_build/backend.py
22
include src/plugin
3+
include tests/conftest.py
34
include tests/pytest.ini
45
include tests/testdata.json
56
graft src/plugin

0 commit comments

Comments
 (0)