Skip to content

Commit 8ba9db5

Browse files
committed
Updated executor tutorial to use packaging.version
1 parent 160a431 commit 8ba9db5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/development/tutorial_add_executor.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ Create a simple BatchSchedulerExecutor subclass that does nothing new in `psijpb
6868

6969
and create a descriptor file to tell PSI/J about this, ``psij-descriptors/pbspro.py``::
7070

71-
from distutils.version import StrictVersion
71+
from packaging.version import Version
7272

7373
from psij._descriptor import _Descriptor
7474

75-
__PSI_J_EXECUTORS__ = [_Descriptor(name='pbspro', version=StrictVersion('0.0.1'),
75+
__PSI_J_EXECUTORS__ = [_Descriptor(name='pbspro', version=Version('0.0.1'),
7676
cls='psijpbs.pbspro.PBSProJobExecutor')]
7777

7878
Now, run the test suite. It should fail with an error reporting that the resource manager specific methods of BatchSchedulerExecutor have not been implemented::

0 commit comments

Comments
 (0)