Skip to content

Commit b6cbd0b

Browse files
committed
Pin apispec, add variables
1 parent a9c1644 commit b6cbd0b

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

Pipfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ pytest = "*"
88
zappa = "*"
99

1010
[packages]
11-
flask-apispec = "*"
12-
flask-restful = "*"
11+
flask-apispec = "==0.9.0"
1312
webargs = "*"
13+
flask-restful = "*"
14+
postal = "*"
1415

1516
[requires]
16-
python_version = "3.7"
17+
python_version = "3.8"

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ PKG_CONFIG_PATH /mnt/efs/libpostal_lib/lib/pkgconfig
4444
* Add EFS to Lambda:
4545
Use the same VPC
4646
configure subnets for public access
47+
48+
curl -X POST "https://fe5k5zd4k4.execute-api.us-west-2.amazonaws.com/dev/parse" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"address\": \"5760 Teredo St., Sechelt, BC, Canada, VON 3A0\"}"

settings.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ audience = Developers
1515
language = English
1616
status = 2
1717

18-
requirements = zappa flask-apispec flask-restful webargs postal
18+
requirements = zappa flask-apispec flask-restful webargs postal pytest
1919
# Optional. Same format as setuptools dependency-links
2020
# dep_links =
2121

zappa_settings.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"project_name": "address-parser",
88
"runtime": "python3.7",
99
"s3_bucket": "zappa-address-parser",
10-
"memory_size": 3008
10+
"memory_size": 3008,
11+
"environment_variables": {
12+
"LD_LIBRARY_PATH": "/mnt/efs/libpostal_lib/lib",
13+
"LIBPOSTAL_DATA_DIR": "/mnt/efs/libpostal_data/libpostal",
14+
"PKG_CONFIG_PATH": "/mnt/efs/libpostal_lib/lib/pkgconfig"
15+
}
1116
}
1217
}

0 commit comments

Comments
 (0)