Skip to content

Commit 401d61a

Browse files
ahmetmeleqrbiseck3
andauthored
fix: add neo4j to connectors registry (#310)
* add neo4j to registry, release * isolate imports * add networkx to neo4j reqs * make pip compile improvements * let go of release to include other PRs in release * add networkx to neo4k dependency file * fixtures update --------- Co-authored-by: Roman Isecke <[email protected]>
1 parent d7cdbaa commit 401d61a

File tree

11 files changed

+723
-707
lines changed

11 files changed

+723
-707
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
## 0.3.10-dev1
1+
## 0.3.10-dev2
22

33
### Enhancements
44

55
* **Support more concrete FileData content for batch support**
66

77
### Fixes
88

9+
* **Add Neo4J to ingest destination connector registry**
910
* **Fix closing SSHClient in sftp connector**
1011

1112
## 0.3.9

requirements/connectors/neo4j.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
neo4j
22
cymple
3+
networkx

requirements/connectors/neo4j.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# This file was autogenerated by uv via the following command:
2-
# uv pip compile ./connectors/neo4j.in --output-file ./connectors/neo4j.txt --no-strip-extras --python-version 3.9
3-
cymple==0.11.0
4-
# via -r ./connectors/neo4j.in
5-
neo4j==5.25.0
6-
# via -r ./connectors/neo4j.in
2+
# uv pip compile neo4j.in --output-file neo4j.txt --no-strip-extras --python-version 3.9
3+
cymple==0.12.0
4+
# via -r neo4j.in
5+
neo4j==5.27.0
6+
# via -r neo4j.in
7+
networkx==3.2.1
8+
# via -r neo4j.in
79
pytz==2024.2
810
# via neo4j

scripts/pip-compile.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,19 @@ set -e
55
# python version must match lowest supported (3.9)
66
python_version=${UV_PYTHON_VERSION:-"3.9"}
77

8+
# if major and minor python version (x.y) is not equal to current python_version, error out
9+
if [[ $(python --version | cut -d ' ' -f 2 | cut -d '.' -f 1-2) != $(echo "$python_version" | cut -d '.' -f 1-2) ]]; then
10+
echo "Python version must be $python_version (lowest supported) to be able to pip-compile."
11+
exit 1
12+
fi
13+
814
pushd ./requirements || exit
915

1016
find . -type f -name "*.txt" ! -name "constraints.txt" -exec rm '{}' ';'
1117
find . -type f -name "*.in" -print0 | while read -r -d $'\0' in_file; do
1218
echo "compiling $in_file"
13-
txt_file="${in_file//\.in/\.txt}"
19+
# remove .in extension and add .txt extension
20+
txt_file="${in_file%.in}.txt"
1421
uv pip compile --upgrade "$in_file" --output-file "$txt_file" --no-strip-extras --python-version "$python_version"
1522
done
1623
popd || exit

test_e2e/expected-structured-output/google-drive/fake.docx.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717
"date_created": "1686809759.687",
1818
"date_modified": "1686809743.0",
1919
"permissions_data": [
20+
{
21+
"id": "anyoneWithLink",
22+
"type": "anyone",
23+
"kind": "drive#permission",
24+
"role": "reader",
25+
"allowFileDiscovery": false
26+
},
2027
{
2128
"id": "18298851591250030956",
2229
"displayName": "[email protected]",
@@ -29,31 +36,24 @@
2936
"pendingOwner": false
3037
},
3138
{
32-
"id": "09147371668407854156",
33-
"displayName": "roman",
39+
"id": "04774006893477068632",
40+
"displayName": "ryan",
3441
"type": "user",
3542
"kind": "drive#permission",
36-
"photoLink": "https://lh3.googleusercontent.com/a-/ALV-UjWoGrFCgXcF6CtiBIBLnAfM68qUnQaJOcgvg3qzfQ3W8Ch6dA=s64",
37-
"emailAddress": "roman@unstructured.io",
38-
"role": "writer",
43+
"photoLink": "https://lh3.googleusercontent.com/a-/ALV-UjXeWpu7QcZuYqIl3p1mwqzS8XGFJ4RqA3Xjljfkm1DcFZ9M7A=s64",
44+
"emailAddress": "ryan@unstructured.io",
45+
"role": "owner",
3946
"deleted": false,
4047
"pendingOwner": false
4148
},
4249
{
43-
"id": "anyoneWithLink",
44-
"type": "anyone",
45-
"kind": "drive#permission",
46-
"role": "reader",
47-
"allowFileDiscovery": false
48-
},
49-
{
50-
"id": "04774006893477068632",
51-
"displayName": "ryan",
50+
"id": "09147371668407854156",
51+
"displayName": "roman",
5252
"type": "user",
5353
"kind": "drive#permission",
54-
"photoLink": "https://lh3.googleusercontent.com/a-/ALV-UjXeWpu7QcZuYqIl3p1mwqzS8XGFJ4RqA3Xjljfkm1DcFZ9M7A=s64",
55-
"emailAddress": "ryan@unstructured.io",
56-
"role": "owner",
54+
"photoLink": "https://lh3.googleusercontent.com/a-/ALV-UjWoGrFCgXcF6CtiBIBLnAfM68qUnQaJOcgvg3qzfQ3W8Ch6dA=s64",
55+
"emailAddress": "roman@unstructured.io",
56+
"role": "writer",
5757
"deleted": false,
5858
"pendingOwner": false
5959
}

test_e2e/expected-structured-output/google-drive/nested/fake.docx.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717
"date_created": "1718722775.76",
1818
"date_modified": "1718722788.018",
1919
"permissions_data": [
20+
{
21+
"id": "anyoneWithLink",
22+
"type": "anyone",
23+
"kind": "drive#permission",
24+
"role": "reader",
25+
"allowFileDiscovery": false
26+
},
2027
{
2128
"id": "18298851591250030956",
2229
"displayName": "[email protected]",
@@ -39,13 +46,6 @@
3946
"deleted": false,
4047
"pendingOwner": false
4148
},
42-
{
43-
"id": "anyoneWithLink",
44-
"type": "anyone",
45-
"kind": "drive#permission",
46-
"role": "reader",
47-
"allowFileDiscovery": false
48-
},
4949
{
5050
"id": "09147371668407854156",
5151
"displayName": "roman",

0 commit comments

Comments
 (0)