Commits

Jason R. Coombs committed e20a12d

Added required setup parameters author, author_email, url

Comments (0)

Files changed (1)

jaraco/develop/namespace.py

 		return string.format(**inspect.currentframe().f_back.f_locals)
 	lf = local_format
 
-# dedent and left strip
 def DALS(string):
+	"Dedent and left strip"
 	return textwrap.dedent(string).lstrip()
 
-_setup_template = """#!/usr/bin/env python
-# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)
-from setuptools import find_packages
-setup_params = dict(
-	name='{project_name}',
-	use_hg_version=True,
-	packages=find_packages(),
-	namespace_packages=['{namespace}'],
-	zip_safe=False,
-	setup_requires=[
-		'hgtools',
-	],
-)
-if __name__ == '__main__':
-	from setuptools import setup
-	setup(**setup_params)
-"""
+_setup_template = """
+	#!/usr/bin/env python
+	# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)
+	import setuptools
+
+	setup_params = dict(
+		name='{project_name}',
+		use_hg_version=True,
+		author="Jason R. Coombs",
+		author_email="jaraco@jaraco.com",
+		url="https://bitbucket.org/jaraco/{project_name}",
+		packages=setuptools.find_packages(),
+		namespace_packages=['{namespace}'],
+		zip_safe=False,
+		setup_requires=[
+			'hgtools',
+		],
+	)
+	if __name__ == '__main__':
+		setuptools.setup(**setup_params)
+	"""
 
 def tabs_to_spaces(tabs):
 	return ' '*4*len(tabs.group(0))
 	project_name = root.basename()
 	namespace, sep, package = project_name.rpartition('.')
 	if not root.isdir(): root.mkdir()
-	template = _setup_template
+	template = DALS(_setup_template)
 	if not namespace:
 		# remove the namespace_packages declaration
 		template = re.sub(r'^\tnamespace_packages.*\n', '', template,