Coder Social home page Coder Social logo

codado's Issues

Hotedit

Add an API to open a local text editor of the user's choice, and present the contents of the edited file back to the caller.

check_output returns bytes in Python 3, can't read git config

Traceback (most recent call last):
  File "./scripts/ssmparameters.py", line 126, in <module>
    ssmparameters()
  File "/home/corydodt/.virtualenvs/jobbergate-api/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/corydodt/.virtualenvs/jobbergate-api/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/corydodt/.virtualenvs/jobbergate-api/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/corydodt/.virtualenvs/jobbergate-api/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/corydodt/.virtualenvs/jobbergate-api/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "./scripts/ssmparameters.py", line 100, in ssmparameters
    new_file = hotedit.hotedit(initial=orig_file, validate_unchanged=True)
  File "/home/corydodt/.virtualenvs/jobbergate-api/lib/python3.8/site-packages/codado/hotedit.py", line 87, in hotedit
    cmd = shlex.split(find_editor()) + [path]
  File "/usr/lib/python3.8/shlex.py", line 311, in split
    return list(lex)
  File "/usr/lib/python3.8/shlex.py", line 300, in __next__
    token = self.get_token()
  File "/usr/lib/python3.8/shlex.py", line 109, in get_token
    raw = self.read_token()
  File "/usr/lib/python3.8/shlex.py", line 140, in read_token
    nextchar = self.instream.read(1)
AttributeError: 'bytes' object has no attribute 'read'

stop overspecifying python-dateutil

Our tests pass with any recent version of python-dateutil so stop specifying the version; downstreamers cannot install this package normally.

Delete deprecated APIs

codado.kleinish and codado.py.doc are deprecated. Release a new minor version without them.

Add Python 3 support to Codado

Provide hybrid Python 2.7/Python 3.6+ support and continue to maintain Python 3+ support going forward.

Suggested implementation: Use the future package, make sure tox tests still pass.

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.