#!/usr/bin/env python
{{py_copyright}}
import os
import re

from setuptools import setup

_PROJECT_NAME = "{{project_name}}"

def _read_properties(project_name):
    init_path = os.path.abspath(os.path.join(project_name, "__init__.py"))
    regex = re.compile("^\\s*__(?P<key>.*)__\\s*=\\s*\"(?P<value>.*)\"\\s*$")
    with open(init_path, "rt") as f:
        props = {}
        for line in f.readlines():
            m = regex.match(line)
            if m is not None:
                props[m.group("key")] = m.group("value")

    return props

_PROPERTIES = _read_properties(_PROJECT_NAME)
project_name = _PROPERTIES["project_name"]
version = _PROPERTIES["version"]
description = _PROPERTIES["description"]

setup(
    name=project_name,
    version=version,
    description=description,
    setup_requires=["setuptools-markdown"],
    long_description_markdown_filename="README.md",
    classifiers=[
        "Development Status :: 3 - Alpha",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 2.7",
    ],
    url="{{project_name}} | git_url(git_server) }}",
    author="{{author}}",
    author_email="{{author_email}}",
    license="MIT",
    packages=[project_name],
    install_requires=[
        # TODO: Add dependencies here: requirements.txt will use this list too
    ],
    entry_points={
        "console_scripts": [
            "{0} = {0}.__main__:_main".format(project_name)
        ]
    },
    include_package_data=True,
    test_suite="{}.tests.suite".format(project_name),
    zip_safe=False)

@@ -539,27 +539,21 @@
  props%0A%0A
-_PROPERTIES
+props
  = _read
@@ -594,27 +594,21 @@
 _name = 
-_PROPERTIES
+props
 %5B%22projec
@@ -626,27 +626,21 @@
 rsion = 
-_PROPERTIES
+props
 %5B%22versio
@@ -661,19 +661,13 @@
 n = 
-_PROPERTIES
+props
 %5B%22de

Rename _PROPERTIES to props