Skip to content

Commit

Permalink
Cleanup the top-level directory of the repository
Browse files Browse the repository at this point in the history
 * Include `bin/runaiida` through `console_scripts` of `setup.json`
 * Remove the outdated examples from `examples` directory
 * Remove obsolete `utils/plugin_tpl/calculation.tpl` superseded by
   plugin cookie cutter package
 * Move `conftest` to the `tests` directory
  • Loading branch information
sphuber committed Apr 4, 2020
1 parent f40f0d2 commit 1c369a3
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 385 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ verdi daemon stop
pytest --noconftest .ci/test_test_manager.py
pytest --noconftest .ci/test_profile_manager.py
python .ci/test_plugin_testcase.py # uses custom unittest test runner
AIIDA_TEST_PROFILE=test_$AIIDA_TEST_BACKEND pytest .ci/pytest

# Until the `.ci/pytest` tests are moved within `tests` we have to run them separately and pass in the path to the
# `conftest.py` explicitly, because otherwise it won't be able to find the fixtures it provides
AIIDA_TEST_PROFILE=test_$AIIDA_TEST_BACKEND pytest tests/conftest.py .ci/pytest

# main aiida-core tests
AIIDA_TEST_PROFILE=test_$AIIDA_TEST_BACKEND pytest tests
14 changes: 0 additions & 14 deletions bin/runaiida

This file was deleted.

9 changes: 0 additions & 9 deletions examples/__init__.py

This file was deleted.

9 changes: 0 additions & 9 deletions examples/work/__init__.py

This file was deleted.

91 changes: 0 additions & 91 deletions examples/work/workchain.py

This file was deleted.

78 changes: 0 additions & 78 deletions examples/work/workchain_outline.py

This file was deleted.

51 changes: 0 additions & 51 deletions examples/work/workfunction.py

This file was deleted.

8 changes: 3 additions & 5 deletions setup.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@
"reentry_register": true,
"entry_points": {
"console_scripts": [
"verdi=aiida.cmdline.commands.cmd_verdi:verdi"
"verdi=aiida.cmdline.commands.cmd_verdi:verdi",
"runaiida=aiida.cmdline.commands.cmd_run:run"
],
"aiida.calculations": [
"arithmetic.add = aiida.calculations.plugins.arithmetic.add:ArithmeticAddCalculation",
Expand Down Expand Up @@ -201,8 +202,5 @@
"realhydrogen = aiida.tools.data.orbital.realhydrogen:RealhydrogenOrbital"
],
"aiida.workflows": []
},
"scripts": [
"bin/runaiida"
]
}
}
1 change: 0 additions & 1 deletion conftest.py → tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
# For further information please visit http://www.aiida.net #
###########################################################################
"""Configuration file for pytest tests."""

import pytest # pylint: disable=unused-import

pytest_plugins = ['aiida.manage.tests.pytest_fixtures'] # pylint: disable=invalid-name
Loading

0 comments on commit 1c369a3

Please sign in to comment.