summarylogtreecommitdiffstats
path: root/xdg-base-dirs.patch
blob: c74caecb631be9610ae4153fc38460fa9be7382a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
diff --git a/pyproject.toml b/pyproject.toml
index 66cb712..df9a0d6 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -24,14 +24,14 @@ authors = [
     {name = "Lyz", email = "lyz@riseup.net"},
 ]
 license = {text = "GPL-3.0-only"}
-requires-python = ">=3.8"
+requires-python = ">=3.10"
 dependencies = [
     "click>=8.1.3",
     "autoflake>=1.4",
     "pyprojroot>=0.2.0",
     "sh>=1.14.2",
     "maison>=1.4.0",
-    "xdg>=6.0.0",
+    "xdg-base-dirs>=6.0.0",
 ]
 name = "autoimport"
 description = "Autoimport missing python libraries."
@@ -44,8 +44,6 @@ classifiers=[
     "Operating System :: POSIX",
     "Programming Language :: Python",
     "Programming Language :: Python :: 3",
-    "Programming Language :: Python :: 3.8",
-    "Programming Language :: Python :: 3.9",
     "Programming Language :: Python :: 3.10",
     "Programming Language :: Python :: 3.11",
     "Topic :: Utilities",
@@ -381,6 +379,6 @@ module = [
     "pyprojroot",
     "sh",
     "virtualenv",
-    "xdg",
+    "xdg_base_dirs",
 ]
 ignore_missing_imports = true
diff --git a/src/autoimport/entrypoints/cli.py b/src/autoimport/entrypoints/cli.py
index 0c2ca98..9a67ddd 100644
--- a/src/autoimport/entrypoints/cli.py
+++ b/src/autoimport/entrypoints/cli.py
@@ -6,9 +6,7 @@ from typing import IO, Any, List, Optional, Sequence, Tuple, Union
 
 import click
 
-# Migrate away from xdg to xdg-base-dirs once only Python >= 3.10 is supported
-# https://github.com/lyz-code/autoimport/issues/239
-import xdg
+import xdg_base_dirs as xdg
 from maison.config import ProjectConfig
 
 from autoimport import services, version