Skip to content

Commit be19057

Browse files
committed
touched up version referencing
1 parent e34d312 commit be19057

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ All tasks will be inserted into the `pydra.tasks.<yourtaskpackagename>` namespac
1717
'v' to indicate the version of the tool the Pydra interfaces will be designed for,
1818
e.g. FSL v6.0.2 could be `pydra/tasks/fsl/v6` or `pydra/tasks/fsl/v6_0` depending on
1919
how stable the CLI of the tool is between minor versions.
20-
1. Edit `pydra/tasks/<package-name>/latest`, change the line `from .v1 import *` to refer
21-
to the `v<package-version>` module, e.g. `from .v6 import *`
20+
1. Edit `pydra/tasks/<package-name>/latest.py` to update references to `v1` to the
21+
tool target version
2222
1. Add tasks to the `pydra/tasks/<package-name>/v<package-version>` folder.
2323
1. You may want to initialize a [Sphinx] docs directory.
2424
1. Review the workflow in `.github/workflows/pythonpackage.yml`. Testing editable installations

pydra/tasks/CHANGEME/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@
88
try:
99
from ._version import __version__
1010
except ImportError:
11-
pass
11+
raise RuntimeError(
12+
"Pydra package 'CHANGEME' has not been installed, please use "
13+
"`pip install -e <path-to-repo>` to install development version"
14+
)

pydra/tasks/CHANGEME/latest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
PACKAGE_VERSION = "v1"
2+
13
from .v1 import * # noqa

0 commit comments

Comments
 (0)