Skip to content

Commit

Permalink
use file date and not clock
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-mangin committed Jul 15, 2024
1 parent c03dee9 commit e34644d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/exabgp/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
import sys
from datetime import datetime

commit = "99de31e8"
release = "5.0.0-%s+uncontrolled" % datetime.now().strftime('%Y%m%d')
modification_time = modification_time = os.path.getmtime(os.path.abspath(__file__))
date = datetime.fromtimestamp(modification_time)

commit = "unset"
release = "5.0.0-%s+uncontrolled" % date.strftime('%Y%m%d')
json = "5.0.0"
text = "5.0.0"
version = os.environ.get('EXABGP_VERSION', release)
Expand Down

0 comments on commit e34644d

Please sign in to comment.