Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit 4c02e1a

Browse files
ref: fix version lookup and package build from source
1 parent f3a1651 commit 4c02e1a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

codecov_cli/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
__version__ = '0.3.6'
1+
import importlib.metadata
2+
3+
4+
__version__ = importlib.metadata.version('codecov-cli')

setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@
88
with open(path.join(here, "README.md"), encoding="utf-8") as f:
99
long_description = f.read()
1010

11-
with open(path.join(here, "VERSION"), encoding="utf-8") as f:
12-
version = f.readline().strip()
13-
1411
setup(
1512
name="codecov-cli",
16-
version=version,
13+
version='0.3.6',
1714
packages=find_packages(exclude=["contrib", "docs", "tests*"]),
1815
description="Codecov Command Line Interface",
1916
long_description=long_description,
@@ -34,6 +31,7 @@
3431
"codecovcli = codecov_cli.main:run",
3532
],
3633
},
34+
python_requires=">=3.8",
3735
ext_modules=[
3836
Extension(
3937
"staticcodecov_languages",

0 commit comments

Comments
 (0)