Skip to content

Commit 42a1f20

Browse files
tazendDanny Rotscherbikerdanny
authored
Update for 20.02 Support (#182)
* Changed Slurm version to 20.02 * Update pyslurm.pyx for 20.02 * Prepared test environment for Slurm 20.02 * Move mapping of slurm defines to python into seperate folder - Makes all (slurm.h, slurmdbd.h, errno.h) "#defines" from slurm headers available in Python * Update slurm.pxd to 20.02 * Update setup.py - Minimum Cython Version to 0.19 - Remove "staticmethod" mention from scandir function - apparently, with recursive functions in a class, "self" should be used otherwise the method would constantly break when there is a directory inside "pyslurm/" * Update xmalloc.h, use the correct one for 20.02 * Add new directory jinja2 - The files in defines/ contains all "#define" variables from the slurm headers - The *.h.pxd files are automatically created by autopxd2 - With a simple jinja template, one can easily make changes and update the pyslurm/slurm.pxd file - It's not really necessary to "automate" this, because the SLURM headers only change every major release, so this mustn't be done often. And the pyslurm/slurm.pxd file shipped here is already complete for 20.02 * Fix -Wsign-compare error - Utilize size_t instead of int when dealing with unsigned ints * Update README - bump SLURM Version to 20.05 Co-authored-by: Danny Rotscher <[email protected]> Co-authored-by: bikerdanny <[email protected]>
1 parent 0d5e23a commit 42a1f20

25 files changed

+9341
-3215
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
PySlurm: Slurm Interface for Python
33
***********************************
44

5-
.. image:: https://travis-ci.org/PySlurm/pyslurm.svg?branch=19.05.0
5+
.. image:: https://travis-ci.org/PySlurm/pyslurm.svg?branch=20.02.0
66
:target: https://travis-ci.org/PySlurm/pyslurm
77

88
Overview
@@ -11,7 +11,7 @@ Overview
1111
Currently PySlurm is under development to move from it's thin layer on top of
1212
the Slurm C API to an object orientated interface.
1313

14-
This release is based on Slurm 19.05.
14+
This release is based on Slurm 20.02.
1515

1616
Prerequisites
1717
*************
@@ -24,7 +24,7 @@ This PySlurm branch has been tested with:
2424

2525
* Cython 0.19.2, and the latest stable
2626
* Python 2.7, 3.4, 3.5 and 3.6
27-
* Slurm 19.05.0
27+
* Slurm 20.02
2828

2929

3030
Installation

0 commit comments

Comments
 (0)