Skip to content

Commit

Permalink
Fix dependencies (importlib_metadata and scipy)
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Jan 10, 2024
1 parent 096a329 commit 3118970
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 72 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ test-release:examples:
- . .venv/bin/activate
- pip install fluidfft
- pip install lib
- pip install ".[mpi,fft,scipy,test]"
- pip install ".[mpi,fft,test]"
- cd doc/examples
- make tests
- make tests_mpi
Expand Down
4 changes: 2 additions & 2 deletions fluidsim/_version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import importlib_metadata
from importlib import metadata

__version__ = importlib_metadata.version(__package__)
__version__ = metadata.version(__package__)


__all__ = ["__version__", "get_local_version", "__about__"]
Expand Down
1 change: 1 addition & 0 deletions lib/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ authors = [
]
dependencies = [
"fluiddyn",
"importlib_metadata; python_version < '3.10'",
]
dynamic = ['version', 'description']

Expand Down
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def validate_code(session):

@nox.session
def test_without_fft_and_pythran(session):
command = "pdm install -G dev -G test -G mpi -G scipy --no-self"
command = "pdm install -G dev -G test -G mpi --no-self"
session.run_always(*command.split(), external=True)
session.install(".", "--config-settings=setup-args=-Dtransonic-backend=python", "--no-deps")
session.run(
Expand All @@ -28,7 +28,7 @@ def test_with_fft_and_pythran(session):
# first install fluidfft without Pythran compilation
session.install("fluidfft", env={"FLUIDFFT_TRANSONIC_BACKEND": "python"})

command = "pdm install -G dev -G test -G fft -G mpi -G scipy --no-self"
command = "pdm install -G dev -G test -G fft -G mpi --no-self"
session.run_always(*command.split(), external=True)
session.install(".", "--no-deps")

Expand Down
130 changes: 66 additions & 64 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ authors = [
version = '0.7.4'
requires-python = ">=3.9"
dependencies = [
"importlib_metadata",
"fluidsim-core>=0.7.4",
"h5py",
"h5netcdf",
Expand Down Expand Up @@ -75,7 +74,6 @@ test = [
"ipython",
"pymech",
]
scipy = ["scipy"]

[project.scripts]
fluidsim = "fluidsim.util.console.__main__:run"
Expand Down Expand Up @@ -150,7 +148,6 @@ doc = [
"numpydoc",
"jupyter",
"pandas",
"scipy",
"ipynbname",
"myst-nb",
"sphinx-copybutton",
Expand Down

0 comments on commit 3118970

Please sign in to comment.