Skip to content

Commit

Permalink
add hash to version
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-dvorak committed Apr 20, 2024
1 parent 7b786e8 commit 446934e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from setuptools.command.install import install
from shutil import copyfile
import os
import subprocess

# Read requirements.txt
with open('requirements.txt') as f:
Expand All @@ -26,9 +27,12 @@ def run(self):
os.makedirs('/usr/local/share/icons')
copyfile('media/icon_ust.png', '/usr/local/share/icons/icon_ust.png')

# Get the commit hash
commit_hash = subprocess.check_output(['git', 'rev-parse', 'HEAD']).decode().strip()

setup(
name='dosview',
version='0.1.5',
version=f'0.1.5-{commit_hash}',
description='A .dos file viewer',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 446934e

Please sign in to comment.