Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
18 changes: 12 additions & 6 deletions conda/dpti/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,28 @@ requirements:
build:
- git
host:
- python >=3.6
- python >=3.10
- pip
- setuptools
- setuptools_scm
- dargs
- dpdata
- dpdispatcher
- wheel

run:
- python >=3.6
- python >=3.10
- apache-airflow >=2.0
- scipy
- numpy
- pymbar
- dargs
- paramiko
- dpdispatcher
- dpdispatcher >=0.3
- sqlalchemy >=1.4.28,<2.0

test:
imports:
- dpti
commands:
- python -c "import dpti.ti; import dpti.dags.dp_ti_gdi"

about:
home: https://github.com/deepmodeling/dpti
Expand Down
27 changes: 27 additions & 0 deletions tests/test_conda_recipe.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import os
import unittest


class TestCondaRecipe(unittest.TestCase):
def test_runtime_dependencies_match_packaged_modules(self):
"""The no-deps conda install explicitly supplies runtime requirements."""
recipe = os.path.join("..", "conda", "dpti", "meta.yaml")
with open(recipe) as fp:
content = fp.read()

for dependency in (
"apache-airflow >=2.0",
"scipy",
"numpy",
"pymbar",
"dargs",
"dpdispatcher >=0.3",
"sqlalchemy >=1.4.28,<2.0",
):
with self.subTest(dependency=dependency):
self.assertIn(f"- {dependency}", content)
self.assertIn("import dpti.ti; import dpti.dags.dp_ti_gdi", content)


if __name__ == "__main__":
unittest.main()
Loading