Skip to content

Commit 1c13bce

Browse files
Hunaid2000jrgemignani
authored andcommitted
Issue #388 - Fix python driver build from source (#389)
* 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
1 parent e7465ae commit 1c13bce

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

drivers/python/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,15 @@ AGType parser and driver support for [Apache AGE](https://age.apache.org/), grap
1111
```
1212
sudo apt-get update
1313
sudo apt-get install python3-dev libpq-dev
14-
pip install --no-binary :all: psycopg2
15-
pip install antlr4-python3-runtime==4.9.2
16-
17-
```
14+
git clone https://github.com/apache/age.git
15+
cd age/drivers/python
16+
```
17+
18+
### Install required packages
19+
```
20+
pip install -r requirements.txt
21+
```
22+
1823
### Test
1924
```
2025
python -m unittest -v test_age_py.py
@@ -23,18 +28,13 @@ python -m unittest -v test_agtypes.py
2328

2429
### Build from source
2530
```
26-
git clone https://github.com/apache/age.git
27-
cd age/drivers/python
28-
2931
python setup.py install
30-
3132
```
3233

3334
### Install from PyPi
3435

3536
```
3637
pip install apache-age-python
37-
3838
```
3939

4040
### For more information about [Apache AGE](https://age.apache.org/)

drivers/python/requirements.txt

158 Bytes
Binary file not shown.

drivers/python/setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,10 @@
2929
author_email = 'rhizome.ai@gmail.com',
3030
url = 'https://github.com/apache/age',
3131
license = 'Apache2.0',
32-
install_requires = [ 'psycopg2', 'antlr4-python3-runtime' ],
32+
install_requires = [ 'psycopg2', 'antlr4-python3-runtime==4.9.3'],
3333
packages = ['age', 'age.gen'],
3434
keywords = ['Graph Database', 'Apache AGE', 'PostgreSQL'],
3535
python_requires = '>=3.9',
36-
# package_data = {},
37-
# zip_safe=False,
3836
classifiers = [
3937
'Programming Language :: Python :: 3.9'
4038
]

0 commit comments

Comments
 (0)