ezoic

Monday, December 4, 2017

Python package structures and how to build a package automatically

A python package usually has the following structure:

funniest/
    funniest/
        __init__.py
        command_line.py
        tests/
            __init__.py
            test_joke.py
            test_command_line.py
    MANIFEST.in
    README.rst
    setup.py
    .gitignore

http://python-packaging.readthedocs.io/en/latest/everything.html


To build one package automatically, one can use cookiecutter

https://www.pydanny.com/cookie-project-templates-made-easy.html
https://github.com.audreyr/cookiecutter-pypackage.git




No comments:

Post a Comment

looking for a man

 I am a mid aged woman.  I was born in 1980. I do not have any kid. no complicated  dating before . I am looking for a man here for marriage...