Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Sluurp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tomotools
Sluurp
Commits
76290275
Commit
76290275
authored
2 months ago
by
Pierre-Olivier Autran
Browse files
Options
Downloads
Patches
Plain Diff
migration pyproject.toml
parent
36e8a837
No related branches found
No related tags found
1 merge request
!15
Migrate toml
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
doc/conf.py
+15
-2
15 additions, 2 deletions
doc/conf.py
pyproject.toml
+44
-2
44 additions, 2 deletions
pyproject.toml
setup.cfg
+0
-37
0 additions, 37 deletions
setup.cfg
setup.py
+0
-4
0 additions, 4 deletions
setup.py
with
59 additions
and
45 deletions
doc/conf.py
+
15
−
2
View file @
76290275
...
...
@@ -13,6 +13,10 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
import
os
import
sys
from
importlib
import
import_module
# -- General configuration ------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
...
...
@@ -43,7 +47,7 @@ master_doc = "index"
# General information about the project.
project
=
"
sluurp
"
copyright
=
"
2023-202
3
, ESRF
"
copyright
=
"
2023-202
5
, ESRF
"
author
=
"
ESRF
"
# The version info for the project you're documenting, acts as replacement for
...
...
@@ -51,7 +55,16 @@ author = "ESRF"
# built documents.
#
# The short X.Y version.
version
=
"
0.3
"
# Add the path to the src directory to sys.path for imports
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
"
../src
"
))
# Dynamically retrieve the version from the package's __init__.py
try
:
package_name
=
"
sluurp
"
# Replace with your actual package name if different
version
=
import_module
(
f
"
{
package_name
}
"
).
__version__
except
ImportError
as
e
:
raise
RuntimeError
(
f
"
Could not import
{
package_name
}
to retrieve version:
{
e
}
"
)
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
+
44
−
2
View file @
76290275
[project]
name
=
"sluurp"
dynamic
=
[
"version"
]
authors
=
[
{
name
=
"ESRF"
,
email
=
"henri.payno@esrf.fr"
}
]
description
=
"API to submit shell scripts through Slurm SBATCH"
readme
=
{
file
=
"README.md"
,
content-type
=
"text/markdown"
}
license
=
{
text
=
"MIT"
}
requires-python
=
">
=
3.8
"
classifiers
=
[
"Intended Audience :: Science/Research"
,
"License :: OSI Approved :: MIT License"
,
"Programming Language :: Python :: 3"
]
[project.urls]
Source
=
"https://gitlab.esrf.fr/tomotools/sluurp"
Documentation
=
"https://tomotools.gitlab-pages.esrf.fr/sluurp/"
Tracker
=
"https://gitlab.esrf.fr/tomotools/sluurp/issues"
[project.optional-dependencies]
doc
=
[
"Sphinx>
=
4.0
.
0
",
"nbsphinx"
,
"pandoc"
,
"jupyterlab"
,
"pydata_sphinx_theme"
]
test
=
[
"pytest"
]
[build-system]
requires
=
[
"setuptools>
=
46.4
",
"wheel"
,
"setuptools>
=
61.0
",
"wheel"
]
build-backend
=
"setuptools.build_meta"
[tool.setuptools.dynamic]
version
=
{
attr
=
"sluurp.__version__"
}
[tool.setuptools.packages.find]
where
=
[
"src"
]
[tool.setuptools]
package-dir
=
{
""
=
"src"
}
This diff is collapsed.
Click to expand it.
setup.cfg
deleted
100644 → 0
+
0
−
37
View file @
36e8a837
[metadata]
name
=
sluurp
version
=
attr: sluurp.__version__
author
=
ESRF
author_email
=
henri.payno@esrf.fr
description
=
API to submit shell script through slurm SBATCH
long_description
=
file: README.md
long_description_content_type
=
text/markdown
license
=
MIT
url
=
https://gitlab.esrf.fr/tomotools/sluurp
project_urls
=
Source = https://gitlab.esrf.fr/tomotools/sluurp
Documentation
=
https://tomotools.gitlab-pages.esrf.fr/sluurp/
Tracker
=
https://gitlab.esrf.fr/tomotools/sluurp/issues
classifiers
=
Intended Audience :: Science/Research
License
::
OSI
Approved
::
MIT
License
Programming
Language
::
Python
::
3
[options]
package_dir
=
=src
packages
=
find:
python_requires
=
>=3.6
[options.packages.find]
where
=
src
[options.extras_require]
doc
=
Sphinx>=4.0.0
nbsphinx
pandoc
jupyterlab
pydata_sphinx_theme
test
=
pytest
This diff is collapsed.
Click to expand it.
setup.py
deleted
100644 → 0
+
0
−
4
View file @
36e8a837
import
setuptools
if
__name__
==
"
__main__
"
:
setuptools
.
setup
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment