Skip to content

Commit

Permalink
Merge pull request #284 from asottile-sentry/asottile-fix-version
Browse files Browse the repository at this point in the history
ref: fix version lookup and package build from source
  • Loading branch information
trent-codecov authored Oct 5, 2023
2 parents f3a1651 + 4c02e1a commit 486c076
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 4 additions & 1 deletion codecov_cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
__version__ = '0.3.6'
import importlib.metadata


__version__ = importlib.metadata.version('codecov-cli')
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@
with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()

with open(path.join(here, "VERSION"), encoding="utf-8") as f:
version = f.readline().strip()

setup(
name="codecov-cli",
version=version,
version='0.3.6',
packages=find_packages(exclude=["contrib", "docs", "tests*"]),
description="Codecov Command Line Interface",
long_description=long_description,
Expand All @@ -34,6 +31,7 @@
"codecovcli = codecov_cli.main:run",
],
},
python_requires=">=3.8",
ext_modules=[
Extension(
"staticcodecov_languages",
Expand Down

0 comments on commit 486c076

Please sign in to comment.