Skip to content
This repository has been archived by the owner on Jan 26, 2018. It is now read-only.

Commit

Permalink
Use setuptools entry_points for command line scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeil committed Jan 22, 2015
1 parent b060744 commit e7c624a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ docs/_build
.pydevproject
.settings

# Pycharm editor project files
.idea

# Packages/installer info
*.egg
*.egg-info
Expand Down
2 changes: 1 addition & 1 deletion TEMPLATE_CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ be removed in affiliated packages.
0.4.2 (untagged)
----------------

- No changes yet
- Use setuptools entry_points for command line scripts

0.4.1 (2014-10-22)
------------------
Expand Down
5 changes: 0 additions & 5 deletions scripts/README.rst

This file was deleted.

7 changes: 0 additions & 7 deletions scripts/script_example

This file was deleted.

7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@
package_info['package_data'].setdefault(PACKAGENAME, [])
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',
]

# Include all .c files, recursively, including those generated by
# Cython, since we can not do this in MANIFEST.in with a "dynamic"
# directory name.
Expand Down Expand Up @@ -105,5 +111,6 @@
cmdclass=cmdclassd,
zip_safe=False,
use_2to3=True,
entry_points=entry_points,
**package_info
)

0 comments on commit e7c624a

Please sign in to comment.