Skip to content

Commit

Permalink
generalize version for release
Browse files Browse the repository at this point in the history
  • Loading branch information
harelba committed Feb 8, 2020
1 parent 578d931 commit 7c804a6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
7 changes: 7 additions & 0 deletions bin/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env python

q_version = '2.0.10'


if __name__ == '__main__':
print(q_version)
3 changes: 1 addition & 2 deletions bin/q.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

q_version = "2.0.9"
from __version__ import q_version

__all__ = [ 'QTextAsData' ]

Expand Down
2 changes: 1 addition & 1 deletion do-manual-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

VERSION=2.0.9
VERSION=$(bin/__version__.py)

echo "Packing binary for $TRAVIS_OS_NAME"

Expand Down
9 changes: 0 additions & 9 deletions mkdocs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,4 @@ markdown_extensions:
# - codehilite


##<!-- Global site tag (gtag.js) - Google Analytics -->
##<script async src="https://www.googletagmanager.com/gtag/js?id=UA-48316355-1"></script>
##<script>
## window.dataLayer = window.dataLayer || [];
## function gtag(){dataLayer.push(arguments);}
## gtag('js', new Date());
##
## gtag('config', 'UA-48316355-1');
## </script>

4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

from setuptools import setup

from bin.__version__ import q_version

setup(
name='q',
url='https://github.com/harelba/q',
license='LICENSE',
version='2.0.9',
version=q_version,
author='Harel Ben-Attia',
description="Run SQL directly on CSV or TSV files",
author_email='[email protected]',
Expand Down

0 comments on commit 7c804a6

Please sign in to comment.