Skip to content

Commit

Permalink
Merge pull request #310 from HathorNetwork/dev
Browse files Browse the repository at this point in the history
Release: v0.13.0
  • Loading branch information
luislhl authored Jan 26, 2024
2 parents 9106996 + 5f408c7 commit 8434768
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
timeout-minutes: 20
strategy:
matrix:
python-version: [3.8, 3.9]
python-version: ["3.9", "3.10"]
steps:
- name: Checkout to branch
# https://github.com/actions/checkout/releases/tag/v3.5.3
Expand Down
11 changes: 11 additions & 0 deletions Dockerfile_Serverless
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This Dockerfile will be used by serverless-python-requirements plugin to install the dependencies
# This is needed because some non-pure-python dependencies (like 'cryptography') need to be compiled
# and with this image we make sure the compilation will be done in a Lambda-compatible environment
#
# See more info about this base image in https://gallery.ecr.aws/lambda/python and https://github.com/aws/aws-lambda-base-images
FROM public.ecr.aws/lambda/python:3.9

# We need to override the default entrypoint because serverless-python-requirements plugin will
# run the full command they need. The default entrypoint generated an error when running the command
# See https://stackoverflow.com/questions/65107143/lambda-container-images-complain-about-entrypoint-needing-handler-name-as-the-fi
ENTRYPOINT []
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hathor-explorer-service",
"version": "0.12.1",
"version": "0.13.0",
"description": "Hathor Explorer Service Serverless deps",
"dependencies": {
"@apidevtools/swagger-cli": "^4.0.4",
Expand Down
79 changes: 47 additions & 32 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[tool.poetry]
name = "hathor-explorer-service"
version = "0.12.1"
version = "0.13.0"
description = ""
authors = ["Hathor Labs <[email protected]>"]
license = "MIT"

[tool.poetry.dependencies]
python = "^3.8.1"
python = "^3.9"
redis = "^3.5.3"
boto3 = "^1.28.83"
python-dotenv = "^0.17.1"
Expand All @@ -17,7 +17,7 @@ dacite = "^1.6.0"
requests = "^2.25.1"
structlog = "^21.1.0"
deepdiff = "^5.7.0"
hathorlib = "^0.2.0"
hathorlib = "^0.5.2"
PyMySQL = "^1.0.2"
SQLAlchemy = "^1.4.40"
elasticsearch = "~8.1.2"
Expand Down
7 changes: 6 additions & 1 deletion serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ useDotenv: true
# The `provider` block defines where your service will be deployed
provider:
name: aws
runtime: python3.8
# WARN: If you change this, make sure you also change the `Dockerfile_Serverless` base image to match the python version
runtime: "python3.9"
region: ${env:AWS_DEFAULT_REGION}
lambdaHashingVersion: 20201221
stackTags:
Expand Down Expand Up @@ -85,6 +86,10 @@ custom:
pythonRequirements:
layer: true
pythonBin: python3
dockerizePip: true
dockerFile: ./Dockerfile_Serverless
useStaticCache: false
useDownloadCache: false
s3:
host: localhost
directory: /tmp
Expand Down

0 comments on commit 8434768

Please sign in to comment.