GithubHelp home page GithubHelp logo

Comments (4)

NeolithEra avatar NeolithEra commented on August 27, 2024

Suggested Solution

  1. Fix your direct dependency to be pyyaml <5.2.0. I have checked this revision will not affect your downstream projects now.

  2. Remove your direct dependency pyyaml, and use pyyaml transitively introduced by flying-circus.

  3. Ask your upstream project flying-circus to loose the version range of pyyaml.

@garyd203 Which solution do you prefer, 1, 2 or 3?
Please let me know your choice. I can submit a PR to solve this issue.

from ssmash.

garyd203 avatar garyd203 commented on August 27, 2024

Hi @NeolithEra , thanks a lot for the detailed bug report. This issue hadn't affected me because I have been using poetry to install (which does resolve the PyYAML versions in a compatible way), rather than pip, so thanks for bringing it to my attention.

For a solution, it's not desirable to loosen the PyYAML version range for flying-circus (which is somewhat coupled to the internals of PyYAML), unfortunately.

The best approach seems to be if we restrict our version of PyYAML to something compatible (say, "PyYAML>=5.1,<5.2") - your option (1). Are you happy to put together a PR along those lines?

from ssmash.

garyd203 avatar garyd203 commented on August 27, 2024

I will pick this up

from ssmash.

garyd203 avatar garyd203 commented on August 27, 2024

Appears to be resolved now. Thanks @NeolithEra :)

$ docker run -it python:3.6 "bash"
root:/# pip install ssmash
/ ... /
Installing collected packages: click, inflection, PyYAML, attrs, flying-circus,
ssmash
Successfully installed PyYAML-5.1.2 attrs-18.2.0 click-7.0 flying-circus-0.7.2 i
nflection-0.3.1 ssmash-2.1.2

root:/# ssmash --help
Usage: ssmash [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...

  Convert a plain YAML file with application configuration into a
  CloudFormation template with SSM parameters.

Options:
  -i, --input, --input-file FILENAME
                                  Where to read the application configuration
                                  YAML file
  -o, --output, --output-file FILENAME
                                  Where to write the CloudFormation template
                                  file
  --description TEXT              The description for the CloudFormation
                                  stack.
  --help                          Show this message and exit.

Commands:
  invalidate-ecs     Invalidate the cache in an ECS Service that uses these...
  invalidate-lambda  Invalidate the cache in a Lambda Function that uses...

from ssmash.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.