Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #388 - Fix python driver build from source #389

Merged
merged 5 commits into from
Jan 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions drivers/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/)
Expand Down
2 changes: 1 addition & 1 deletion drivers/python/age/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Binary file added drivers/python/requirements.txt
Binary file not shown.
4 changes: 1 addition & 3 deletions drivers/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
]
Expand Down