appnexus / pyrobuf

A Cython alternative to Google's Python Protobuf library
Other
556 stars 71 forks source link

Version for generated package #155

Closed ChristianToepfer closed 1 year ago

ChristianToepfer commented 4 years ago

Missing VERISON number for pyrobuf-generated package. To admin the package detached from the generating process, a number is need. 0.0.0 is not enough! One solution would be to simply use the current date and time:

THE_TIME = datetime.now()
VERSION = f'''{THE_TIME.year}.{THE_TIME.month}.{THE_TIME.day}'''\
          f'''{THE_TIME.hour*3600+THE_TIME.minute*60+THE_TIME.second}'''

Other ideas?