'Make a Twisted-style project in the given base directory.
@param baseDirectory: The directory to create files in
(as a L{FilePath).
@param version: The version information for the project.
@return: L{Project} pointing to the created project.'

def makeProject(self, version, baseDirectory=None):

    if (baseDirectory is None):
        baseDirectory = FilePath(self.mktemp())
    segments = version[0].split('.')
    directory = baseDirectory
    for segment in segments:
        directory = directory.child(segment)
        if (not directory.exists()):
            directory.createDirectory()
        directory.child('__init__.py').setContent('')
    directory.child('newsfragments').createDirectory()
    directory.child('_version.py').setContent(genVersion(*version).encode('utf-8'))
    return Project(directory)
