Coder Social home page Coder Social logo

rst2pyi's Introduction

rst2pyi

Convert reStructuredText annotations to .pyi type stubs

build status code coverage version license code style

License

rst2pyi is copyright John Reese, and licensed under the MIT license. I am providing code in this repository to you under an open source license. This is my personal repository; the license you receive to my code is from me and not from my employer. See the LICENSE file for details.

rst2pyi's People

Contributors

amyreese avatar dependabot[bot] avatar pyup-bot avatar tannewt avatar thatch avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

tannewt

rst2pyi's Issues

Support nested types

rst2pyi does not yet support nested type annotations, such as List[Union[str, int]], specifically when converting from params to imports.

Missing files in sdist

Hi @jreese it appears that the manifest is missing at least one file necessary to build from the sdist for version 0.3.0. You're in good company, about 5% of other projects updated in the last year are also missing files.

+ /tmp/venv/bin/pip3 wheel --no-binary rst2pyi -w /tmp/ext rst2pyi==0.3.0
Looking in indexes: http://10.10.0.139:9191/root/pypi/+simple/
Collecting rst2pyi==0.3.0
  Downloading http://10.10.0.139:9191/root/pypi/%2Bf/0f0/dacf579427b9f/rst2pyi-0.3.0.tar.gz (7.7 kB)
    ERROR: Command errored out with exit status 1:
     command: /tmp/venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-m32i0kwf/rst2pyi/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-m32i0kwf/rst2pyi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-wheel-m32i0kwf/rst2pyi/pip-egg-info
         cwd: /tmp/pip-wheel-m32i0kwf/rst2pyi/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-wheel-m32i0kwf/rst2pyi/setup.py", line 11, in <module>
        with open("requirements.txt") as f:
    FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

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.