diff --git a/drivers/python/README.md b/drivers/python/README.md index ab7573236..9f365af08 100644 --- a/drivers/python/README.md +++ b/drivers/python/README.md @@ -11,9 +11,15 @@ AGType parser and driver support for [Apache AGE](https://age.apache.org/), grap ``` sudo apt-get update sudo apt-get install python3-dev libpq-dev -pip install --no-binary :all: psycopg2 -pip install antlr4-python3-runtime==4.9.2 +git clone https://github.com/apache/age.git +cd age/drivers/python +``` + +### Install required packages +``` +pip install -r requirements.txt ``` + ### Test ``` python -m unittest -v test_age_py.py @@ -22,18 +28,13 @@ python -m unittest -v test_agtypes.py ### Build from source ``` -git clone https://github.com/apache/age.git -cd age/drivers/python - python setup.py install - ``` ### Install from PyPi ``` pip install apache-age-python - ``` ### For more information about [Apache AGE](https://age.apache.org/) diff --git a/drivers/python/age/exceptions.py b/drivers/python/age/exceptions.py index 7bbb5b4be..cee9cc3be 100644 --- a/drivers/python/age/exceptions.py +++ b/drivers/python/age/exceptions.py @@ -59,7 +59,7 @@ def __init__(self, msg, cause): super().__init__(msg, cause) def __repr__(self) : - return 'SqlExcution [' + self.msg + ']' + return 'SqlExecution [' + self.msg + ']' class AGTypeError(Exception): def __init__(self, msg, cause): diff --git a/drivers/python/requirements.txt b/drivers/python/requirements.txt new file mode 100644 index 000000000..918763cbf Binary files /dev/null and b/drivers/python/requirements.txt differ diff --git a/drivers/python/setup.py b/drivers/python/setup.py index 7d8981fab..a7979a262 100644 --- a/drivers/python/setup.py +++ b/drivers/python/setup.py @@ -29,12 +29,10 @@ author_email = 'rhizome.ai@gmail.com', url = 'https://github.com/apache/age', license = 'Apache2.0', - install_requires = [ 'psycopg2', 'antlr4-python3-runtime' ], + install_requires = [ 'psycopg2', 'antlr4-python3-runtime==4.9.3'], packages = ['age', 'age.gen'], keywords = ['Graph Database', 'Apache AGE', 'PostgreSQL'], python_requires = '>=3.9', - # package_data = {}, - # zip_safe=False, classifiers = [ 'Programming Language :: Python :: 3.9' ]