Skip to content

Virtualenv 20.x is not supported #21

Description

@jesse-peters

I had to downgrade to virtualenv 16.7.10 to get this to work, otherwise I get the following error when I attempt a sls package:

Serverless: [pyIndividually] Installing packagings: python testproject/lib/_requirements.py testproject/requirements.txt testproject/lib
Serverless: [pyIndividually] Traceback (most recent call last):
  File "testproject/lib/_requirements.py", line 57, in <module>
    virtualenv.main()

serverless.yml

service: testproject
frameworkVersion: "2.11.1"

package:
    individually: True
    exclude:
        - "**/*"
plugins:
    - serverless-python-individually

provider:
    name: aws
    runtime: python3.6
    region: us-west-2

functions:
    testproject:
        handler: testproject/wrap.handler
        package:
            include:
                - testproject/**
custom:
    pyIndividually:
        wrap:testproject: testproject/runner.handle_message

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions