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 3
3
4
4
bugfix
5
5
------
6
+ * fix #918: use packaging from setuptools for self-build
6
7
* fix #914: ignore the deprecated git archival plugin as its integrated now
7
8
* fix #912: ensure mypy safety of the version template + regression test
8
9
* fix #913: use 240s timeout instead of 20 for git unshallow
Original file line number Diff line number Diff line change 4
4
build-backend = " _own_version_helper"
5
5
requires = [
6
6
' importlib-metadata>=4.6; python_version < "3.10"' ,
7
- " packaging>=20" ,
8
7
" rich" ,
9
8
" setuptools>=61" ,
10
9
' tomli; python_version < "3.11"' ,
Original file line number Diff line number Diff line change 5
5
from typing import Type
6
6
from typing import Union
7
7
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
10
14
11
15
12
16
class NonNormalizedVersion (Version ):
You can’t perform that action at this time.
0 commit comments