Skip to content

RevSquare/rs_git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RevSquare GIT

Manages git interactions on projects. Offers a few set of management commands to quickly synchronize code. This is mostly for usage of RevSquare's developpment teams.

Install

From Github

https://github.com/RevSquare/rs_git#egg=rs_git

Setup

The first step is to add the app in your installed apps list in settings.py

INSTALLED_APPS = (
    ...
    'rs_git'
    ...
)

Then you can declare some settings of your GIT environment in your settings.py file

Location of your local pip requirements files, for exemple:

RSGIT_REQUIREMENTS_FILE = 'requirements/local.txt'

Your main project developpment branch, for exemple:

RSGIT_DEVELOPPMENT_BRANCH = 'develop'

In case you have a frontend subtree, you can use the RSGIT_FRONTEND dictionnary, for exemple:

RSGIT_FRONTEND = {
    'branch': 'master',
    'remote': 'static',
    'path': 'myproject/frontend'
}

Command usage

If all you settings variables listed above are informed, you can simply go with:

python manage.py git_sync

Otherwise you can use specific options, here are the available options with exemples:

python manage.py git_sync --branch 'develop'  --remote 'origin' --requirements 'myproject/frontend'

Contribution

Please feel free to contribute. Any help and advices are much appreciated.

LINKS

Development:
https://github.com/RevSquare/rs_git

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages