title: How to set up entry_points in setup.cfg
body: <p>I am moving my config from setup.py to setup.cfg and having issues setting up the <code>entry_points</code> parameter. At the moment I am using a hybrid approach which works, however, I would like to move the <code>entry_points</code> to setup.cfg.</p>
  <p>From</p>
  <pre><code>def setup_package():
      setup(version=get_version(),
            entry_points={'console_scripts':['app=my_package.app.run:cli'],})
  </code></pre>
  <p>to</p>
  <pre><code>[metadata]
  name = my-package
  description = my-package
  license = unlicensed
  long-description = README.md
  platforms = any
  classifiers =
    Programming Language :: Python
  
  [options]
  zip_safe = False
  packages = my_package,  my_package.app
  include_package_data = True
  package_dir =
    = .
  tests_require = pytest; pytest-cov
  
  [entry_points]
  console_scripts =
    my-package = my_package.app.run:cli
  </code></pre>