Skip to content

Commit 89906dd

Browse files
committed
Merge branch 'master' of https://github.com/jupyterhub/batchspawner into jupyterhub-3.0.0b1
2 parents 9741f11 + c808003 commit 89906dd

File tree

5 files changed

+41
-17
lines changed

5 files changed

+41
-17
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,12 @@ jobs:
3232
fail-fast: false
3333
matrix:
3434
python-version:
35-
- "3.5"
36-
- "3.9"
35+
- "3.6"
36+
- "3.10"
3737
JHUB_VER:
38-
- "0.9.6"
3938
- "1.0.0"
40-
- "1.1.0"
41-
- "1.2.0"
42-
- "1.3.0"
39+
- "1.5.1"
40+
- "2.3.1"
4341
allow_failure: [false]
4442

4543
exclude:
@@ -53,6 +51,9 @@ jobs:
5351
- JHUB_VER: "main"
5452
python-version: "3.9"
5553
allow_failure: true
54+
- JHUB_VER: "3.0.0"
55+
python-version: "3.9"
56+
allow_failure: true
5657

5758
steps:
5859
- uses: actions/checkout@v3

.pre-commit-config.yaml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,33 @@
1010
#
1111
repos:
1212
# Autoformat: Python code
13-
- repo: https://github.com/ambv/black
14-
rev: "22.3.0"
13+
- repo: https://github.com/psf/black
14+
rev: "22.12.0"
1515
hooks:
1616
- id: black
17-
args: [--target-version=py36]
17+
args:
18+
- --target-version=py36
19+
- --target-version=py37
20+
- --target-version=py38
21+
- --target-version=py39
22+
- --target-version=py310
23+
- --target-version=py311
1824

1925
# Autoformat: markdown, yaml
2026
- repo: https://github.com/pre-commit/mirrors-prettier
21-
rev: v2.2.1
27+
rev: v3.0.0-alpha.4
2228
hooks:
2329
- id: prettier
2430

2531
# Lint: Python code
26-
- repo: https://gitlab.com/pycqa/flake8
27-
rev: "3.8.4"
32+
- repo: https://github.com/PyCQA/flake8
33+
rev: "6.0.0"
2834
hooks:
2935
- id: flake8
3036

3137
# Misc...
3238
- repo: https://github.com/pre-commit/pre-commit-hooks
33-
rev: v3.4.0
39+
rev: v4.4.0
3440
# ref: https://github.com/pre-commit/pre-commit-hooks#hooks-available
3541
hooks:
3642
# Autoformat: Makes sure files end in a newline and only a newline.
@@ -48,3 +54,8 @@ repos:
4854

4955
# Lint: Checks that non-binary executables have a proper shebang.
5056
- id: check-executables-have-shebangs
57+
58+
59+
# pre-commit.ci config reference: https://pre-commit.ci/#configuration
60+
ci:
61+
autoupdate_schedule: monthly

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ Changed
1010

1111
Fixed
1212

13+
## v1.2
14+
15+
Changed
16+
17+
- PR #237: Replace use of scripts with entry_points
18+
- PR #208 #238 #239 #240 #241: updates to CI - bumping versions and aligning with Jupyterhub standards
19+
- PR #220: remove code supporting Jupyterhub earlier than 0.9
20+
21+
Fixed
22+
23+
- PR #229: LSF jobs with multiple slots display each hostname ':' separated
24+
1325
## v1.1
1426

1527
Added (user)

batchspawner/batchspawner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ def state_isrunning(self):
969969

970970
def state_gethost(self):
971971
if self.job_status:
972-
return self.job_status.split(" ")[1].strip()
972+
return self.job_status.split(" ")[1].strip().split(":")[0]
973973

974974
self.log.error(
975975
"Spawner unable to match host addr in job {0} with status {1}".format(

version.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
version_info = (
55
1,
6-
1,
7-
1,
8-
"dev", # comment-out this line for a release
6+
2,
7+
0,
8+
# "dev", # comment-out this line for a release
99
)
1010
__version__ = ".".join(map(str, version_info))

0 commit comments

Comments
 (0)