We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 661d46d + b3c28e3 commit d00edacCopy full SHA for d00edac
setup.py
@@ -1,13 +1,19 @@
1
#!/usr/bin/env python3
2
3
from setuptools import setup, find_packages
4
-from twocaptcha import __version__
+import re
5
6
with open("README.md", "r") as fh:
7
long_description = fh.read()
8
9
+
10
+def get_version():
11
+ with open('twocaptcha/__init__.py', 'r') as f:
12
+ return re.search(r'__version__ = ["\'](.*?)["\']', f.read()).group(1)
13
14
15
setup(name='2captcha-python',
- version=__version__,
16
+ version=get_version(),
17
description='Python module for easy integration with 2Captcha API',
18
long_description=long_description,
19
long_description_content_type="text/markdown",
0 commit comments