@classmethod<EOL><INDENT>def new(cls, path, ckan_version, site_name, **kwargs):<DEDENT>
if ckan_version == '<STR_LIT>':<EOL><INDENT>ckan_version = '<STR_LIT>'<EOL><DEDENT>name, datadir, srcdir = task.new_environment_check(path, site_name, ckan_version)<EOL>environment = cls(name, srcdir, datadir, site_name, ckan_version, **kwargs)<EOL>environment._generate_passwords()<EOL>return environment<EOL>
Return a Environment object with settings for a new project.
No directories or containers are created by this call.

:params path: location for new project directory, may be relative
:params ckan_version: release of CKAN to install
:params site_name: The name of the site to install database and solr \
                    eventually.

For additional keyword arguments see the __init__ method.

Raises DatcatsError if directories or project with same
name already exits.