コード例 #1
0
 def create_git_file(self, *path):
     from setuptools_git.utils import check_call
     filename = join(*path)
     fd = open(filename, 'wt')
     fd.write('dummy\n')
     fd.close()
     check_call(['git', 'add', filename])
     check_call(['git', 'commit', '--quiet', '-m', 'add new file'])
コード例 #2
0
 def create_git_file(self, *path):
     from setuptools_git.utils import check_call
     filename = join(*path)
     fd = open(filename, 'wt')
     fd.write('dummy\n')
     fd.close()
     check_call(['git', 'add', filename])
     check_call(['git', 'commit', '--quiet', '-m', 'add new file'])
コード例 #3
0
 def add_file(self, path):
     from setuptools_git.utils import check_call
     check_call(['git', 'add', path])
     check_call(['git', 'commit', '--quiet', '-m', 'add new file'])
コード例 #4
0
 def new_repo(self):
     from setuptools_git.utils import check_call
     directory = realpath(tempfile.mkdtemp())
     os.chdir(directory)
     check_call(['git', 'init', '--quiet', os.curdir])
     return directory
コード例 #5
0
 def new_repo(self):
     from setuptools_git.utils import check_call
     directory = realpath(tempfile.mkdtemp())
     os.chdir(directory)
     check_call(['git', 'init', '--quiet', os.curdir])
     return directory
コード例 #6
0
ファイル: tests.py プロジェクト: stefanholek/setuptools-git
 def add_file(self, path):
     from setuptools_git.utils import check_call
     check_call(['git', 'add', path])
     check_call(['git', 'commit', '--quiet', '-m', 'add new file'])