Skip to content

cedel1/developers-chamber

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Developers-chamber

A small plugin which takes a configuration (like Bower or npm) and it provides data via context processors.

Usage

Register plugin in requirements.txt and in you Django configuration

pip install developers-chamber

and

TEMPLATE_CONTEXT_PROCESSORS = (
    'developers_chamber.django.context_processors.get_project_info',
)

PIP_CONFIG = 'version.json'

Create a pip.json (the name depends on you, but must be same in Django configuration)

{
    "name": "short project name",
    "version": "0.1.0",
    "verbose": "verbose project name"
}

Templates

All values from version.json are available in a template via the context processor. Every key is capitalized and prefixed by PROJECT_, e.g. version becomes PROJECT_VERSION.

Helpers

There are several helpers for development and releasing, you can use it as scripts:

  • release-bitbucket - support creating bitbucket pull-requests
  • release-git - helpers for creating release/deployment branches
  • release-version - helpers for changing project version

more informations you will obtain with --help:

release-bitbucket --help
release-git --help
release-version --help

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.4%
  • Other 0.6%