def get_package(self):
if self.package is not None:<EOL><INDENT>return self.package<EOL><DEDENT>if self.use_current_env:<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>package = get_latest_package_from_string(str(self.package_request),<EOL>self.package_paths)<EOL>if package is None:<EOL><INDENT>raise PackageNotFoundError("<STR_LIT>"<EOL>% str(self.package_request))<EOL><DEDENT><DEDENT>self.package = package<EOL>return self.package<EOL>
Get the target package.

        Returns:
            `Package`: Package to run tests on.