Skip to content

Commit 9d80ef1

Browse files
committed
Merge branch 'main' into file_staging
2 parents 2190c87 + 9ff496b commit 9d80ef1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+266
-204
lines changed

.github/dependabot.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "pip"
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"
12+
versioning-strategy: auto
13+
allow:
14+
- dependency-name: "filelock"
15+
- dependency-name: "psutil"
16+
- dependency-name: "pystache"
17+
- dependency-name: "typeguard"
18+
- dependency-name: "packaging"
19+

.github/workflows/codespell.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v2
1717
- uses: codespell-project/actions-codespell@master
18+
with:
19+
ignore_words_list: assertIn

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
python-version: [3.7, 3.8, 3.9, 3.10]
17+
python-version: [3.8, 3.9, 3.10, 3.11, 3.12]
1818
runs-on: ubuntu-latest
1919

2020
steps:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ build/
2020
.packages/
2121
docs/.web-build
2222
web-build/
23+
.packages/

.mypy

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,3 @@ ignore_missing_imports = True
1616

1717
[mypy-pystache.*]
1818
ignore_missing_imports = True
19-
20-
[mypy-typing_compat.*]
21-
ignore_missing_imports = True

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include requirements.txt

QuickStart.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ This document will guide you through the install procedure and your first Hello
77
- [Hello World example](#hello-world)
88

99
## Requirements
10-
- python3.7+
10+
- python3.8+
1111

1212
## Install PSI/J
1313

1414
If you have conda installed you might want to start from a fresh environment. This part is not installing PSI/J but setting up a new environment with the specified python version:
1515

16-
1. `conda create -n psij python=3.7`
16+
1. `conda create -n psij python=3.8`
1717
2. `conda activate psij`
1818

1919

@@ -35,7 +35,7 @@ Install PSI/J from the GitHub repository:
3535
## Hello World
3636

3737
**Requirements**
38-
- python3.7
38+
- python3.8
3939
- Job executor, e.g. Slurm in this example
4040

4141
**Steps**
@@ -58,7 +58,7 @@ def make_job():
5858
spec.arguments = ['HELLO WORLD!']
5959

6060
# set project name if no default is specified
61-
# spec.attributes.project_name = <PROJECT_NAME>
61+
# spec.attributes.account = <PROJECT_NAME>
6262

6363
# set queue if no default is specified
6464
# spec.attributes.queue_name = <QUEUE_NAME>

docs/_static/extras.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ function detectAll(selectorType) {
8686
else if (text == "queue_name") {
8787
$(this).text("QUEUE_NAME");
8888
}
89-
else if (text == "project_name") {
90-
$(this).text("PROJECT_NAME");
89+
else if (text == "account") {
90+
$(this).text("ACCOUNT");
9191
}
9292
}
9393
if (text == '_get_executor_instance') {

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
autodoc_mock_imports = ['flux']
3232
nitpick_ignore = [
3333
('py:class', 'distutils.version.StrictVersion'),
34-
('py:class', 'distutils.version.Version')
34+
('py:class', 'distutils.version.Version'),
35+
('py:class', 'packaging.version.Version')
3536
]
3637

3738
if web_docs:

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)