Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Matthew White
gajim
Commits
5e8ef4a3
Commit
5e8ef4a3
authored
Jun 12, 2021
by
André
Committed by
Philipp Hörist
Jul 18, 2021
Browse files
Replace discouraged pkg_resources for Python 3.9+
See
https://setuptools.readthedocs.io/en/latest/pkg_resources.html
parent
15cf0e2a
Pipeline
#8012
passed with stages
in 7 minutes and 33 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
gajim/common/configpaths.py
View file @
5e8ef4a3
...
...
@@ -118,8 +118,12 @@ def __init__(self) -> None:
self
.
cache_root
=
Path
(
GLib
.
get_user_cache_dir
())
/
'gajim'
self
.
data_root
=
Path
(
GLib
.
get_user_data_dir
())
/
'gajim'
if
sys
.
version_info
<
(
3
,
9
):
import
pkg_resources
basedir
=
Path
(
pkg_resources
.
resource_filename
(
"gajim"
,
"."
))
else
:
import
importlib.resources
basedir
=
importlib
.
resources
.
files
(
'gajim'
)
source_paths
=
[
(
'DATA'
,
basedir
/
'data'
),
...
...
setup.cfg
View file @
5e8ef4a3
...
...
@@ -24,7 +24,7 @@ install_requires =
keyring
nbxmpp>=2.0.1
packaging
setuptools
setuptools
; python_version < '3.9'
precis-i18n>=1.0.0
pyOpenSSL>=16.2
pycairo>=1.16.0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment