Skip to content

Commit bdb84ba

Browse files
authored
refactor(stdlibs): remove dropped 3.8 mapping (#910)
1 parent 9f7391f commit bdb84ba

File tree

2 files changed

+2
-220
lines changed

2 files changed

+2
-220
lines changed

python/deptry/stdlibs.py

Lines changed: 1 addition & 219 deletions
Original file line numberDiff line numberDiff line change
@@ -8,224 +8,6 @@
88
from __future__ import annotations
99

1010
STDLIBS_PYTHON = {
11-
"38": frozenset({
12-
"__future__",
13-
"_ast",
14-
"_dummy_thread",
15-
"_thread",
16-
"abc",
17-
"aifc",
18-
"argparse",
19-
"array",
20-
"ast",
21-
"asynchat",
22-
"asyncio",
23-
"asyncore",
24-
"atexit",
25-
"audioop",
26-
"base64",
27-
"bdb",
28-
"binascii",
29-
"binhex",
30-
"bisect",
31-
"builtins",
32-
"bz2",
33-
"cProfile",
34-
"calendar",
35-
"cgi",
36-
"cgitb",
37-
"chunk",
38-
"cmath",
39-
"cmd",
40-
"code",
41-
"codecs",
42-
"codeop",
43-
"collections",
44-
"colorsys",
45-
"compileall",
46-
"concurrent",
47-
"configparser",
48-
"contextlib",
49-
"contextvars",
50-
"copy",
51-
"copyreg",
52-
"crypt",
53-
"csv",
54-
"ctypes",
55-
"curses",
56-
"dataclasses",
57-
"datetime",
58-
"dbm",
59-
"decimal",
60-
"difflib",
61-
"dis",
62-
"distutils",
63-
"doctest",
64-
"dummy_threading",
65-
"email",
66-
"encodings",
67-
"ensurepip",
68-
"enum",
69-
"errno",
70-
"faulthandler",
71-
"fcntl",
72-
"filecmp",
73-
"fileinput",
74-
"fnmatch",
75-
"formatter",
76-
"fractions",
77-
"ftplib",
78-
"functools",
79-
"gc",
80-
"getopt",
81-
"getpass",
82-
"gettext",
83-
"glob",
84-
"grp",
85-
"gzip",
86-
"hashlib",
87-
"heapq",
88-
"hmac",
89-
"html",
90-
"http",
91-
"imaplib",
92-
"imghdr",
93-
"imp",
94-
"importlib",
95-
"inspect",
96-
"io",
97-
"ipaddress",
98-
"itertools",
99-
"json",
100-
"keyword",
101-
"lib2to3",
102-
"linecache",
103-
"locale",
104-
"logging",
105-
"lzma",
106-
"mailbox",
107-
"mailcap",
108-
"marshal",
109-
"math",
110-
"mimetypes",
111-
"mmap",
112-
"modulefinder",
113-
"msilib",
114-
"msvcrt",
115-
"multiprocessing",
116-
"netrc",
117-
"nis",
118-
"nntplib",
119-
"ntpath",
120-
"numbers",
121-
"operator",
122-
"optparse",
123-
"os",
124-
"ossaudiodev",
125-
"parser",
126-
"pathlib",
127-
"pdb",
128-
"pickle",
129-
"pickletools",
130-
"pipes",
131-
"pkgutil",
132-
"platform",
133-
"plistlib",
134-
"poplib",
135-
"posix",
136-
"posixpath",
137-
"pprint",
138-
"profile",
139-
"pstats",
140-
"pty",
141-
"pwd",
142-
"py_compile",
143-
"pyclbr",
144-
"pydoc",
145-
"queue",
146-
"quopri",
147-
"random",
148-
"re",
149-
"readline",
150-
"reprlib",
151-
"resource",
152-
"rlcompleter",
153-
"runpy",
154-
"sched",
155-
"secrets",
156-
"select",
157-
"selectors",
158-
"shelve",
159-
"shlex",
160-
"shutil",
161-
"signal",
162-
"site",
163-
"smtpd",
164-
"smtplib",
165-
"sndhdr",
166-
"socket",
167-
"socketserver",
168-
"spwd",
169-
"sqlite3",
170-
"sre",
171-
"sre_compile",
172-
"sre_constants",
173-
"sre_parse",
174-
"ssl",
175-
"stat",
176-
"statistics",
177-
"string",
178-
"stringprep",
179-
"struct",
180-
"subprocess",
181-
"sunau",
182-
"symbol",
183-
"symtable",
184-
"sys",
185-
"sysconfig",
186-
"syslog",
187-
"tabnanny",
188-
"tarfile",
189-
"telnetlib",
190-
"tempfile",
191-
"termios",
192-
"test",
193-
"textwrap",
194-
"threading",
195-
"time",
196-
"timeit",
197-
"tkinter",
198-
"token",
199-
"tokenize",
200-
"trace",
201-
"traceback",
202-
"tracemalloc",
203-
"tty",
204-
"turtle",
205-
"turtledemo",
206-
"types",
207-
"typing",
208-
"unicodedata",
209-
"unittest",
210-
"urllib",
211-
"uu",
212-
"uuid",
213-
"venv",
214-
"warnings",
215-
"wave",
216-
"weakref",
217-
"webbrowser",
218-
"winreg",
219-
"winsound",
220-
"wsgiref",
221-
"xdrlib",
222-
"xml",
223-
"xmlrpc",
224-
"zipapp",
225-
"zipfile",
226-
"zipimport",
227-
"zlib",
228-
}),
22911
"39": frozenset({
23012
"__future__",
23113
"_ast",
@@ -443,5 +225,5 @@
443225
"zipimport",
444226
"zlib",
445227
"zoneinfo",
446-
}),
228+
})
447229
}

scripts/generate_stdlibs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
STDLIB_MODULES_URL = "https://docs.python.org/{}.{}/py-modindex.html"
1414

1515
# Starting from Python 3.10, https://docs.python.org/3/library/sys.html#sys.stdlib_module_names is available.
16-
PYTHON_VERSIONS = ((3, 8), (3, 9))
16+
PYTHON_VERSIONS = ((3, 9),)
1717

1818
# Modules that are in stdlib, but undocumented.
1919
EXTRA_STDLIBS_MODULES = ("_ast", "ntpath", "posixpath", "sre", "sre_constants", "sre_compile", "sre_parse")

0 commit comments

Comments
 (0)