ubaniabalogun/serverless-package-python-functions

0.2.1 Package location

john-delivuk opened this issue · 2 comments

After the 0.2.1 package my path I constructed with vars breaks doesn't populate correctly.

Serverless: [serverless-package-python-functions] Packaging ota-expedia-dev-reservationapi...
Serverless: [serverless-package-python-functions] Packaging ota-expedia-dev-reservationadapter...
Serverless: Packaging service...
 
  Serverless Error ---------------------------------------
 
  No ota-expedia.zip file found in the package path you provided.
 
  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Forums:        forum.serverless.com
     Chat:          gitter.im/serverless/serverless
 
  Your Environment Information -----------------------------
     OS:                     linux
     Node Version:           6.2.0
     Serverless Version:     1.19.0

Serverless.yml

  reservationapi:
    handler: reservationapi_handler.handle
    package:
      include:
        - reservationapi
      artifact: ${self:custom.pkgPyFuncs.buildDir}/${self:service}-${self:provider.stage}-reservationapi.zip

Let me know if I can provide any more details.

This may be related to the serverless version. Switching to the same as my local machine which is 1.6.1 fixes this.

Hey @john-delivuk,
Is ota-expedia the name of your service?
If so, I ran into this same issue with serverless version 1.17 and greater
The solution was to specify that packages be created individually in the serverless.yml as such

# serverless.yml
service: ota-expedia

package:
    individually: true

# rest of your serverless.yml

Please let me know if this works for you.
Thanks,