Skip to content

Commit

Permalink
Issue #388 - Fix python driver build from source (#389)
Browse files Browse the repository at this point in the history
* Fixed a bug where python driver throws error when build from source

* Moved required packages to requirements.txt

* Update Readme

Rearranged instructions and added instructions to install from requirements.txt

* Fixed a typo in exceptions.py file

Fixed a typo 'SqlExcution' on line 62 in exceptions.py file
  • Loading branch information
Hunaid2000 authored and jrgemignani committed Jan 6, 2023
1 parent e7465ae commit 1c13bce
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
18 changes: 9 additions & 9 deletions drivers/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +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 @@ -23,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
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

0 comments on commit 1c13bce

Please sign in to comment.