Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Update project layout for better module import #45

Merged
merged 3 commits into from
May 22, 2020

Conversation

zhongnansu
Copy link
Contributor

Issue #, if available:
#43
Description of changes:

Keep the src layout where application root package resides in a sub-directory of your root:

setup.py
src/
    mypkg/
        __init__.py
        app.py
        view.py
tests/
    __init__.py
    foo/
        __init__.py
        test_view.py

This layout prevents a lot of common pitfalls and has many benefits, which are better explained in this excellent blog post by Ionel Cristian Mărieș.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@zhongnansu zhongnansu changed the title Dev Update project layout May 21, 2020
@zhongnansu zhongnansu changed the title Update project layout Update project layout for better module import May 22, 2020
@zhongnansu zhongnansu merged commit 80f370e into amazon-archives:master May 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants