Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
1 change: 1 addition & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
python -m pip install --upgrade numpy
python -m pip install --upgrade mpi4py
python -m pip install --upgrade pytest
python -m pip install --upgrade pytest-benchmark
python -m pip install --upgrade cmake
python -m pipx install cmake

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: install pip dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build packaging setuptools[core] wheel pytest
python3 -m pip install --upgrade build packaging setuptools[core] wheel pytest pytest-benchmark
python3 -m pip install --upgrade -r requirements_mpi.txt
python3 -m pip install --upgrade -r src/python/impactx/dashboard/requirements.txt
python3 -m pip install --upgrade -r examples/requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Examples:
In order to run our tests, you need to have a few Python packages installed:
```console
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build packaging setuptools[core] wheel pytest
python3 -m pip install --upgrade build packaging setuptools[core] wheel pytest pytest-benchmark
python3 -m pip install --upgrade -r tests/python/requirements.txt
```

Expand Down
2 changes: 1 addition & 1 deletion docs/source/developers/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ In order to run our tests, you need to have a few :ref:`Python packages installe
.. code-block:: sh

python3 -m pip install -U pip
python3 -m pip install -U build packaging setuptools[core] wheel pytest
python3 -m pip install -U build packaging setuptools[core] wheel pytest pytest-benchmark
python3 -m pip install -r examples/requirements.txt

Run
Expand Down
2 changes: 1 addition & 1 deletion docs/source/install/cmake.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ImpactX depends on popular third party software.
.. code-block:: bash

python3 -m pip install -U pip
python3 -m pip install -U build packaging setuptools[core] wheel pytest
python3 -m pip install -U build packaging setuptools[core] wheel pytest pytest-benchmark
python3 -m pip install -U -r examples/requirements.txt


Expand Down
4 changes: 2 additions & 2 deletions docs/source/install/dependencies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Conda-Forge (Linux/macOS/Windows)

.. code-block:: bash

conda create -n impactx-cpu-mpich-dev -c conda-forge blaspp boost ccache cmake compilers git lapackpp "openpmd-api=*=mpi_mpich*" packaging pytest python python-build numpy pandas quantiphy scipy setuptools yt "fftw=*=mpi_mpich*" pkg-config matplotlib mamba ninja mpich pip virtualenv wheel
conda create -n impactx-cpu-mpich-dev -c conda-forge blaspp boost ccache cmake compilers git lapackpp "openpmd-api=*=mpi_mpich*" packaging pytest pytest-benchmark python python-build numpy pandas quantiphy scipy setuptools yt "fftw=*=mpi_mpich*" pkg-config matplotlib mamba ninja mpich pip virtualenv wheel
conda activate impactx-cpu-mpich-dev

# compile ImpactX with -DImpactX_MPI=ON
Expand All @@ -82,7 +82,7 @@ Conda-Forge (Linux/macOS/Windows)

.. code-block:: bash

conda create -n impactx-cpu-dev -c conda-forge blaspp boost ccache cmake compilers git lapackpp openpmd-api packaging pytest python python-build numpy pandas quantiphy scipy setuptools yt fftw pkg-config matplotlib mamba ninja pip virtualenv wheel
conda create -n impactx-cpu-dev -c conda-forge blaspp boost ccache cmake compilers git lapackpp openpmd-api packaging pytest pytest-benchmark python python-build numpy pandas quantiphy scipy setuptools yt fftw pkg-config matplotlib mamba ninja pip virtualenv wheel
conda activate impactx-cpu-dev

# compile ImpactX with -DImpactX_MPI=OFF
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def build_extension(self, ext):
cmdclass=cmdclass,
zip_safe=False,
python_requires=">=3.8", # left for CI, truly ">=3.9"
tests_require=["numpy", "pandas", "pytest", "scipy"],
tests_require=["numpy", "pandas", "pytest", "pytest-benchmark", "scipy"],
install_requires=install_requires,
# cmdclass={'test': PyTest},
# platforms='any',
Expand Down
2 changes: 1 addition & 1 deletion src/python/ImpactX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ namespace detail

void init_ImpactX (py::module& m)
{
py::class_<ImpactX> impactx(m, "ImpactX");
py::class_<ImpactX> impactx(m, "ImpactX", py::dynamic_attr());
impactx
.def(py::init<>())

Expand Down
1 change: 1 addition & 0 deletions tests/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
-r ../../examples/requirements.txt
pytest
pytest-benchmark
Loading
Loading