File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 33
44bugfix
55------
6+ * fix #918: use packaging from setuptools for self-build
67* fix #914: ignore the deprecated git archival plugin as its integrated now
78* fix #912: ensure mypy safety of the version template + regression test
89* fix #913: use 240s timeout instead of 20 for git unshallow
Original file line number Diff line number Diff line change 44build-backend = " _own_version_helper"
55requires = [
66 ' importlib-metadata>=4.6; python_version < "3.10"' ,
7- " packaging>=20" ,
87 " rich" ,
98 " setuptools>=61" ,
109 ' tomli; python_version < "3.11"' ,
Original file line number Diff line number Diff line change 55from typing import Type
66from typing import Union
77
8- from packaging .version import InvalidVersion
9- from packaging .version import Version as Version
8+ try :
9+ from packaging .version import InvalidVersion
10+ from packaging .version import Version as Version
11+ except ImportError :
12+ from setuptools .extern .packaging .version import InvalidVersion # type: ignore
13+ from setuptools .extern .packaging .version import Version as Version # type: ignore
1014
1115
1216class NonNormalizedVersion (Version ):
You can’t perform that action at this time.
0 commit comments