Skip to content

Commit

Permalink
Moved entry points to setup.cfg.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmccully authored and alexrudy committed Oct 15, 2015
1 parent 3e5f7fd commit b81aaf9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions setup.cfg
Expand Up @@ -25,3 +25,6 @@ license = BSD
url = http://astropy.org/
edit_on_github = False
github_project = astropy/astropy

[entry_points]
astropy-package-template-example = packagename.example_mod:main
9 changes: 5 additions & 4 deletions setup.py
Expand Up @@ -79,10 +79,11 @@
package_info['package_data'][PACKAGENAME].append('data/*')

# Define entry points for command-line scripts
entry_points = {}
entry_points['console_scripts'] = [
# 'astropy-package-template-example = packagename.example_mod:main',
]
entry_points = {'console_scripts': []}

entry_point_list = conf.items('entry_points')
for entry_point in entry_point_list:
entry_points.append('{0} = {1}'.format(entry_point[0], entry_point[1]))

# Include all .c files, recursively, including those generated by
# Cython, since we can not do this in MANIFEST.in with a "dynamic"
Expand Down

0 comments on commit b81aaf9

Please sign in to comment.