Skip to content

A COMPAS-opinionated template to bootstrap your next research project.

License

Notifications You must be signed in to change notification settings

createchaos/create_cookiecutter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CREATE Lab Package Template

This is a COMPAS-opinionated template that automates the set up of a new python-based code extension package using cookiecutter. We will, little-by-little, give it our own CREATE Lab twist!

This repository provides you with the basic infrastructure to kickstart your next project: a base folder structure, auto-documentation, testing, pip installing, and easier-integration with Rhino.

What comes in the box?

  • Project directory and file structure
  • Documentation based on Sphinx/reStructuredText
  • A testing framework: pytest
  • Basic setup script to create pip installable packages
  • Automation of common tasks for development workflow based on pyinvoke (generate documentation, run tests, check format, etc.)
  • EditorConfig integration
  • Minimal Travis-CI integration

What files are automatically created for you?

  • .github

  • data

  • docs

  • docsource

  • examples

  • src

  • temp

  • tests

  • .bumpversion.cfg

  • .editorconfig

  • .gitignore

  • .travis.yml

  • AUTHORS.md

  • CHANGELOG.md

  • CONTRIBUTING.md

  • LICENSE

  • MANIFEST.in

  • pytest.ini

  • README.md

  • requirements-dev.txt

  • requirements.txt

  • setup.cfg

  • setup.py

  • tasks.py

What do you need to install first?

Install cookiecutter command line: pip install cookiecutter

How do I use this thing?

In the terminal or Anaconda prompt, go to the folder where you store all of your projects, (such as "repos", "github" etc.):

$ cd <your-projects-folder>

Cookiecutter will create a folder for your project and fill it with template files. To instigate this this, run the following command and answer the prompts:

$ cookiecutter gh:createchaos/create_cookiecutter

To access your new project folder via the command line:

$ cd <project-slug>

Advanced features

To activate continuous integration (e.g. you are developing a package that is adequately tested, and every time you want to make an official release, you want to make sure all tests - among other things - are adequately passed).

License

This template is forked from the COMPAS'framework cookiecutter template for COMPAS extensions, and as such, it is licensed under the terms of the MIT License.

About

A COMPAS-opinionated template to bootstrap your next research project.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%