Skip to content

Commit

Permalink
New version release, remove python 3.6 references (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
FutureSharks authored Feb 28, 2023
1 parent 6788d4a commit 2482cd5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pip3 install invokust --target=python-packages
Or if running on a Mac (python packages need to be compiled for 64 bit Linux) you can use docker:

```
docker run -it --volume=$PWD:/temp python:3.6 bash -c "pip install /temp --target=/temp/python-packages"
docker run -it --volume=$PWD:/temp python:3.7 bash -c "pip install /temp --target=/temp/python-packages"
```

Create the zip file:
Expand All @@ -97,7 +97,7 @@ zip -q -r lambda_locust.zip lambda_locust.py locustfile_example.py python-packag
Then create the Lambda function using using the AWS CLI:

```
aws lambda create-function --function-name lambda_locust --timeout 300 --runtime python3.6 --role arn:aws:iam::9999999999:role/lambda_basic_execution --handler lambda_locust.handler --zip-file fileb://lambda_locust.zip
aws lambda create-function --function-name lambda_locust --timeout 300 --runtime python3.7 --role arn:aws:iam::9999999999:role/lambda_basic_execution --handler lambda_locust.handler --zip-file fileb://lambda_locust.zip
```

Or [Terraform](https://www.terraform.io/) and the example [main.tf](main.tf) file:
Expand Down Expand Up @@ -252,7 +252,7 @@ Scratch
[2020-06-28 19:58:54,144] pudli/INFO/root: Exiting...
```

### Occasional errors
### Occasional errors

* ERROR : `xxxxx-3f19-11e7-a1d1-xxxxxxx Process exited before completing request"`
- SOLUTION: Double the size of the memory for the function.
- SOLUTION: Double the size of the memory for the function.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ resource "aws_lambda_function" "lambda_locust" {
function_name = "lambda_locust"
role = "${aws_iam_role.lambda_basic_execution.arn}"
handler = "lambda_locust.handler"
runtime = "python3.6"
runtime = "python3.7"
timeout = 300
description = "A function that runs a locust load test"
environment {
Expand Down
2 changes: 1 addition & 1 deletion package_lambda_code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ rm -rf python-packages

python3 setup.py bdist_wheel

docker run -it -v $PWD/python-packages:/python-packages -v $PWD/dist:/dist python:3.6 bash -c "pip install dist/invokust-*.whl --target=/python-packages"
docker run -it -v $PWD/python-packages:/python-packages -v $PWD/dist:/dist python:3.7 bash -c "pip install dist/invokust-*.whl --target=/python-packages"

zip -q -r lambda_locust.zip lambda_locust.py locustfile_example.py python-packages
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

setup(
name="invokust",
version="0.76",
version="0.77",
author="Max Williams",
author_email="futuresharks@gmail.com",
description="A small wrapper for locust to allow running load tests from within Python or on AWS Lambda",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/FutureSharks/invokust",
download_url="https://github.com/FutureSharks/invokust/archive/0.76.tar.gz",
download_url="https://github.com/FutureSharks/invokust/archive/0.77.tar.gz",
license="MIT",
scripts=["invokr.py"],
packages=[
Expand All @@ -25,6 +25,6 @@
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Testing :: Traffic Generation",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
)

0 comments on commit 2482cd5

Please sign in to comment.