Skip to content

Commit 95d81cd

Browse files
committed
add tag version
1 parent b29c29e commit 95d81cd

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

pproxy/__doc__.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
__title__ = "pproxy"
2-
__version__ = "2.4.7"
32
__license__ = "MIT"
43
__description__ = "Proxy server that can tunnel among remote servers by regex rules."
54
__keywords__ = "proxy socks http shadowsocks shadowsocksr ssr redirect pf tunnel cipher ssl udp"
65
__author__ = "Qian Wenjie"
76
__email__ = "[email protected]"
87
__url__ = "https://github.com/qwj/python-proxy"
98

9+
try:
10+
from setuptools_scm import get_version
11+
__version__ = get_version()+'dev'
12+
except Exception:
13+
try:
14+
from importlib.metadata import version
15+
__version__ = version("package-name")
16+
except Exception:
17+
__version__ = 'unknown'
18+
1019
__all__ = ['__version__', '__description__', '__url__']

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def find_value(name):
1414

1515
setup(
1616
name = find_value('title'),
17-
version = find_value('version'),
17+
use_scm_version = True,
1818
description = find_value('description'),
1919
long_description = read('README.rst'),
2020
url = find_value('url'),

0 commit comments

Comments
 (0)