Skip to content

Commit f005e7b

Browse files
authored
set versioningit in pyproject.toml (#201)
* remove `setup.py` * set versioningit in pyproject.toml
1 parent 47f7468 commit f005e7b

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

adaptive_scheduler/_server_support/slurm_run.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ def slurm_run(
6767
The goal of the adaptive run. If None, then the run will continue
6868
indefinitely.
6969
folder
70-
The folder to save the learners in.
70+
The folder to save the adaptive_scheduler files such as logs, database,
71+
and ``.sbatch`` files in.
7172
name
7273
The name of the job.
7374
num_threads

pyproject.toml

+14
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,22 @@ file = "README.rst"
6767
[project.scripts]
6868
adaptive-scheduler-launcher = "adaptive_scheduler._server_support.launcher:main"
6969

70+
[tool.setuptools.cmdclass]
71+
sdist = "versioningit.cmdclass.sdist"
72+
build_py = "versioningit.cmdclass.build_py"
73+
7074
[tool.versioningit]
7175

76+
[tool.versioningit.vcs]
77+
method = "git"
78+
match = ["v*"]
79+
default-tag = "0.0.0"
80+
81+
[tool.versioningit.format]
82+
dirty = "{version}.dev{distance}+{branch}.{vcs}{rev}.dirty"
83+
distance = "{version}.dev{distance}+{branch}.{vcs}{rev}"
84+
distance-dirty = "{version}.dev{distance}+{branch}.{vcs}{rev}.dirty"
85+
7286
[tool.versioningit.onbuild]
7387
build-file = "adaptive_scheduler/_version.py"
7488
source-file = "adaptive_scheduler/_version.py"

0 commit comments

Comments
 (0)