From 4926769d29adc23aaae65d24cba4388b4efaa3c4 Mon Sep 17 00:00:00 2001 From: mtjvc Date: Sun, 19 Jul 2020 21:48:20 +0200 Subject: [PATCH] Minor fixes --- README.rst | 2 +- docs/development.md | 10 ++++++++-- setup.py | 3 ++- src/queryparser/__init__.py | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index 2091f9a..0abe0e8 100644 --- a/README.rst +++ b/README.rst @@ -61,7 +61,7 @@ to install the generated parser in your virtual environment. Parsing MySQL and PostgreSQL -------------- +---------------------------- Parsing and processing of MySQL queries can be done by creating an instance of the ``MySQLQueryProcessor`` class diff --git a/docs/development.md b/docs/development.md index 130fb24..0ebc44e 100644 --- a/docs/development.md +++ b/docs/development.md @@ -117,11 +117,11 @@ walker = antlr4.ParseTreeWalker() walker.walk(listener, context) ``` -Listener is a class with methods that react each time the walker stumbles upon a rule +Listener is a class with methods that react each time the walker stumbles upon a rule defined in the parser part of the grammar. For example, if there is method called `enterAlias()` defined inside of a listener, it will be called once the walker reaches an `Alias` (as it is defined in the antlr parser file) in a -query (context). +query or another context. ### Indexed objects @@ -167,3 +167,9 @@ functions (spoint, scircle, sbox...). ## New releases +1. Change the version number in `src/queryparser/__init__.py` +2. `python setup.py sdist bdist_wheel` +3. `twine check dist/*` +4. `twine upload --repository-url https://test.pypi.org/legacy/ dist/*` +5. `twine upload dist/*` +6. Create a new release on github. diff --git a/setup.py b/setup.py index 3b0c2fd..f1e7c8e 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ requirements += ['typing'] setup( - name='queryparser-python%d' % python_version, + name='queryparser-python3', version=metadata['version'], author=metadata['author'], author_email=metadata['email'], @@ -31,6 +31,7 @@ description=u'Parses PostgreSQL/MySQL and translates ADQL to ' +\ 'PostgreSQL/MySQL.', long_description=open('README.rst').read(), + long_description_content_type='text/x-rst', install_requires=requirements, classifiers=[], packages=[ diff --git a/src/queryparser/__init__.py b/src/queryparser/__init__.py index ae3e9fe..8b48ec7 100644 --- a/src/queryparser/__init__.py +++ b/src/queryparser/__init__.py @@ -1,5 +1,5 @@ __title__ = 'queryparser' -__version__ = '0.4.6' +__version__ = '0.5.0' __author__ = 'Gal Matijevic' __email__ = 'gmatijevic@aip.de' __license__ = 'Apache-2.0'