that pulls in non-Python github repos and puts them in the correct directory?

Is it possible to create a file that:

  • Pulls in a github repository
  • places the files from that repository into a specified folder

I’m setting up a django package/app that uses third-party JavaScript frameworks available on github. I’d like to be able to have pull the latest version from github and then places those files into the appropriate static/js folder. So this is different from normal dependencies that are Python packages with their own files.

  • How to run cloned Django project?
  • Best Practice for following Subversion repository Trunk: Git (Mirror), Git-Svn, Subversion?
  • Django error on makemessages “should be run from the Django Git tree or your project or app tree”
  • git aws.push: No module named boto
  • Git - How to deploy code from my central Git repo to my production server?
  • What is the correct way to deal with DB migration while using South, Django and Git?
  • How to check if git merge problems have been fixed?
  • Git stash single untracked file?
  • Revert to pre-git v1.7.8 git submodule behavior with submodule filesystem locations
  • How can I auto deploy from a Git branch from to Azure?
  • Why is git ignoring my changed file?
  • How to prevent editing on mac resulting in whole file appearing as deleted and added lines?
  • 2 Solutions collect form web for “ that pulls in non-Python github repos and puts them in the correct directory?”

    If you are using setuptool ( you can use the dependency requirement:

    Otherwise as comments have suggested, set up your django project as an actual git repo and then add the github repo as a submodule

    cd myProject
    git init
    git submodule add git://path/to/repo.git local/location/repo

    Then you would just be able to cd into that submodule and git pull

    If you dont want to set your project up as a git repo, then the brute force way would be to manually clone the github repo where you want it, and then add some manual commands in your

    import os
    os.system("cd path/to/repo && git pull")

    An alternative to this would be to provide a requirements.txt file for use with pip. You can specify git and mercurial repos as well as packages from PyPI, so that the user would just have to do pip install -r requirements.txt to get the whole project.

    Git Baby is a git and github fan, let's start git clone.