Skip to content

Commit c0613af

Browse files
committed
Fixed ModuleNotFoundError
1 parent 39b9a5c commit c0613af

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

codeforces_api/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.0.4"
1+
__version__ = "2.0.5"

setup.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
"""
22
Install script for CodeforcesApiPy module
33
"""
4+
import re
5+
46
from setuptools import setup
5-
from codeforces_api.version import __version__
7+
8+
with open(
9+
"codeforces_api/version.py", "r", encoding="utf-8"
10+
) as f:
11+
version = re.search(r"^__version__\s*=\s*\"(.*)\".*$", f.read(), flags=re.MULTILINE).group(1)
612

713
setup(
814
name="CodeforcesApiPy",
9-
version=__version__,
15+
version=version,
1016
description="Implementation of codeforces.com API",
1117
platforms="any",
1218
url="https://github.com/VadVergasov/CodeforcesApiPy",

0 commit comments

Comments
 (0)