__init__.py 953 B

12345678910111213141516171819202122232425262728293031
  1. """DataLad demo extension"""
  2. __docformat__ = 'restructuredtext'
  3. import logging
  4. lgr = logging.getLogger('datalad.helloworld')
  5. # Defines a datalad command suite.
  6. # This variable must be bound as a setuptools entrypoint
  7. # to be found by datalad
  8. command_suite = (
  9. # description of the command suite, displayed in cmdline help
  10. "Demo DataLad command suite",
  11. [
  12. # specification of a command, any number of commands can be defined
  13. (
  14. # importable module that contains the command implementation
  15. 'datalad_helloworld.hello_cmd',
  16. # name of the command class implementation in above module
  17. 'HelloWorld',
  18. # optional name of the command in the cmdline API
  19. 'hello-cmd',
  20. # optional name of the command in the Python API
  21. 'hello_cmd'
  22. ),
  23. ]
  24. )
  25. from ._version import get_versions
  26. __version__ = get_versions()['version']
  27. del get_versions