old_contents: #
  # Copyright 2015 Red Hat, Inc.
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #     http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  
  from setuptools import setup
  
  setup(
      name='skynet',
      version='1',
      description='Skyring Node Eventing Agent',
      long_description="skynet is the node eventing agent for Skyring."
      " Each storage node managed by Skyring will have this agent running on"
      " them. It is a daemon which listens to dbus signals, filters it, "
      "processes it and pushes the filtered signals to Skyring using"
      " saltstack's eventing framework. Currently this daemon has capability"
      " to send basic storage related, few node process related and"
      " network related events.",
  
      # The project's main homepage.
      url='https://github.com/skyrings/skynet',
  
      # Author details
      author='Darshan N',
      author_email='darshan.n.2024@gmail.com',
  
      license='Apache License, Version 2.0',
  
      classifiers=[
          # How mature is this project? Common values are
          #   3 - Alpha
          #   4 - Beta
          #   5 - Production/Stable
          'Development Status :: 3 - Alpha',
  
          'Programming Language :: Python :: 2.7',
      ],
  
      keywords='Skyring node Eventing Agent',
  
      packages=["skynetd"],
      package_dir={
          'skynetd': 'src/skynetd'
      },
  
      entry_points={
          'console_scripts': [
              'skynetd=skynetd.skynetd:main',
          ],
      },
  )
  
new_contents: #
  # Copyright 2015 Red Hat, Inc.
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #     http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  
  import re
  from setuptools import setup
  
  
  def read_module_contents():
      with open('src/skynetd/__init__.py') as skynet_init:
          return skynet_init.read()
  
  module_file = read_module_contents()
  metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", module_file))
  
  setup(
      name='skynet',
      version=metadata['version'],
      description='Skyring Node Eventing Agent',
      long_description="skynet is the node eventing agent for Skyring."
      " Each storage node managed by Skyring will have this agent running on"
      " them. It is a daemon which listens to dbus signals, filters it, "
      "processes it and pushes the filtered signals to Skyring using"
      " saltstack's eventing framework. Currently this daemon has capability"
      " to send basic storage related, few node process related and"
      " network related events.",
  
      # The project's main homepage.
      url='https://github.com/skyrings/skynet',
  
      # Author details
      author='Darshan N',
      author_email='darshan.n.2024@gmail.com',
  
      license='Apache License, Version 2.0',
  
      classifiers=[
          # How mature is this project? Common values are
          #   3 - Alpha
          #   4 - Beta
          #   5 - Production/Stable
          'Development Status :: 3 - Alpha',
  
          'Programming Language :: Python :: 2.7',
      ],
  
      keywords='Skyring node Eventing Agent',
  
      packages=["skynetd"],
      package_dir={
          'skynetd': 'src/skynetd'
      },
  
      entry_points={
          'console_scripts': [
              'skynetd=skynetd.skynetd:main',
          ],
      },
  )
  
subject: use __init__.py's __version__ for pkg version