-
Notifications
You must be signed in to change notification settings - Fork 4
Skybeard Enhancement Proposal (SEP) #1: Proposed file structure for beards
Nathanael Farley edited this page Jan 21, 2017
·
1 revision
Owing to the fact that beards are growing quite fast now, and may include more than just python. I propose the following file structure (in this example for a beard called mybeard
).
$ tree --dirsfirst mybeard
mybeard
├── python
│ └── mybeard
│ ├── __init__.py
│ └── mybeard.py
├── tests
├── requirements.dev.txt
├── requirements.txt
└── setup_beard.py
3 directories, 5 files
This folder will be the one added to the PYTHONPATH
when the beard is imported. All python parts of the beard should be put in here.
This folder should contain unit tests.
NOTE: I'm not sure this should only be python or js? Or maybe only test js by using python?
Ordinary requirements files.
This would be a setup script for beards. It would probably contain instructions for installing requirements, how to update, etc..
This would allow easy extension to include other languages by including other folders (e.g. js and html for admin pages for beards).