From: Oleg Broytman Date: Sat, 15 Apr 2017 18:50:04 +0000 (+0300) Subject: Fix templates in setup.py X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=afc149781d6d951da879dcee26d2805a18c3a144;p=cookiecutter.git Fix templates in setup.py --- diff --git a/project_template/setup.py b/project_template/setup.py index 3861b57..a90dc05 100755 --- a/project_template/setup.py +++ b/project_template/setup.py @@ -10,14 +10,14 @@ except ImportError: from distutils.core import setup is_setuptools = False -versionpath = join(abspath(dirname(__file__)), '{{project}}', '__version__.py') +versionpath = join(abspath(dirname(__file__)), '{project}', '__version__.py') load_source('{project}_version', versionpath) # Ignore: E402 module level import not at top of file from {project}_version import __version__ # noqa -setup(name='{{project}}', +setup(name='{project}', version=__version__, - description='Broytman {{project}}', + description='Broytman {project}', long_description=open('README.txt', 'rtU').read(), author='Oleg Broytman', author_email='phd@phdru.name', @@ -37,8 +37,8 @@ setup(name='{{project}}', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 2 :: Only', ], - packages=['{{project}}'], - package_data={'{{project}}': []}, + packages=['{project}'], + package_data={'{project}': []}, scripts=[], requires=[], )