Version updated to 0.2.0
authorJavier Sancho <jsf@jsancho.org>
Thu, 31 May 2018 07:41:30 +0000 (09:41 +0200)
committerJavier Sancho <jsf@jsancho.org>
Thu, 31 May 2018 07:41:30 +0000 (09:41 +0200)
VERSION [new file with mode: 0644]
setup.py

diff --git a/VERSION b/VERSION
new file mode 100644 (file)
index 0000000..0ea3a94
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+0.2.0
index 04f4253..42b8ea4 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,9 @@
 from setuptools import setup
 import os
 
-VERSION = '0.1'
-
+def get_version():
+    with open('VERSION') as fd:
+        return fd.read()
 
 def get_long_description():
     with open(os.path.join(
@@ -13,13 +14,13 @@ def get_long_description():
 
 setup(
     name='datasette-pytables',
+    version=get_version(),
     description='Datasette connector for loading pytables files (.h5)',
     long_description=get_long_description(),
     long_description_content_type='text/markdown',
     author='Javier Sancho',
     url='https://github.com/jsancho-gpl/datasette-pytables',
     license='Apache License, Version 2.0',
-    version=VERSION,
     packages=['datasette_pytables'],
     entry_points={
         'datasette.connectors': [