-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build system changes, doc fixes, few attribute renames (#359)
* pyslurm.Job: add attribute run_time_remaining * pyslurm.JobStep: add run_time_remaining and elapsed_cpu_time attributes * rename __version__.py to just version.py * update doc_requirements to exclude cython 3.1.* releases * mkdocs.yml updates * move flake8 config to pyproject.toml * move away from invoking setup.py directly * build.sh: use pip install * rename pyslurm.pyx to deprecated.pyx anything in there is effectively the old api, which is considered deprecated. The name change doesn't affect anything, because all the stuff is wildcard-imported anyway. But it prevents the documentation from being built due to circular alias errors. * add first working pyslurm.spec file for building rpms * ability to provide core-count for builddocs.sh * remove configure.sh script obsolete, should use a slurm-container solution for testing and dev * remove run_tests* scripts * add cython-lint config, update flake8 config * remove cython.cfg, flake8 config is in pyproject.toml * update tox.ini * pyslurm.JobStep: rename step.alloc_cpus to step.cpus * update copyright for docs * doc: add JobStepStatistics * core job+step: fix docs
- Loading branch information
Showing
46 changed files
with
289 additions
and
379 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
cython>=3.0.0b1 | ||
cython>=3.0.11,<3.1 | ||
wheel | ||
setuptools | ||
mkdocstrings[python] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ title: JobStatistics | |
--- | ||
|
||
::: pyslurm.db.JobStatistics | ||
::: pyslurm.db.JobStepStatistics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,33 @@ | ||
[build-system] | ||
# Minimum requirements | ||
build-backend = "setuptools.build_meta" | ||
requires = [ | ||
"setuptools>=59.2.0", | ||
"wheel>=0.37.0", | ||
"Cython>=0.29.37", | ||
"packaging>=21.3" | ||
] | ||
|
||
[tool.flake8] | ||
filename = ["*.py", "*.pyx", "*.pxd"] | ||
max-line-length = 80 | ||
exclude = [ | ||
".git", | ||
"__pycache__", | ||
".eggs", | ||
"*.egg", | ||
"build", | ||
"tests", | ||
"examples", | ||
"scripts", | ||
] | ||
extend-ignore = ["E203", "E901", "E225", "E226", "E227", "E999"] | ||
|
||
[tool.cython-lint] | ||
max-line-length = 80 | ||
ignore = ['E503', 'E504'] | ||
exclude = 'deprecated.pyx' | ||
|
||
[tool.codespell] | ||
skip = '.git,*.pdf,*.svg,*.lock,*.css' | ||
check-hidden = true | ||
# ignore-regex = '' | ||
# ignore some variables etc | ||
ignore-words-list = 'mmaped,splitted' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
%define python3_pkgversion 3.11 | ||
|
||
Name: python-pyslurm | ||
Version: 24.5.0 | ||
%define rel 1 | ||
Release: %{rel}%{?dist} | ||
Summary: Python interface to Slurm | ||
License: GPLv2+ | ||
URL: https://github.com/PySlurm/pyslurm | ||
Source: pyslurm-%{version}.tar.gz | ||
|
||
BuildRequires: python%{python3_pkgversion}-devel | ||
BuildRequires: python%{python3_pkgversion}-setuptools | ||
BuildRequires: python%{python3_pkgversion}-wheel | ||
BuildRequires: python%{python3_pkgversion}-Cython | ||
BuildRequires: python%{python3_pkgversion}-packaging | ||
BuildRequires: python-rpm-macros | ||
BuildRequires: slurm-devel >= 24.05.0 | ||
BuildRequires: slurm >= 24.05.0 | ||
Requires: python%{python3_pkgversion} | ||
|
||
%description | ||
pyslurm is a Python interface to Slurm | ||
|
||
%package -n python%{python3_pkgversion}-pyslurm | ||
Summary: %{summary} | ||
|
||
%description -n python%{python3_pkgversion}-pyslurm | ||
pyslurm is a Python interface to Slurm | ||
|
||
%prep | ||
%autosetup -p1 -n pyslurm-%{version} | ||
|
||
%generate_buildrequires | ||
%pyproject_buildrequires -R | ||
|
||
%build | ||
%pyproject_wheel | ||
|
||
%install | ||
%pyproject_install | ||
%pyproject_save_files pyslurm | ||
|
||
%files -f %{pyproject_files} | ||
%license COPYING.txt | ||
%doc README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.