Skip to content

Commit

Permalink
RF: Standardize on datalad_ module prefix (fixes psychoinformatics-de…
Browse files Browse the repository at this point in the history
  • Loading branch information
mih committed Mar 30, 2018
1 parent cc63930 commit 92f22c3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -58,7 +58,7 @@ script:
$NOSE_WRAPPER `which nosetests` $NOSE_OPTS
-v -A "$NOSE_SELECTION_OP(integration or usecase or slow)"
--with-doctest
--with-cov --cover-package dmhelloworld
--with-cov --cover-package datalad_helloworld
--logging-level=INFO
$TESTS_TO_PERFORM
#- if [ ! "${DATALAD_LOG_LEVEL:-}" = 2 ]; then
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -21,5 +21,5 @@ DataLad will now expose a new command suite with `hello...` commands.

To start implementing your own extension module, fork this project and adjust
as necessary. The comments in [setup.py](setup.py) and
[__init__.py](dmhelloworld/__init__.py) illustrate the purpose of the various
[__init__.py](datalad_helloworld/__init__.py) illustrate the purpose of the various
aspects of a command implementation and the setup of an extension package.
6 changes: 3 additions & 3 deletions dmhelloworld/__init__.py → datalad_helloworld/__init__.py
Expand Up @@ -24,9 +24,9 @@
# specification of a command, any number of commands can be defined
(
# importable module that contains the command implementation
'dmhelloworld',
'datalad_helloworld',
# name of the command class implementation in above module
'DMHelloWorld',
'HelloWorld',
# optional name of the command in the cmdline API
'hello-cmd',
# optional name of the command in the Python API
Expand All @@ -39,7 +39,7 @@
# decoration auto-generates standard help
@build_doc
# all commands must be derived from Interface
class DMHelloWorld(Interface):
class HelloWorld(Interface):
# first docstring line is used a short description in the cmdline help
# the rest is put in the verbose help and manpage
"""Short description of the command
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions setup.py
Expand Up @@ -5,12 +5,12 @@

setup(
# basic project properties can be set arbitrarily
name="dmhelloworld",
name="datalad_helloworld",
author="The DataLad Team and Contributors",
author_email="team@datalad.org",
version='0.1',
description="demo DataLad module package",
packages=[pkg for pkg in find_packages('.') if pkg.startswith('dmhelloworld')],
packages=[pkg for pkg in find_packages('.') if pkg.startswith('datalad')],
# datalad command suite specs from here
install_requires=[
# in general datalad will be a requirement, unless the datalad extension
Expand All @@ -24,7 +24,7 @@
# the label in front of '=' is the command suite label
# the entrypoint can point to any symbol of any name, as long it is
# valid datalad interface specification (see demo in this module)
'hello=dmhelloworld:module_suite',
'helloworld=datalad_helloworld:module_suite',
]
},
)

0 comments on commit 92f22c3

Please sign in to comment.