Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mtjvc committed Jul 19, 2020
1 parent e33aae5 commit 4926769
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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=[
Expand Down
2 changes: 1 addition & 1 deletion src/queryparser/__init__.py
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 4926769

Please sign in to comment.