Skip to content

Commit

Permalink
Uses git tags for version info
Browse files Browse the repository at this point in the history
  • Loading branch information
amarekano committed Nov 9, 2017
1 parent d6c7b3b commit a59f729
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion setup.py
Expand Up @@ -117,9 +117,17 @@ def get_package_data():
data[""].append(os.path.join(root, filename)[11:])
return data

def get_version():
version_cmd = ['git', 'describe', '--tags', '|' ,'cut', '-c', '1-5']

if platform == "linux2" or platform == "linux":
return subprocess.check_output(' '.join(version_cmd),shell=True)
elif platform == "win32":
return subprocess.check_output(version_cmd,shell=True)

setuptools.setup(
name = meta.name,
version = str(meta.version),
version = get_version(),
author = meta.vendor,
author_email = meta.contact,
description = meta.description,
Expand Down
2 changes: 1 addition & 1 deletion src/drozer/meta.py
Expand Up @@ -30,7 +30,7 @@ def __str__(self):

name = "drozer"
vendor = "MWR InfoSecurity"
version = Version("2.4.3", "2017-03-09")
version = Version("2.4.4", "2017-11-09")

contact = "drozer@mwrinfosecurity.com"
description = "The Leading Android Security Testing Framework"
Expand Down

0 comments on commit a59f729

Please sign in to comment.