add timestamp to pixelated-user-agent package too
authorKali Kaneko (leap communications) <kali@leap.se>
Wed, 13 Apr 2016 15:17:12 +0000 (11:17 -0400)
committerKali Kaneko <kali@futeisha.org>
Mon, 24 Jul 2017 18:38:11 +0000 (14:38 -0400)
service/setup.py

index d7fd160..d40366f 100644 (file)
 # You should have received a copy of the GNU Affero General Public License
 # along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
 
-from setuptools import setup
+import datetime
 import os
+from setuptools import setup
+import time
+
+now = datetime.datetime.now()
+timestamp = time.strftime('%Y%m%d', now.timetuple())
 
 
 def read(fname):
@@ -24,7 +29,7 @@ def read(fname):
 
 
 setup(name='pixelated-user-agent',
-      version='0.1',
+      version='0.1.%s' % timestamp,
       description='API to serve the pixelated front-end requests',
       long_description=read('README.md'),
       author='Thoughtworks',