Skip to content

Commit

Permalink
setup.py now determines version number dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtalhaasghar committed Jan 17, 2022
1 parent dec276f commit bcd9443
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file is used by clients to check for updates

version 1.0.2
version 1.0.3

10 changes: 9 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,17 @@

from setuptools import setup

def get_version_number():
f = open("VERSION")
version = None
for i in f.readlines():
if 'version' in i:
version = i.split()[-1].strip()
return lines[-1].strip()

options = dict(
name="yewtube",
version="1.0.2",
version=get_version_number(),
description="Terminal based YouTube player and downloader",
keywords=["video", "music", "audio", "youtube", "stream", "download"],
author="talha_programmer",
Expand Down

0 comments on commit bcd9443

Please sign in to comment.