Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.pipelines
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
bob
bob.pipelines
Commits
abff7952
Verified
Commit
abff7952
authored
1 year ago
by
Yannick DAYER
Browse files
Options
Downloads
Patches
Plain Diff
doc(conf): update to use importlib.metadata
parent
3f1b0daf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/conf.py
+5
-5
5 additions, 5 deletions
doc/conf.py
with
5 additions
and
5 deletions
doc/conf.py
+
5
−
5
View file @
abff7952
#!/usr/bin/env python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
import
importlib.metadata
import
os
import
os
import
time
import
time
import
pkg_resources
import
sphinx_rtd_theme
import
sphinx_rtd_theme
# -- General configuration -----------------------------------------------------
# -- General configuration -----------------------------------------------------
...
@@ -38,7 +38,7 @@ nitpick_ignore = []
...
@@ -38,7 +38,7 @@ nitpick_ignore = []
# Allows the user to override warnings from a separate file
# Allows the user to override warnings from a separate file
if
os
.
path
.
exists
(
"
nitpick-exceptions.txt
"
):
if
os
.
path
.
exists
(
"
nitpick-exceptions.txt
"
):
for
line
in
open
(
"
nitpick-exceptions.txt
"
):
for
line
in
open
(
"
nitpick-exceptions.txt
"
):
if
line
.
strip
()
==
""
or
line
.
startswith
(
"
#
"
):
if
line
.
strip
()
==
""
or
line
.
strip
().
startswith
(
"
#
"
):
continue
continue
dtype
,
target
=
line
.
split
(
None
,
1
)
dtype
,
target
=
line
.
split
(
None
,
1
)
target
=
target
.
strip
()
target
=
target
.
strip
()
...
@@ -76,16 +76,16 @@ project = "bob.pipelines"
...
@@ -76,16 +76,16 @@ project = "bob.pipelines"
copyright
=
"
%s, Idiap Research Institute
"
%
time
.
strftime
(
"
%Y
"
)
copyright
=
"
%s, Idiap Research Institute
"
%
time
.
strftime
(
"
%Y
"
)
# Grab the setup entry
# Grab the setup entry
distribution
=
pkg_resources
.
require
(
project
)
[
0
]
distribution
=
importlib
.
metadata
.
version
(
project
)
# The version info for the project you're documenting, acts as replacement for
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# |version| and |release|, also used in various other places throughout the
# built documents.
# built documents.
#
#
# The short X.Y version.
# The short X.Y version.
version
=
distribution
.
version
version
=
distribution
# The full version, including alpha/beta/rc tags.
# The full version, including alpha/beta/rc tags.
release
=
distribution
.
version
release
=
distribution
# The language for content autogenerated by Sphinx. Refer to documentation
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
# for a list of supported languages.
...
...
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