30 lines
670 B
Diff
30 lines
670 B
Diff
|
|
From 0d919288340cad7681c293c2f00111930a917bad Mon Sep 17 00:00:00 2001
|
||
|
|
From: caodongxia <315816521@qq.com>
|
||
|
|
Date: Tue, 26 Apr 2022 14:54:41 +0800
|
||
|
|
Subject: [PATCH] fix pkg version
|
||
|
|
|
||
|
|
---
|
||
|
|
setup.py | 10 +++++++++-
|
||
|
|
1 file changed, 9 insertions(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/setup.py b/setup.py
|
||
|
|
index 6068493..73e204e 100644
|
||
|
|
--- a/setup.py
|
||
|
|
+++ b/setup.py
|
||
|
|
@@ -1,3 +1,11 @@
|
||
|
|
+import io
|
||
|
|
+import re
|
||
|
|
+
|
||
|
|
from setuptools import setup
|
||
|
|
+with io.open("src/platformdirs/version.py", "rt", encoding="utf8") as f:
|
||
|
|
+ version = re.search(r'''__version__ = ['"]([0-9.]+)['"]''', f.read()).group(1)
|
||
|
|
|
||
|
|
-setup()
|
||
|
|
+setup(
|
||
|
|
+ name="platformdirs",
|
||
|
|
+ version=version,
|
||
|
|
+ )
|
||
|
|
--
|
||
|
|
2.27.0
|
||
|
|
|