Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1b43166

Browse files
committed
Group setup.py imports
While setuptools has official status, it is not actually part ofthe standard library (and since Python 3.12 cannot be treated as ifit is, since it is not installed by default), so its imports belongin the second group rather than the first, per PEP-8.
1 parente880c33 commit1b43166

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#!/usr/bin/env python
22

3+
importos
4+
importsys
35
fromtypingimportSequence
6+
47
fromsetuptoolsimportsetup,find_packages
58
fromsetuptools.command.build_pyimportbuild_pyas_build_py
69
fromsetuptools.command.sdistimportsdistas_sdist
7-
importos
8-
importsys
10+
911

1012
withopen(os.path.join(os.path.dirname(__file__),"VERSION"),encoding="utf-8")asver_file:
1113
VERSION=ver_file.readline().strip()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp