Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-indexer
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
Model registry
Operate
Environments
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
Platform
Development
swh-indexer
Commits
e4c13018
Verified
Commit
e4c13018
authored
1 month ago
by
Antoine Lambert
Browse files
Options
Downloads
Patches
Plain Diff
Migrate from deprecated pkg_resources package to importlib.metadata
parent
213e964a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!546
Migrate from deprecated pkg_resources package to importlib.metadata
Pipeline
#13552
passed
3 weeks ago
Stage: external
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swh/indexer/metadata.py
+3
-3
3 additions, 3 deletions
swh/indexer/metadata.py
with
3 additions
and
3 deletions
swh/indexer/metadata.py
+
3
−
3
View file @
e4c13018
# Copyright (C) 2017-202
4
The Software Heritage developers
# Copyright (C) 2017-202
5
The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
...
...
@@ -6,6 +6,7 @@
from
copy
import
deepcopy
import
datetime
import
hashlib
from
importlib.metadata
import
version
import
logging
import
re
import
time
...
...
@@ -24,7 +25,6 @@ from typing import (
import
urllib.parse
from
urllib.parse
import
urlparse
import
pkg_resources
import
sentry_sdk
from
swh.core.config
import
merge_configs
...
...
@@ -297,7 +297,7 @@ class ContentMetadataIndexer(ContentIndexer[ContentMetadataRow]):
DEFAULT_CONFIG
:
Dict
[
str
,
Any
]
=
{
"
tools
"
:
{
"
name
"
:
"
swh.indexer.metadata
"
,
"
version
"
:
pkg_resources
.
get_distribut
ion
(
"
swh.indexer
"
)
.
version
,
"
version
"
:
vers
ion
(
"
swh.indexer
"
),
"
configuration
"
:
{},
},
}
...
...
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